#include <config.h>


Public Member Functions | |
| Config () | |
| Constructs a new Config. | |
| Config (const Config &from) | |
| Constructs a new deep copy of a config. | |
| void | setLatency (const uint32_t latency) |
| Set the maximum accepted latency for this config. | |
| uint32_t | getLatency () const |
| uint32_t | getFinishedFrame () const |
| void | setApplicationName (const std::string &name) |
| Set the name of the application. | |
| void | addApplicationNode (Node *node) |
| Add the config node running the application thread. | |
| Node * | getApplicationNode () |
| bool | isApplicationNode (const Node *node) const |
| void | setApplicationNetNode (net::NodePtr node) |
| Set the network node running the application thread. | |
| void | setRenderClient (const std::string &rc) |
| Set the name of the render client executable. | |
| void | setWorkDir (const std::string &workDir) |
| Set the working directory for render client. | |
| void | notifyNodeFrameFinished (const uint32_t frameNumber) |
| Notify that a node of this config has finished a frame. | |
| bool | exit () |
| void | unmap () |
| Unmap all shared objects of the session, called before session teardown. | |
| uint32_t | getDistributorID () |
| Used by server during appNode initialization. | |
| uint32_t | getInitID () |
| Return the initID for late initialization. | |
Data Access. | |
| Server * | getServer () |
| Channel * | getChannel (const ChannelPath &path) |
| Canvas * | getCanvas (const CanvasPath &path) |
| Segment * | getSegment (const SegmentPath &path) |
| Layout * | getLayout (const LayoutPath &path) |
| Observer * | getObserver (const ObserverPath &path) |
| View * | getView (const ViewPath &path) |
| bool | isRunning () const |
| net::CommandQueue * | getServerThreadQueue () |
| void | setName (const std::string &name) |
| const std::string & | getName () const |
| void | addNode (Node *node) |
| Adds a new node to this config. | |
| bool | removeNode (Node *node) |
| Removes a node from this config. | |
| const NodeVector & | getNodes () const |
| void | addObserver (Observer *observer) |
| Adds a new observer to this config. | |
| bool | removeObserver (Observer *observer) |
| Removes a observer from this config. | |
| const ObserverVector & | getObservers () const |
| Observer * | findObserver (const std::string &name) |
| Find the first observer of a given name. | |
| const Observer * | findObserver (const std::string &name) const |
| Observer * | findObserver (const uint32_t id) |
| void | addLayout (Layout *layout) |
| Adds a new layout to this config. | |
| bool | removeLayout (Layout *layout) |
| Removes a layout from this config. | |
| const LayoutVector & | getLayouts () const |
| Layout * | findLayout (const std::string &name) |
| Find the first layout of a given name. | |
| const Layout * | findLayout (const std::string &name) const |
| Layout * | findLayout (const uint32_t id) |
| View * | findView (const std::string &name) |
| Find the first view of a given name. | |
| const View * | findView (const std::string &name) const |
| void | addCanvas (Canvas *canvas) |
| Adds a new canvas to this config. | |
| bool | removeCanvas (Canvas *canvas) |
| Removes a canvas from this config. | |
| const CanvasVector & | getCanvases () const |
| Canvas * | findCanvas (const std::string &name) |
| Find the first canvas of a given name. | |
| const Canvas * | findCanvas (const std::string &name) const |
| Segment * | findSegment (const std::string &name) |
| Find the first segment of a given name. | |
| const Segment * | findSegment (const std::string &name) const |
| void | addCompound (Compound *compound) |
| Adds a new compound to this config. | |
| bool | removeCompound (Compound *compound) |
| Removes a compound from this config. | |
| const CompoundVector & | getCompounds () const |
| Channel * | findChannel (const std::string &name) |
| Find the first channel of a given name. | |
| const Channel * | findChannel (const std::string &name) const |
| Channel * | findChannel (const Segment *segment, const View *view) |
| Find the channel for the given view/segment intersection. | |
| VisitorResult | accept (ConfigVisitor &visitor) |
| Traverse this config and all children using a config visitor. | |
| VisitorResult | accept (ConstConfigVisitor &visitor) const |
Error information. | |
| const std::string & | getErrorMessage () const |
Protected Member Functions | |
| virtual void | notifyMapped (net::NodePtr node) |
Friends | |
| class | Server |
Attributes | |
| enum | FAttribute { FATTR_EYE_BASE, FATTR_VERSION, FATTR_FILL1, FATTR_FILL2, FATTR_ALL } |
| void | setFAttribute (const FAttribute attr, const float value) |
| float | getFAttribute (const FAttribute attr) const |
| static const std::string & | getFAttributeString (const FAttribute attr) |
Definition at line 48 of file server/config.h.
| Server* eq::server::Config::getServer | ( | ) | [inline] |
Reimplemented from eq::net::Session.
Definition at line 66 of file server/config.h.
| void eq::server::Config::addNode | ( | Node * | node | ) |
Adds a new node to this config.
| node | the node. |
Definition at line 224 of file server/config.cpp.
References eq::server::Node::_config.
Referenced by addApplicationNode(), and eq::server::Node::Node().

| bool eq::server::Config::removeNode | ( | Node * | node | ) |
Removes a node from this config.
| node | the node |
true if the node was removed, false otherwise. Definition at line 231 of file server/config.cpp.
References eq::server::Node::_config.
| const NodeVector& eq::server::Config::getNodes | ( | ) | const [inline] |
Definition at line 100 of file server/config.h.
Referenced by Config(), and eq::server::Node::getPath().

| void eq::server::Config::addObserver | ( | Observer * | observer | ) |
Adds a new observer to this config.
| observer | the observer. |
Definition at line 243 of file server/config.cpp.
References eq::server::Observer::_config.
Referenced by eq::server::Observer::Observer().

| bool eq::server::Config::removeObserver | ( | Observer * | observer | ) |
Removes a observer from this config.
| observer | the observer |
true if the observer was removed, false otherwise. Definition at line 249 of file server/config.cpp.
References eq::server::Observer::_config.
| const ObserverVector& eq::server::Config::getObservers | ( | ) | const [inline] |
Definition at line 119 of file server/config.h.
Referenced by Config(), and eq::server::Observer::getPath().

| Observer * eq::server::Config::findObserver | ( | const std::string & | name | ) |
Find the first observer of a given name.
| name | the name of the observer to find |
0 if no observer with the name exists. Definition at line 261 of file server/config.cpp.
References accept().

| Observer * eq::server::Config::findObserver | ( | const uint32_t | id | ) |
Definition at line 273 of file server/config.cpp.
References accept().

| void eq::server::Config::addLayout | ( | Layout * | layout | ) |
Adds a new layout to this config.
| layout | the layout. |
Definition at line 281 of file server/config.cpp.
References eq::server::Layout::_config.
Referenced by eq::server::Layout::Layout().

| bool eq::server::Config::removeLayout | ( | Layout * | layout | ) |
Removes a layout from this config.
| layout | the layout |
true if the layout was removed, false otherwise. Definition at line 287 of file server/config.cpp.
References eq::server::Layout::_config.
| const LayoutVector& eq::server::Config::getLayouts | ( | ) | const [inline] |
Definition at line 151 of file server/config.h.
Referenced by Config(), and eq::server::Layout::getPath().

| Layout * eq::server::Config::findLayout | ( | const std::string & | name | ) |
Find the first layout of a given name.
| name | the name of the layout to find |
0 if no layout with the name exists. Definition at line 300 of file server/config.cpp.
References accept().

| Layout * eq::server::Config::findLayout | ( | const uint32_t | id | ) |
Definition at line 312 of file server/config.cpp.
References accept().

| View * eq::server::Config::findView | ( | const std::string & | name | ) |
Find the first view of a given name.
| name | the name of the view to find |
0 if no view with the name exists. Definition at line 319 of file server/config.cpp.
References accept().

| void eq::server::Config::addCanvas | ( | Canvas * | canvas | ) |
Adds a new canvas to this config.
| canvas | the canvas. |
Definition at line 371 of file server/config.cpp.
References eq::server::Canvas::_config, eq::Viewport::apply(), EQLOG, EQWARN, findChannel(), eq::server::Segment::getChannel(), eq::server::Canvas::getLayouts(), eq::Object::getName(), eq::server::Canvas::getSegments(), eq::server::Channel::getViewport(), eq::View::getViewport(), eq::server::Segment::getViewport(), eq::server::Layout::getViews(), eq::server::Channel::getWindow(), eq::Viewport::hasArea(), eq::Viewport::intersect(), eq::server::Channel::setOutput(), eq::server::Channel::setViewport(), and eq::Viewport::transform().
Referenced by eq::server::Canvas::Canvas().


| bool eq::server::Config::removeCanvas | ( | Canvas * | canvas | ) |
Removes a canvas from this config.
| canvas | the canvas |
true if the canvas was removed, false otherwise. Definition at line 451 of file server/config.cpp.
References eq::server::Canvas::_config.
Referenced by eq::server::Canvas::~Canvas().

| const CanvasVector& eq::server::Config::getCanvases | ( | ) | const [inline] |
Definition at line 193 of file server/config.h.
Referenced by Config(), and eq::server::Canvas::getPath().

| Canvas * eq::server::Config::findCanvas | ( | const std::string & | name | ) |
Find the first canvas of a given name.
| name | the name of the canvas to find |
0 if no canvas with the name exists. Definition at line 463 of file server/config.cpp.
References accept().

