Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

GlobalObjects Class Reference

#include <GlobalObjects.h>

List of all members.

Public Methods

ConfiggetConfig ()
CatchergetCatcher ()
NetworkLayergetNetworkLayer ()
InterfacesgetInterfaces ()
ProxyCommandProcessorgetProxyCommandProcessor ()
TransportLayergetTransportLayer ()
ServiceTablegetServiceTable ()
HttpTestCommandProcessorgetHttpTestCommandProcessor ()
void setConfig (Config *config)
void setCatcher (Catcher *catcher)
void setNetworkLayer (NetworkLayer *networkLayer)
void setInterfaces (Interfaces *interfaces)
void setTransportLayer (TransportLayer *transportLayer)

Static Public Methods

GlobalObjects * instance ()
void destroy ()

Private Methods

 GlobalObjects ()
 ~GlobalObjects ()
void init ()
void destroyImpl ()
 We must destroy in a two-stage process because we want the "globalObjects" pointer around until everything contained inside of it has been destroyed. More...


Static Private Methods

void initializeCommands (CommandProcessor *cp, HttpTestCommandProcessor *hcp)

Private Attributes

Configm_config
Catcherm_catcher
NetworkLayerm_networkLayer
Interfacesm_interfaces
TransportLayerm_transportLayer
WebServerm_webServer
ProxyCommandProcessorm_proxy
HttpTestCommandProcessorm_httpTestProcessor

Static Private Attributes

GlobalObjects * m_globalObjects = NULL


Constructor & Destructor Documentation

GlobalObjects::GlobalObjects [private]
 

Definition at line 71 of file GlobalObjects.cpp.

Referenced by instance().

GlobalObjects::~GlobalObjects [private]
 

Definition at line 135 of file GlobalObjects.cpp.


Member Function Documentation

void GlobalObjects::destroy [static]
 

Definition at line 18 of file GlobalObjects.cpp.

Referenced by ExitCommand::run(), and unload().

void GlobalObjects::destroyImpl [private]
 

We must destroy in a two-stage process because we want the "globalObjects" pointer around until everything contained inside of it has been destroyed.

Definition at line 32 of file GlobalObjects.cpp.

Referenced by destroy().

Catcher * GlobalObjects::getCatcher
 

Definition at line 236 of file GlobalObjects.cpp.

Referenced by LinkLayerInterface::LinkLayerInterface(), LinkLayerInterface::accept(), NodeManagerCommand::addNode(), SummaryScreenCommand::getHtmlInterface(), NodeManagerCommand::getHtmlInterface(), NetworkLayer::handleImHerePacket(), LinkLayerInterface::peerConnectImpl(), NodeManagerCommand::run(), and ConnectionManagerCommand::run().

Config * GlobalObjects::getConfig
 

Definition at line 227 of file GlobalObjects.cpp.

Referenced by ImHerePacket::ImHerePacket(), SslConnection::accept(), LinkLayerInterface::accept(), Catcher::addNode(), LinkLayerInterface::changeListeningPortTo(), SslConnection::connect(), LinkLayerInterface::connect(), NetworkLayer::connectTerminate(), SummaryScreenCommand::getHtmlInterface(), BasicConfigurationCommand::getHtmlInterface(), AdvancedConfigurationCommand::getHtmlInterface(), NetworkLayer::handleConnectPacket(), NetworkLayer::handleDiscoveryPacket(), LinkLayerInterface::listenImpl(), LinkLayerInterface::peerConnectImpl(), BasicConfigurationCommand::run(), AdvancedConfigurationCommand::run(), LinkLayerInterface::toStream(), and LinkLayerInterface::~LinkLayerInterface().

HttpTestCommandProcessor * GlobalObjects::getHttpTestCommandProcessor
 

Definition at line 209 of file GlobalObjects.cpp.

Interfaces * GlobalObjects::getInterfaces
 

Definition at line 254 of file GlobalObjects.cpp.

NetworkLayer * GlobalObjects::getNetworkLayer
 

Definition at line 245 of file GlobalObjects.cpp.

Referenced by SummaryScreenCommand::getHtmlInterface(), ConnectionManagerCommand::getHtmlInterface(), VisualizerFrame::getInitialNeighborNodes(), NodeManagerCommand::run(), ConnectionManagerCommand::run(), BasicConfigurationCommand::run(), and VisualizerListener::setFrame().

