rad
5.1.0
|
Classes | |
class | OldbAdapter |
class | Publisher |
class | Replier |
class | Request |
class | Request< REP_TYPE, void > |
class | RequestAmi |
class | RequestAmi< REP_TYPE, void > |
class | Requestor |
class | Subscriber |
class | CancellationToken |
Typedefs | |
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 |
Functions | |
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) |
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> rad::cii::OldbType |
typedef std::vector<bool> rad::cii::VecBoolType |
typedef std::vector<double> rad::cii::VecDoubleType |
typedef std::vector<float> rad::cii::VecFloatType |
typedef std::vector<std::int16_t> rad::cii::VecInt16Type |
typedef std::vector<std::int32_t> rad::cii::VecInt32Type |
typedef std::vector<std::int64_t> rad::cii::VecInt64Type |
typedef std::vector<std::int8_t> rad::cii::VecInt8Type |
typedef std::vector<std::uint16_t> rad::cii::VecUint16Type |
typedef std::vector<std::uint32_t> rad::cii::VecUint32Type |
typedef std::vector<std::uint64_t> rad::cii::VecUint64Type |
typedef std::vector<std::uint8_t> rad::cii::VecUint8Type |
|
inline |
This helper function loads given MAL middlewares and configure them with default QoS properties.
mal_types | A list of supported middlewares (e.g. zpd, opcua, ...) |
Usage: LoadMiddlewares({"zpb", "opcua"});
void rad::cii::RoutePartialReply | ( | std::shared_ptr<::elt::mal::rr::Ami< T >> | ami, |
rad::SMAdapter & | sm | ||
) |
This function can be use to configure the injection of an event, associated to a partial reply, into a given State Machine engine. There is no special handling for error replies (exceptions).
EVENT | Type of event to trigger when a partial reply is received. |
T | Type associated to the partial replies. |
ami | Object associated to the partial replies and returned by MAL Client interface invocation. |
sm | Reference to a State Machine adapter. |
CancellationToken rad::cii::RouteReply | ( | FUT && | rep_future, |
rad::SMAdapter & | sm | ||
) |
This function can be use to configure the injection of an event, associated to a reply, into a given State Machine engine. There is no special handling for error replies (exceptions).
EVENT | Type of event to trigger when the reply is received. |
FUT | Type of future for the reply. |
rep_future | Future associated to the reply and returned by MAL Client interface invocation. |
sm | Reference to a State Machine adapter. |
CancellationToken rad::cii::RouteReply | ( | FUT && | rep_future, |
rad::SMAdapter & | sm | ||
) |
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), into a given State Machine engine.
EVENT | Type of OK event to trigger in case of OK reply. |
EVENT_ERR | Type of ERROR event to trigger in case of ERROR reply. |
FUT | Type of future for the reply. |
rep_future | Future associated to the reply and returned by MAL Client interface invocation. |
sm | Reference to a State Machine adapter. |
CancellationToken rad::cii::RouteReplyWithTimeout | ( | FUT && | rep_future, |
rad::SMAdapter & | sm | ||
) |
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.
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. |
rep_future | Future associated to the reply and returned by MAL Client interface invocation. |
sm | Reference to a State Machine adapter. |