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

World Class Reference

Application's Communication Server System. More...

#include <world.h>

List of all members.

Public Member Functions

 World ()
 ~World ()
void Register (const string &name, Node &newnode)
 Add a node to our server.
void Broadcast (const string &id, Signal &sig)
 Send signal and identifier to all nodes.
void SendSignal (const string &name, const string &id, Signal &sig)
 Same as broadcast, except a specific node can be signalled.

Private Attributes

map< string, Node * > nodes
 Nodes are stored in a hash (named array).


Detailed Description

Application's Communication Server System.

This is the main server, whereby each section of the program has to register with this class, to enable signalling with the other 'nodes'.


Constructor & Destructor Documentation

World::World  ) 
 

World::~World  ) 
 


Member Function Documentation

void World::Broadcast const string &  id,
Signal sig
 

Send signal and identifier to all nodes.

An example could be Broadcast("KeyPress",buttons_pressed)

void World::Register const string &  name,
Node newnode
 

Add a node to our server.

void World::SendSignal const string &  name,
const string &  id,
Signal sig
 

Same as broadcast, except a specific node can be signalled.


Member Data Documentation

map<string , Node*> World::nodes [private]
 

Nodes are stored in a hash (named array).


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