DynExp
Highly flexible laboratory automation for dynamically changing experiments.
|
Parameter class for gRPCInstrument
.
More...
Public Member Functions | |
gRPCInstrumentParams (DynExp::ItemIDType ID, const DynExp::DynExpCore &Core) | |
Constructs the parameters for a gRPCInstrument instance. More... | |
virtual | ~gRPCInstrumentParams ()=default |
virtual const char * | GetParamClassTag () const noexcept override |
This function is intended to be overridden once in each derived class returning the name of the respective class. Parameters defined in any class within the ParamsBase hierarchy will receive a 'this' pointer pointing to ParamsBase when their ParamBase constructors are called. The ParamBase constructors will register the respective parameter in ParamsBase::OwnedParams calling GetParamClassTag() on the given 'this' pointer. This allows the ParamBase constructor to obtain the name of the class where the respective parameter was declared in. The name is used as an XML tag containing related parameters in the project files. Here, it is fully intended that the virtual call to GetParamClassTag() leads only to a call of GetParamClassTag() of the current dynamic type of ParamsBase! More... | |
Public Attributes | |
DynExp::NetworkParamsExtension | NetworkParams |
Network address of the gRPC server to connect to. More... | |
Private Member Functions | |
void | ConfigureParamsImpl (DynExp::InstrumentParamsBase::dispatch_tag< typename BaseInstr::ParamsType >) override final |
Called by DynExp::ParamsBase::ConfigureParams() as a starting point for the tag dispatch mechanism to descend the inheritance hierarchy. Override to add functionality to ConfigureParams(). Refer to DynExp::ParamsBase::dispatch_tag. More... | |
virtual void | ConfigureParamsImpl (DynExp::InstrumentParamsBase::dispatch_tag< gRPCInstrumentParams >) |
Called by DynExp::ParamsBase::ConfigureParams() as a starting point for the tag dispatch mechanism to descend the inheritance hierarchy. Override to add functionality to ConfigureParams(). Refer to DynExp::ParamsBase::dispatch_tag. More... | |
virtual const DynExp::NetworkParamsExtension * | GetNetworkAddressParamsChild () const noexcept override |
Returns the network address parameters of a derived gRPC instrument. Override GetNetworkAddressParamsChild() in order to adjust. More... | |
Parameter class for gRPCInstrument
.
BaseInstr | Meta instrument this class derives from. |
enable_if_t | Internal check whether BaseInstr is derived from DynExp::InstrumentBase. Pass 0. |
...gRPCStubs | gRPC stub types which this gRPC client expects from the server to be provided. The order of stub types should match the order of service types in the gRPCServices list of the respective DynExpModule::gRPCModule gRPC server. |
Definition at line 217 of file gRPCInstrument.h.
|
inline |
Constructs the parameters for a gRPCInstrument
instance.
ID | ID of the Object this parameter class instance belongs to |
Core | Reference to DynExp's core |
Definition at line 224 of file gRPCInstrument.h.
|
virtualdefault |
|
inlineprivatevirtual |
Called by DynExp::ParamsBase::ConfigureParams() as a starting point for the tag dispatch mechanism to descend the inheritance hierarchy. Override to add functionality to ConfigureParams(). Refer to DynExp::ParamsBase::dispatch_tag.
Definition at line 248 of file gRPCInstrument.h.
|
inlinefinaloverrideprivate |
Called by DynExp::ParamsBase::ConfigureParams() as a starting point for the tag dispatch mechanism to descend the inheritance hierarchy. Override to add functionality to ConfigureParams(). Refer to DynExp::ParamsBase::dispatch_tag.
Definition at line 240 of file gRPCInstrument.h.
|
inlineoverrideprivatevirtualnoexcept |
Returns the network address parameters of a derived gRPC instrument. Override GetNetworkAddressParamsChild() in order to adjust.
Definition at line 253 of file gRPCInstrument.h.
|
inlineoverridevirtualnoexcept |
This function is intended to be overridden once in each derived class returning the name of the respective class. Parameters defined in any class within the ParamsBase hierarchy will receive a 'this' pointer pointing to ParamsBase when their ParamBase constructors are called. The ParamBase constructors will register the respective parameter in ParamsBase::OwnedParams calling GetParamClassTag() on the given 'this' pointer. This allows the ParamBase constructor to obtain the name of the class where the respective parameter was declared in. The name is used as an XML tag containing related parameters in the project files. Here, it is fully intended that the virtual call to GetParamClassTag() leads only to a call of GetParamClassTag() of the current dynamic type of ParamsBase!
Reimplemented in DynExpInstr::WidefieldLocalizationParams, DynExpInstr::NetworkTimeTaggerParams< BaseInstr,, gRPCStubs >, DynExpInstr::NetworkSpectrometerParams, DynExpInstr::NetworkDigitalOutParams< BaseInstr,, gRPCStubs >, DynExpInstr::NetworkDigitalInParams< BaseInstr,, gRPCStubs >, DynExpInstr::NetworkDataStreamInstrumentParams< BaseInstr,, gRPCStubs >, DynExpInstr::NetworkDataStreamInstrumentParams< BaseInstr, 0, gRPCStubs... >, DynExpInstr::NetworkAnalogOutParams< BaseInstr,, gRPCStubs >, and DynExpInstr::NetworkAnalogInParams< BaseInstr,, gRPCStubs >.
Definition at line 232 of file gRPCInstrument.h.
DynExp::NetworkParamsExtension DynExpInstr::gRPCInstrumentParams< BaseInstr,, gRPCStubs >::NetworkParams |
Network address of the gRPC server to connect to.
Definition at line 234 of file gRPCInstrument.h.