Instrument Control Lib
Framework to control Oscilloscopes, SMUs, Function Generators and DC Powersupplies via Ethernet.
ExecArgs Class Reference

ExecArgs class is used to create execution arguments based on a parameter seperator value scheme. Can be used to dynamically add new types of commands. E.g. voltage = 3. More...

#include <ExecArgs.h>

Collaboration diagram for ExecArgs:
Collaboration graph

Public Member Functions

 ExecArgs ()=default
 
ExecArgsAddArgument (std::string argument, int value, std::string seperator="")
 This file contains the implementation of the execution arguments, which should can be passed to the Exec function and can be converted to a string which is sent to the device. More...
 
ExecArgsAddArgument (std::string argument, double value, std::string seperator="")
 Add a new argument to the execution argument. e.g. argument = voltage, value = 3 and seperator = : can be transformed into a string: voltage = 3. More...
 
ExecArgsAddArgument (const std::string &argument, const std::string &value, const std::string &seperator="")
 Add a new argument to the execution argument. e.g. argument = voltage, value = 3 and seperator = : can be transformed into a string: voltage = 3. More...
 
ExecArgsAddArgument (SubArg argument, int value, std::string seperator="")
 Add a subarg as argument to the ExecArgList. This is necessary when the argument itself consists of multiple parts. E.g. smua.measurement.voltage = 3. Here smua.measurement.voltage is encapsulated in a SubArg. More...
 
ExecArgsAddArgument (SubArg argument, double value, std::string seperator="")
 Add a subarg as argument to the ExecArgList. This is necessary when the argument itself consists of multiple parts. E.g. smua.measurement.voltage = 3. Here smua.measurement.voltage is encapsulated in a SubArg. More...
 
ExecArgsAddArgument (SubArg argument, const std::string &value, const std::string &seperator="")
 Add a subarg as argument to the ExecArgList. This is necessary when the argument itself consists of multiple parts. E.g. smua.measurement.voltage = 3. Here smua.measurement.voltage is encapsulated in a SubArg. More...
 
ExecArgsAddArgument (SubArg argument, SubArg &value, const std::string &seperator="")
 Add a subarg as argument to the ExecArgList. This is necessary when the argument itself consists of multiple parts. E.g. smua.measurement.voltage = 3. Here smua.measurement.voltage is encapsulated in a SubArg. More...
 
std::string GetArgumentsAsString ()
 Transforms the list of arguments to a string which can be passed to the Exec function. More...
 

Detailed Description

ExecArgs class is used to create execution arguments based on a parameter seperator value scheme. Can be used to dynamically add new types of commands. E.g. voltage = 3.

Authors
Florian Frank

Constructor & Destructor Documentation

◆ ExecArgs()

ExecArgs::ExecArgs ( )
explicitdefault

Member Function Documentation

◆ AddArgument() [1/7]

ExecArgs & ExecArgs::AddArgument ( const std::string &  argument,
const std::string &  value,
const std::string &  seperator = "" 
)

Add a new argument to the execution argument. e.g. argument = voltage, value = 3 and seperator = : can be transformed into a string: voltage = 3.

Parameters
argumentthe argument to which the value gets assigned.
valuea double value which is internally transformed to a string.
seperatorthe seperator which separates the value and argument.
Returns
this object to allow further assignments in one line.

◆ AddArgument() [2/7]

ExecArgs & ExecArgs::AddArgument ( std::string  argument,
double  value,
std::string  seperator = "" 
)

Add a new argument to the execution argument. e.g. argument = voltage, value = 3 and seperator = : can be transformed into a string: voltage = 3.

Parameters
argumentthe argument to which the value gets assigned.
valuea string which is internally transformed to a string.
seperatorthe seperator which separates the value and argument.
Returns
this object to allow further assignments in one line.

◆ AddArgument() [3/7]

ExecArgs & ExecArgs::AddArgument ( std::string  argument,
int  value,
std::string  seperator = "" 
)

This file contains the implementation of the execution arguments, which should can be passed to the Exec function and can be converted to a string which is sent to the device.

Authors
Florian Frank

Add a new argument to the execution argument. e.g. argument = voltage, value = 3 and seperator = : can be transformed into a string: voltage = 3

Parameters
argumentthe argument to which the value gets assigned.
valuean integer value which is internally transformed to a string.
seperatorthe seperator which separates the value and argument.
Returns
this object to allow further assignments in one line.
Here is the caller graph for this function:

◆ AddArgument() [4/7]

ExecArgs & ExecArgs::AddArgument ( SubArg  argument,
const std::string &  value,
const std::string &  seperator = "" 
)

Add a subarg as argument to the ExecArgList. This is necessary when the argument itself consists of multiple parts. E.g. smua.measurement.voltage = 3. Here smua.measurement.voltage is encapsulated in a SubArg.

Parameters
argumentsub-argument which internally transformed into a string.
valuea string which is internally transformed to a string.
seperatorthe seperator which separates the value and argument.
Returns
this object to allow further assignments in one line.
Here is the call graph for this function:

◆ AddArgument() [5/7]

ExecArgs & ExecArgs::AddArgument ( SubArg  argument,
double  value,
std::string  seperator = "" 
)

Add a subarg as argument to the ExecArgList. This is necessary when the argument itself consists of multiple parts. E.g. smua.measurement.voltage = 3. Here smua.measurement.voltage is encapsulated in a SubArg.

Parameters
argumentsub-argument which internally transformed into a string.
valuea double value which is internally transformed to a string.
seperatorthe seperator which separates the value and argument.
Returns
this object to allow further assignments in one line.
Here is the call graph for this function:

◆ AddArgument() [6/7]

ExecArgs & ExecArgs::AddArgument ( SubArg  argument,
int  value,
std::string  seperator = "" 
)

Add a subarg as argument to the ExecArgList. This is necessary when the argument itself consists of multiple parts. E.g. smua.measurement.voltage = 3. Here smua.measurement.voltage is encapsulated in a SubArg.

Parameters
argumentsub-argument which internally transformed into a string.
valuean integer value which is internally transformed to a string.
seperatorthe seperator which separates the value and argument.
Returns
this object to allow further assignments in one line.
Here is the call graph for this function:

◆ AddArgument() [7/7]

ExecArgs & ExecArgs::AddArgument ( SubArg  argument,
SubArg value,
const std::string &  seperator = "" 
)

Add a subarg as argument to the ExecArgList. This is necessary when the argument itself consists of multiple parts. E.g. smua.measurement.voltage = 3. Here smua.measurement.voltage is encapsulated in a SubArg.

Parameters
argumentsub-argument which internally transformed into a string.
valueadd a sub-argument e.g. when the value consists of multiple sub-arguments smua.OUTPUT_ON.
seperatorthe seperator which separates the value and argument.
Returns
this object to allow further assignments in one line.
Here is the call graph for this function:

◆ GetArgumentsAsString()

std::string ExecArgs::GetArgumentsAsString ( )

Transforms the list of arguments to a string which can be passed to the Exec function.

Returns
execution argument as string.
Here is the caller graph for this function:

The documentation for this class was generated from the following files: