nidas
v1.2-1520
|
A catalog of sensor DOMElements, implemented with std::map, containing sensor DOMElements, keyed by the ID attributes. More...
#include <SensorCatalog.h>
Public Member Functions | |
SensorCatalog () | |
SensorCatalog (const SensorCatalog &) | |
~SensorCatalog () | |
SensorCatalog & | operator= (const SensorCatalog &) |
xercesc::DOMElement *& | operator[] (const std::string &id) |
const xercesc::DOMElement * | find (const std::string &id) const |
void | fromDOMElement (const xercesc::DOMElement *) throw (nidas::util::InvalidParameterException) |
Build this SensorCatalog from a catalog element. More... | |
const std::map< std::string, xercesc::DOMElement * > & | getMap () const |
virtual xercesc::DOMElement * | toDOMParent (xercesc::DOMElement *parent, bool complete) const throw (xercesc::DOMException) |
Create a DOMElement and append it to the parent. More... | |
virtual xercesc::DOMElement * | toDOMElement (xercesc::DOMElement *node, bool complete) const throw (xercesc::DOMException) |
Add my content into a DOMElement. More... | |
Static Public Member Functions | |
static const XMLCh * | getNamespaceURI () |
Private Attributes | |
std::map< std::string, xercesc::DOMElement * > | _sensors |
A catalog of sensor DOMElements, implemented with std::map, containing sensor DOMElements, keyed by the ID attributes.
SensorCatalog::SensorCatalog | ( | ) |
SensorCatalog::SensorCatalog | ( | const SensorCatalog & | x | ) |
SensorCatalog::~SensorCatalog | ( | ) |
const xercesc::DOMElement * SensorCatalog::find | ( | const std::string & | id | ) | const |
References _sensors.
Referenced by nidas::core::DSMSensor::fromDOMElement().
|
virtual |
Build this SensorCatalog from a catalog element.
The SensorCatalog does not own the DOM elements.
Implements nidas::core::DOMable.
References nidas::core::XDOMElement::getAttributeValue(), and nidas::core::XDOMElement::getNodeName().
Referenced by nidas::core::Project::fromDOMElement().
|
inline |
References _sensors.
|
inlinestaticinherited |
References nidas::core::DOMable::namespaceURI.
Referenced by nidas::dynld::UDPSampleOutput::getProjectDOM(), nidas::core::Dataset::toDOMElement(), nidas::core::ProjectConfig::toDOMElement(), nidas::core::Dataset::toDOMParent(), nidas::core::ProjectConfig::toDOMParent(), nidas::core::Datasets::toDOMParent(), nidas::core::ProjectConfigs::toDOMParent(), nidas::core::DSMConfig::toDOMParent(), nidas::core::Project::toDOMParent(), nidas::core::Site::toDOMParent(), nidas::core::SampleTag::toDOMParent(), nidas::core::ServerSocket::toDOMParent(), nidas::core::Variable::toDOMParent(), nidas::core::DSMSensor::toDOMParent(), nidas::core::Datasets::writeXML(), and nidas::core::ProjectConfigs::writeXML().
SensorCatalog & SensorCatalog::operator= | ( | const SensorCatalog & | rhs | ) |
References _sensors.
|
inline |
References _sensors.
|
virtualinherited |
Add my content into a DOMElement.
Reimplemented in nidas::core::DSMSensor, nidas::core::Variable, nidas::core::ServerSocket, nidas::core::SampleTag, nidas::core::Site, nidas::core::Project, and nidas::core::DSMConfig.
Referenced by nidas::core::ServerSocket::toDOMParent().
|
virtualinherited |
Create a DOMElement and append it to the parent.
Reimplemented in nidas::core::DSMSensor, nidas::core::Variable, nidas::core::ServerSocket, nidas::core::SampleTag, nidas::core::Site, nidas::core::Project, and nidas::core::DSMConfig.
|
private |
Referenced by find(), getMap(), operator=(), and operator[]().