| Segment * eq::server::Config::findSegment | ( | const std::string & | name | ) |
Find the first segment of a given name.
| name | the name of the segment to find |
0 if no segment with the name exists. Definition at line 477 of file server/config.cpp.
References accept().

| void eq::server::Config::addCompound | ( | Compound * | compound | ) |
Adds a new compound to this config.
| compound | the compound. |
Definition at line 491 of file server/config.cpp.
References eq::server::Compound::_config.
Referenced by eq::server::Loader::addOutputCompounds(), and eq::server::Compound::Compound().

| bool eq::server::Config::removeCompound | ( | Compound * | compound | ) |
Removes a compound from this config.
| compound | the compound |
true if the compound was removed, false otherwise. Definition at line 497 of file server/config.cpp.
References eq::server::Compound::_config.
Referenced by eq::server::Compound::~Compound().

| const CompoundVector& eq::server::Config::getCompounds | ( | ) | const [inline] |
Definition at line 232 of file server/config.h.
Referenced by Config().

| Channel * eq::server::Config::findChannel | ( | const std::string & | name | ) |
Find the first channel of a given name.
| name | the name of the channel to find |
0 if no channel with the name exists. Definition at line 509 of file server/config.cpp.
References accept().
Referenced by addCanvas().


Find the channel for the given view/segment intersection.
| segment | the segment. | |
| view | the view. |
Definition at line 364 of file server/config.cpp.
References accept().

| VisitorResult eq::server::Config::accept | ( | ConfigVisitor & | visitor | ) |
Traverse this config and all children using a config visitor.
| visitor | the visitor. |
Definition at line 727 of file server/config.cpp.
Referenced by eq::server::Loader::addOutputCompounds(), eq::server::View::deserialize(), findCanvas(), findChannel(), findLayout(), findObserver(), findSegment(), findView(), eq::server::ConfigSerializer::getInstanceData(), and unmap().

| void eq::server::Config::setLatency | ( | const uint32_t | latency | ) | [inline] |
Set the maximum accepted latency for this config.
The latency is defined as the maximum number of frames between the start of a frame and the finish of the last rendering task for that frame.
| latency | the latency. |
Definition at line 272 of file server/config.h.
| uint32_t eq::server::Config::getLatency | ( | ) | const [inline] |
Definition at line 275 of file server/config.h.
Referenced by eq::server::ConfigSerializer::getInstanceData(), and eq::server::CompoundInitVisitor::visit().

| uint32_t eq::server::Config::getFinishedFrame | ( | ) | const [inline] |
| void eq::server::Config::setApplicationName | ( | const std::string & | name | ) | [inline] |
Set the name of the application.
| name | the name of the application. |
Definition at line 284 of file server/config.h.
| void eq::server::Config::addApplicationNode | ( | Node * | node | ) |
Add the config node running the application thread.
| node | the application node. |
Definition at line 523 of file server/config.cpp.
References addNode().

| Node* eq::server::Config::getApplicationNode | ( | ) | [inline] |
Definition at line 294 of file server/config.h.
| bool eq::server::Config::isApplicationNode | ( | const Node * | node | ) | const [inline] |
| void eq::server::Config::setApplicationNetNode | ( | net::NodePtr | node | ) |
Set the network node running the application thread.
| node | the application node. |
Definition at line 532 of file server/config.cpp.
| void eq::server::Config::setRenderClient | ( | const std::string & | rc | ) | [inline] |
Set the name of the render client executable.
| rc | the name of the render client executable. |
Definition at line 312 of file server/config.h.
| void eq::server::Config::setWorkDir | ( | const std::string & | workDir | ) | [inline] |
Set the working directory for render client.
| workDir | the working directory for the render client. |
Definition at line 319 of file server/config.h.
| void eq::server::Config::notifyNodeFrameFinished | ( | const uint32_t | frameNumber | ) |
Notify that a node of this config has finished a frame.
Definition at line 1162 of file server/config.cpp.
References EQLOG, eq::server::Node::getFinishedFrame(), eq::net::Session::getID(), eq::server::Node::isActive(), and eq::LOG_TASKS.

| const std::string& eq::server::Config::getErrorMessage | ( | ) | const [inline] |
| uint32_t eq::server::Config::getDistributorID | ( | ) |
Used by server during appNode initialization.
Definition at line 742 of file server/config.cpp.
References eq::net::Object::getID(), and eq::net::Session::registerObject().

| void eq::server::Config::notifyMapped | ( | net::NodePtr | node | ) | [protected, virtual] |
Reimplemented from eq::net::Session.
Definition at line 197 of file server/config.cpp.
References eq::net::Session::getCommandThreadQueue(), and eq::net::Dispatcher::registerCommand().

0.9 by
1.5.8