Information System document container and processor. More...
#include <InformationInterface.h>
Public Member Functions | |
InformationContainer (XMLNode doc, bool copy=false) | |
XMLNode | Acquire (void) |
void | Assign (XMLNode doc, bool copy=false) |
Protected Member Functions | |
virtual void | Get (const std::list< std::string > &path, XMLNodeContainer &result) |
Protected Attributes | |
XMLNode | doc_ |
Information System document container and processor.
This class inherits form InformationInterface and offers container for storing informational XML document.
Arc::InformationContainer::InformationContainer | ( | XMLNode | doc, | |
bool | copy = false | |||
) |
Creates an instance with XML document . If is true this method makes a copy of for internal use.
XMLNode Arc::InformationContainer::Acquire | ( | void | ) |
Get a lock on contained XML document. To be used in multi-threaded environment. Do not forget to release it with Release()
void Arc::InformationContainer::Assign | ( | XMLNode | doc, | |
bool | copy = false | |||
) |
Replaces internal XML document with . If is true this method makes a copy of for internal use.
virtual void Arc::InformationContainer::Get | ( | const std::list< std::string > & | path, | |
XMLNodeContainer & | result | |||
) | [protected, virtual] |
This method is called by this object's Process method. Real implementation of this class should return (sub)tree of XML document. This method may be called multiple times per single Process call. Here is a set on XML element names specifying how to reach requested node(s).
Reimplemented from Arc::InformationInterface.
XMLNode Arc::InformationContainer::doc_ [protected] |
Either link or container of XML document