Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

Signal Class Reference

Signal message class. More...

#include <signal.h>

List of all members.

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


Detailed Description

Signal message class.

Message parameters passed around the app are encapsulated in this class.


Constructor & Destructor Documentation

Signal::Signal (  const string &  d  ) 
 

Signal::~Signal (   ) 
 


Member Function Documentation

template<typename T>
T Signal::Load (  const string &  key  )  [inline]
 

load a value from its key

Signal & Signal::operator() (  const string &  key,
any  v
) 
 

add a value and its key

        sig("name", (const char*)"Amir")
           ("age" , (int)67)
           ("pi"  , (float)3.141592654);


Friends And Related Function Documentation

ostream& operator<< (  ostream &  os,
const Signal &  sig
)  [friend]
 

print out debug message


Member Data Documentation

const string Signal::debug [private]
 

debug message

map<string , any> Signal::parameters [private]
 

signal parameters (cast to ints)


The documentation for this class was generated from the following files:
Generated on Sun Mar 20 12:22:07 2005 for The Grid by doxygen 1.3.8