Defines a task for updating an instrument within an instrument inheritance hierarchy. Each instrument (indirectly) derived from class InstrumentBase
must be accompanied by an update task class derived from UpdateTaskBase
. Even if the task does not do anything, at least it has to call UpdateTaskBase::UpdateFuncImpl() of the derived instrument's update task class.
More...
template<typename BaseInstr, std::enable_if_t< std::is_base_of_v< DynExp::InstrumentBase, BaseInstr >, int >, typename... gRPCStubs>
class DynExpInstr::gRPCInstrumentTasks::UpdateTask< BaseInstr,, gRPCStubs >
Defines a task for updating an instrument within an instrument inheritance hierarchy. Each instrument (indirectly) derived from class InstrumentBase
must be accompanied by an update task class derived from UpdateTaskBase
. Even if the task does not do anything, at least it has to call UpdateTaskBase::UpdateFuncImpl() of the derived instrument's update task class.
- Template Parameters
-
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 113 of file gRPCInstrument.h.
template<typename BaseInstr , std::enable_if_t< std::is_base_of_v< DynExp::InstrumentBase, BaseInstr >, int > , typename... gRPCStubs>
|
inlinefinaloverrideprivate |
Updates the respective instrument within the instrument inheritance hierarchy. Call UpdateFuncImpl()
of a derived instrument's update task as the last command in a base instrument's update task UpdateFuncImpl()
to ensure that derived instruments are updated after base instruments. Overriding functions must throw an exception in case of an error.
- Parameters
-
Instance | Handle to the instrument thread's data |
Definition at line 126 of file gRPCInstrument.h.
template<typename BaseInstr , std::enable_if_t< std::is_base_of_v< DynExp::InstrumentBase, BaseInstr >, int > , typename... gRPCStubs>
Updates the respective instrument within the instrument inheritance hierarchy. Call UpdateFuncImpl()
of a derived instrument's update task as the last command in a base instrument's update task UpdateFuncImpl()
to ensure that derived instruments are updated after base instruments. Overriding functions must throw an exception in case of an error.
- Parameters
-
Instance | Handle to the instrument thread's data |
Definition at line 134 of file gRPCInstrument.h.