#include <loader.h>
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. | |
| Config * | parseConfig (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. | |
Definition at line 41 of file loader.h.
| ServerPtr eq::server::Loader::loadFile | ( | const std::string & | filename | ) |
Loads a config file.
The returned config has to be deleted by the caller.
| filename | the name of the config file. |
0 upon error. | ServerPtr eq::server::Loader::parseServer | ( | const char * | config | ) |
Parse a config file given as a parameter.
| config | the config file. |
| Config* eq::server::Loader::parseConfig | ( | const char * | 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().

| 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.
0.9 by
1.5.8