pion::server::PlatformConfig Class Reference

#include <PlatformConfig.hpp>

Inherits pion::platform::ConfigManager.

List of all members.


Detailed Description

PlatformConfig: manages system configuration for the Pion Platform

Definition at line 47 of file PlatformConfig.hpp.

Public Member Functions

 PlatformConfig (void)
 constructs a new PlatformConfig instance
virtual ~PlatformConfig ()
 virtual destructor
virtual void openConfigFile (void)
 opens an existing platform config file
virtual void writeConfigXML (std::ostream &out) const
pion::platform::VocabularyManagergetVocabularyManager (void)
 returns a reference to the global VocabularyManager
pion::platform::CodecFactorygetCodecFactory (void)
 returns a reference to the global CodecFactory
pion::platform::ProtocolFactorygetProtocolFactory (void)
 returns a reference to the global ProtocolFactory
pion::platform::DatabaseManagergetDatabaseManager (void)
 returns a reference to the global DatabaseManager
pion::platform::ReactionEnginegetReactionEngine (void)
 returns a reference to the global ReactionEngine
const pion::platform::ReactionEnginegetReactionEngine (void) const
 returns a const reference to the global ReactionEngine
ServiceManagergetServiceManager (void)
 returns a reference to the global ServiceManager
const UserManagerPtr getUserManagerPtr (void) const
 returns a pointer to the global UserManager
const std::string & getLogConfigFile (void) const
 returns the name of the logging configuration file
const std::string & getDataDirectory (void) const
 returns the directory in which data files are stored
bool getDebugMode (void) const
 returns true if pion is running in "debug mode"

Classes

class  DirectoryNotFoundException
 exception thrown if the directory configured is not found More...
class  EmptyPluginPathException
 exception thrown if the config file contains an empty PluginPath definition More...
class  MissingCodecConfigException
 exception thrown if the config file does not contain a CodecConfig element More...
class  MissingDatabaseConfigException
 exception thrown if the config file does not contain a DatabaseConfig element More...
class  MissingDataDirectoryException
 exception thrown if the config file does not contain a DataDirectory element More...
class  MissingProtocolConfigException
 exception thrown if the config file does not contain a ProtocolConfig element More...
class  MissingReactorConfigException
 exception thrown if the config file does not contain a ReactorConfig element More...
class  MissingServiceConfigException
 exception thrown if the config file does not contain a ServiceConfig element More...
class  MissingUserConfigException
 exception thrown if the config file does not contain a UserConfig element More...
class  MissingVocabularyConfigException
 exception thrown if the config file does not contain a VocabularyConfig element More...
class  NotADirectoryException
 exception thrown if the directory configuration option is not a directory More...


Member Function Documentation

void pion::server::PlatformConfig::writeConfigXML ( std::ostream &  out  )  const [virtual]

writes the platform configuration to an output stream (as XML)

Parameters:
out the ostream to write the configuration into

Reimplemented from pion::platform::ConfigManager.

Definition at line 389 of file PlatformConfig.cpp.

References pion::platform::ConfigManager::getConfigFile(), getLogConfigFile(), and pion::platform::VocabularyManager::getVocabularyPath().

Referenced by pion::plugins::ConfigService::operator()().


The documentation for this class was generated from the following files:
Generated on Wed Apr 13 16:38:37 2011 for pion-platform by  doxygen 1.4.7