EVA ICS v4 C++ SDK
Public Member Functions | List of all members
eva::RpcEvent Class Reference

#include <eva4-ffi-sdk.hpp>

Public Member Functions

 RpcEvent (EvaFFIRpcEvent *r)
 
string primary_sender ()
 
string parse_method ()
 
bool hasPayload ()
 
msgpack::object_handle unpack ()
 
OID asUnitActionOID ()
 
template<typename T >
controller::Action< controller::UnitActionParams< T > > asUnitAction ()
 

Detailed Description

Incoming RPC event

Constructor & Destructor Documentation

◆ RpcEvent()

eva::RpcEvent::RpcEvent ( EvaFFIRpcEvent *  r)
inline

Constructs an event from a raw FFI event buffer

Member Function Documentation

◆ asUnitAction()

template<typename T >
controller::Action<controller::UnitActionParams<T> > eva::RpcEvent::asUnitAction ( )
inline

Get unit action (for "action" method called)

Template Parameters
Taction value kind for UnitActionParams
Returns
action object
Exceptions
MessagePackexceptions

◆ asUnitActionOID()

OID eva::RpcEvent::asUnitActionOID ( )
inline

Get unit action OID (for "action" method called)

Returns
unit OID
Exceptions
MessagePackexceptions

◆ hasPayload()

bool eva::RpcEvent::hasPayload ( )
inline
Returns
if the call has parametes payload

◆ parse_method()

string eva::RpcEvent::parse_method ( )
inline
Returns
event method (as string)

◆ primary_sender()

string eva::RpcEvent::primary_sender ( )
inline
Returns
event sender (primary client id)

◆ unpack()

msgpack::object_handle eva::RpcEvent::unpack ( )
inline
Returns
MessagePack object handle for the unpacked parameters payload
Exceptions
MessagePackexceptions

The documentation for this class was generated from the following file:
The official SDK for EVA ICS
Technical documentation: https://info.bma.ai/en/actual/eva4/sdk/cpp/
© Bohemia Automation / Altertech