Kanzi Connect 3.9.10
kanzi::connect::GenericServiceClient::EventCallbackEx::EventArguments Class Reference

Wrapper class for event arguments. Used in external application bindings. More...

#include <genericserviceclient.hpp>

Public Member Functions

 EventArguments (const map< string, string > &argumentMap)
 Construct event arguments from argument map.
 
vector< string > getKeys ()
 Get all the keys.
 
string getValue (const string &key)
 Get value with a key.
 
bool hasKey (const string &key)
 Checks whether specific key is present.
 

Detailed Description

Wrapper class for event arguments. Used in external application bindings.

Constructor & Destructor Documentation

◆ EventArguments()

kanzi::connect::GenericServiceClient::EventCallbackEx::EventArguments::EventArguments ( const map< string, string > & argumentMap)
explicit

Construct event arguments from argument map.

Member Function Documentation

◆ getKeys()

vector< string > kanzi::connect::GenericServiceClient::EventCallbackEx::EventArguments::getKeys ( )

Get all the keys.

Returns
vector of keys currently held.

◆ getValue()

string kanzi::connect::GenericServiceClient::EventCallbackEx::EventArguments::getValue ( const string & key)

Get value with a key.

Parameters
nameof the key
Returns
value indexed with the key. empty string if not found.

◆ hasKey()

bool kanzi::connect::GenericServiceClient::EventCallbackEx::EventArguments::hasKey ( const string & key)

Checks whether specific key is present.

Parameters
keythe key to check
Returns
true if there is a value with the key.

The documentation for this class was generated from the following file: