nidas v1.2.3
|
A catalog of DSM DOMElements, implemented with std::map, containing dsm DOMElements, keyed by the ID attributes. More...
#include <DSMCatalog.h>
Public Member Functions | |
DSMCatalog () | |
DSMCatalog (const DSMCatalog &) | |
~DSMCatalog () | |
DSMCatalog & | operator= (const DSMCatalog &) |
xercesc::DOMElement *& | operator[] (const std::string &id) |
Get or set a DOMElement in this catalog by the DSM name. | |
const xercesc::DOMElement * | find (const std::string &id) const |
void | fromDOMElement (const xercesc::DOMElement *) |
Build this DSMCatalog from a catalog element. | |
virtual xercesc::DOMElement * | toDOMParent (xercesc::DOMElement *parent, bool complete) const |
Create a DOMElement and append it to the parent. | |
virtual xercesc::DOMElement * | toDOMElement (xercesc::DOMElement *node, bool complete) const |
Add my content into a DOMElement. | |
Static Public Member Functions | |
static const XMLCh * | getNamespaceURI () |
Private Attributes | |
std::map< std::string, xercesc::DOMElement * > | _dsms |
Static Private Attributes | |
static XMLCh * | namespaceURI = 0 |
A catalog of DSM DOMElements, implemented with std::map, containing dsm DOMElements, keyed by the ID attributes.
DSMCatalog::DSMCatalog | ( | ) |
DSMCatalog::DSMCatalog | ( | const DSMCatalog & | x | ) |
DSMCatalog::~DSMCatalog | ( | ) |
Build this DSMCatalog from a catalog element.
The DSMCatalog does not own the DOM elements.
nidas::util::InvalidParameterException |
Implements nidas::core::DOMable.
References _dsms, and nidas::core::getSample().
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::Datasets::toDOMParent(), nidas::core::ProjectConfig::toDOMParent(), nidas::core::ProjectConfigs::toDOMParent(), nidas::core::DSMConfig::toDOMParent(), nidas::core::DSMSensor::toDOMParent(), nidas::core::Project::toDOMParent(), nidas::core::SampleTag::toDOMParent(), nidas::core::Site::toDOMParent(), nidas::core::ServerSocket::toDOMParent(), nidas::core::Variable::toDOMParent(), nidas::core::Datasets::writeXML(), and nidas::core::ProjectConfigs::writeXML().
DSMCatalog & DSMCatalog::operator= | ( | const DSMCatalog & | rhs | ) |
References _dsms.
|
inline |
Get or set a DOMElement in this catalog by the DSM name.
This catalog does not own the DOMElement.
References _dsms.
|
virtualinherited |
Add my content into a DOMElement.
xercesc::DOMException |
Reimplemented in nidas::core::DSMConfig, nidas::core::DSMSensor, nidas::core::Project, nidas::core::SampleTag, nidas::core::Site, nidas::core::ServerSocket, and nidas::core::Variable.
Referenced by nidas::core::ServerSocket::toDOMParent().
|
virtualinherited |
Create a DOMElement and append it to the parent.
xercesc::DOMException |
Reimplemented in nidas::core::DSMConfig, nidas::core::DSMSensor, nidas::core::Project, nidas::core::SampleTag, nidas::core::Site, nidas::core::ServerSocket, and nidas::core::Variable.
|
private |
Referenced by find(), fromDOMElement(), operator=(), and operator[]().
|
staticprivateinherited |
Referenced by nidas::core::DOMable::getNamespaceURI().