AbstractRPCCall¶
-
class
kanzi::connect
::
AbstractRPCCall
¶ An abstract class that translates network message to interface function call.
Subclassed by RPCCall< InterfaceClass, SessionClass, MessageClass >
Public Functions
-
inline
AbstractRPCCall
()¶ Constructor.
-
inline virtual
~AbstractRPCCall
()¶ Destructor.
-
virtual void
execute
() = 0¶ Executes the function call with given arguments.
-
inline virtual shared_ptr<GenericRPCReplyMessage>
getReturnValue
() const¶ Holds the function return value if any.
- Returns
shared pointer to reply message that encapsulates the return value as whole.
-
virtual string
getType
() const = 0¶ Returns type of the function, usually name of the function.
- Returns
Type of the function, as string.
-
virtual void
setArguments
(const MessagePackage &message) = 0¶ Sets arguments of the function call from network message.
- Parameters
message – Network message that has the arguments for the function call.
-
inline