#include <signal.h>
Public Member Functions | |
Signal (const string &d) | |
~Signal () | |
template<typename T> T | Load (const string &key) |
load a value from its key | |
Signal & | operator() (const string &key, any v) |
add a value and its key | |
Private Attributes | |
map< string, any > | parameters |
signal parameters (cast to ints) | |
const string | debug |
debug message | |
Friends | |
ostream & | operator<< (ostream &os, const Signal &sig) |
print out debug message |
Message parameters passed around the app are encapsulated in this class.
|
|
|
|
|
load a value from its key
|
|
add a value and its key
sig("name", (const char*)"Amir") ("age" , (int)67) ("pi" , (float)3.141592654); |
|
print out debug message
|
|
debug message
|
|
signal parameters (cast to ints)
|