eq::server::Loader Class Reference

The config file loader. More...

#include <loader.h>

List of all members.

Public Member Functions

 Loader ()
 Constructs a new loader.
ServerPtr loadFile (const std::string &filename)
 Loads a config file.
ServerPtr parseServer (const char *config)
 Parse a config file given as a parameter.
ConfigparseConfig (const char *config)
 Parse a Config given as a parameter.

Static Public Member Functions

static void addOutputCompounds (ServerPtr server)
 Add a Compound for each output channel.
static void addDestinationViews (ServerPtr server)
 Add segments and layouts for dest channels in non-view configs.
static void addDefaultObserver (ServerPtr server)
 Add one observer for observer-less configurations.


Detailed Description

The config file loader.

Definition at line 41 of file loader.h.


Member Function Documentation

ServerPtr eq::server::Loader::loadFile ( const std::string &  filename  ) 

Loads a config file.

The returned config has to be deleted by the caller.

Parameters:
filename the name of the config file.
Returns:
The parsed config, or 0 upon error.

ServerPtr eq::server::Loader::parseServer ( const char *  config  ) 

Parse a config file given as a parameter.

Parameters:
config the config file.
Returns:
the parsed server.

Config* eq::server::Loader::parseConfig ( const char *  config  ) 

Parse a Config given as a parameter.

Parameters:
config the config.
Returns:
the parsed config.

void eq::server::Loader::addOutputCompounds ( ServerPtr  server  )  [static]

Add a Compound for each output channel.

This function creates a compound for each output channel which is not used as a destination channel yet.

Definition at line 90 of file loader.cpp.

References eq::server::Config::accept(), eq::server::Compound::addChild(), eq::server::Config::addCompound(), and eq::server::Compound::setChannel().

Here is the call graph for this function:

void eq::server::Loader::addDestinationViews ( ServerPtr  server  )  [static]

Add segments and layouts for dest channels in non-view configs.

This function creates the appropriate views and segments for destination channels, and reassigns the compound channel.

Definition at line 230 of file loader.cpp.

void eq::server::Loader::addDefaultObserver ( ServerPtr  server  )  [static]

Add one observer for observer-less configurations.

If a configuration has no observers, one is created and assigned to all views, which retains the behaviour of legacy configurations.

Definition at line 262 of file loader.cpp.


The documentation for this class was generated from the following files:
Generated on Mon Aug 10 18:58:45 2009 for Equalizer 0.9 by  doxygen 1.5.8