ProxyCommandProcessor * GlobalObjects::getProxyCommandProcessor
 

Definition at line 218 of file GlobalObjects.cpp.

ServiceTable * GlobalObjects::getServiceTable
 

Definition at line 272 of file GlobalObjects.cpp.

TransportLayer * GlobalObjects::getTransportLayer
 

Definition at line 263 of file GlobalObjects.cpp.

Referenced by WebServer::handleConnection(), WebServer::run(), and ProxyRequestCommand::run().

void GlobalObjects::init [private]
 

Definition at line 87 of file GlobalObjects.cpp.

Referenced by instance().

void GlobalObjects::initializeCommands CommandProcessor * cp,
HttpTestCommandProcessor * htcp
[static, private]
 

Definition at line 140 of file GlobalObjects.cpp.

Referenced by init().

GlobalObjects * GlobalObjects::instance [static]
 

Definition at line 6 of file GlobalObjects.cpp.

Referenced by IMPLEMENT_APP(), ImHerePacket::ImHerePacket(), LinkLayerInterface::LinkLayerInterface(), SslConnection::accept(), LinkLayerInterface::accept(), NodeManagerCommand::addNode(), Catcher::addNode(), LinkLayerInterface::changeListeningPortTo(), SslConnection::connect(), LinkLayerInterface::connect(), NetworkLayer::connectTerminate(), SummaryScreenCommand::getHtmlInterface(), NodeManagerCommand::getHtmlInterface(), ConnectionManagerCommand::getHtmlInterface(), BasicConfigurationCommand::getHtmlInterface(), AdvancedConfigurationCommand::getHtmlInterface(), VisualizerFrame::getInitialNeighborNodes(), NetworkLayer::handleConnectPacket(), WebServer::handleConnection(), NetworkLayer::handleDiscoveryPacket(), NetworkLayer::handleImHerePacket(), LinkLayerInterface::listenImpl(), LinkLayerInterface::peerConnectImpl(), WebServer::run(), ProxyRequestCommand::run(), NodeManagerCommand::run(), ConnectionManagerCommand::run(), BasicConfigurationCommand::run(), AdvancedConfigurationCommand::run(), VisualizerListener::setFrame(), LinkLayerInterface::toStream(), and LinkLayerInterface::~LinkLayerInterface().

void GlobalObjects::setCatcher Catcher * catcher
 

Definition at line 287 of file GlobalObjects.cpp.

void GlobalObjects::setConfig Config * config
 

Definition at line 281 of file GlobalObjects.cpp.

void GlobalObjects::setInterfaces Interfaces * interfaces
 

Definition at line 299 of file GlobalObjects.cpp.

void GlobalObjects::setNetworkLayer NetworkLayer * networkLayer
 

Definition at line 293 of file GlobalObjects.cpp.

void GlobalObjects::setTransportLayer TransportLayer * transportLayer
 


Member Data Documentation

Catcher* GlobalObjects::m_catcher [private]
 

Definition at line 52 of file GlobalObjects.h.

Config* GlobalObjects::m_config [private]
 

Definition at line 51 of file GlobalObjects.h.

GlobalObjects * GlobalObjects::m_globalObjects = NULL [static, private]
 

Definition at line 3 of file GlobalObjects.cpp.

HttpTestCommandProcessor* GlobalObjects::m_httpTestProcessor [private]
 

Definition at line 58 of file GlobalObjects.h.

Interfaces* GlobalObjects::m_interfaces [private]
 

Definition at line 54 of file GlobalObjects.h.

NetworkLayer* GlobalObjects::m_networkLayer [private]
 

Definition at line 53 of file GlobalObjects.h.

ProxyCommandProcessor* GlobalObjects::m_proxy [private]
 

Definition at line 57 of file GlobalObjects.h.

TransportLayer* GlobalObjects::m_transportLayer [private]
 

Definition at line 55 of file GlobalObjects.h.

WebServer* GlobalObjects::m_webServer [private]
 

Definition at line 56 of file GlobalObjects.h.


The documentation for this class was generated from the following files:
Generated at Thu Jul 11 13:31:56 2002 for Peekabooty by doxygen1.2.9 written by Dimitri van Heesch, © 1997-2001