|
typedef std::vector< std::int8_t > | VecInt8Type |
|
typedef std::vector< std::int16_t > | VecInt16Type |
|
typedef std::vector< std::int32_t > | VecInt32Type |
|
typedef std::vector< std::int64_t > | VecInt64Type |
|
typedef std::vector< std::uint8_t > | VecUint8Type |
|
typedef std::vector< std::uint16_t > | VecUint16Type |
|
typedef std::vector< std::uint32_t > | VecUint32Type |
|
typedef std::vector< std::uint64_t > | VecUint64Type |
|
typedef std::vector< bool > | VecBoolType |
|
typedef std::vector< float > | VecFloatType |
|
typedef std::vector< double > | VecDoubleType |
|
typedef std::variant< std::int8_t, std::int16_t, std::int32_t, std::int64_t, std::uint8_t, std::uint16_t, std::uint32_t, std::uint64_t, bool, float, double, std::string, VecInt8Type, VecInt16Type, VecInt32Type, VecInt64Type, VecUint8Type, VecUint16Type, VecUint32Type, VecUint64Type, VecBoolType, VecFloatType, VecDoubleType > | OldbType |
|
|
template<class EVENT , class T > |
void | RoutePartialReply (std::shared_ptr<::elt::mal::rr::Ami< T > > ami, rad::SMAdapter &sm) |
|
template<class EVENT , class FUT > |
CancellationToken | RouteReply (FUT &&rep_future, rad::SMAdapter &sm) |
|
template<class EVENT , class EVENT_ERR , class FUT > |
CancellationToken | RouteReply (FUT &&rep_future, rad::SMAdapter &sm) |
|
template<class EVENT , class EVENT_TIMEOUT , class EVENT_ERR , class FUT > |
CancellationToken | RouteReplyWithTimeout (FUT &&rep_future, rad::SMAdapter &sm) |
|
void | LoadMiddlewares (const std::vector< std::string > &mal_types) |
|
void | LoadMiddlewares (const std::vector< std::pair< std::string, elt::mal::Mal::Properties > > &mal_specs) |
|
void rad::cii::LoadMiddlewares |
( |
const std::vector< std::pair< std::string, elt::mal::Mal::Properties > > & | mal_specs | ) |
|
This helper function loads given MAL middlewares and configures them with the provided QoS properties.
The properties will apply to all publishers, etc. of the middleware.
- Parameters
-
mal_specs | A list of (middleware name, middleware properties) pairs |
Usage: LoadMiddlewares({ {"zpb",{}}, {"opcua",{}} });
void rad::cii::LoadMiddlewares |
( |
const std::vector< std::string > & | mal_types | ) |
|
|
inline |
This helper function loads given MAL middlewares and configure them with default QoS properties.
For specifying MAL properties, see the overloaded variant of this method.
- Parameters
-
mal_types | A list of supported middlewares (e.g. zpb, opcua, ...) |
Usage: LoadMiddlewares({"zpb", "opcua"});
template<class EVENT , class EVENT_TIMEOUT , class EVENT_ERR , class FUT >
This function can be use to configure the injection of an OK event (associated to a normal reply), or an ERROR event (associated to an error reply/exception), or a TIMEOUT event (associated to the expiration of a timer associated with a request) into a given State Machine engine.
- Template Parameters
-
EVENT | Type of OK event to trigger in case of OK reply. |
EVENT_TIMEOUT | Type of TIMEOUT event to trigger in case of request time-out. |
EVENT_ERR | Type of ERROR event to trigger in case of ERROR reply. |
FUT | Type of future for the reply. |
- Parameters
-
rep_future | Future associated to the reply and returned by MAL Client interface invocation. |
sm | Reference to a State Machine adapter. |
- Returns
- A token that can be used to check whether the request has been aborted or not.