nidas v1.2.3
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
nidas::core::DSMCatalog Class Reference

A catalog of DSM DOMElements, implemented with std::map, containing dsm DOMElements, keyed by the ID attributes. More...

#include <DSMCatalog.h>

Inheritance diagram for nidas::core::DSMCatalog:
Inheritance graph
[legend]

Public Member Functions

 DSMCatalog ()
 
 DSMCatalog (const DSMCatalog &)
 
 ~DSMCatalog ()
 
DSMCatalogoperator= (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 XMLChgetNamespaceURI ()
 

Private Attributes

std::map< std::string, xercesc::DOMElement * > _dsms
 

Static Private Attributes

static XMLChnamespaceURI = 0
 

Detailed Description

A catalog of DSM DOMElements, implemented with std::map, containing dsm DOMElements, keyed by the ID attributes.

Constructor & Destructor Documentation

◆ DSMCatalog() [1/2]

DSMCatalog::DSMCatalog ( )

◆ DSMCatalog() [2/2]

DSMCatalog::DSMCatalog ( const DSMCatalog & x)

◆ ~DSMCatalog()

DSMCatalog::~DSMCatalog ( )

Member Function Documentation

◆ find()

const xercesc::DOMElement * DSMCatalog::find ( const std::string & id) const

References _dsms.

◆ fromDOMElement()

void DSMCatalog::fromDOMElement ( const xercesc::DOMElement * node)
virtual

Build this DSMCatalog from a catalog element.

The DSMCatalog does not own the DOM elements.

Exceptions
nidas::util::InvalidParameterException

Implements nidas::core::DOMable.

References _dsms, and nidas::core::getSample().

◆ getNamespaceURI()

static const XMLCh * nidas::core::DOMable::getNamespaceURI ( )
inlinestaticinherited

◆ operator=()

DSMCatalog & DSMCatalog::operator= ( const DSMCatalog & rhs)

References _dsms.

◆ operator[]()

xercesc::DOMElement *& nidas::core::DSMCatalog::operator[] ( const std::string & id)
inline

Get or set a DOMElement in this catalog by the DSM name.

This catalog does not own the DOMElement.

References _dsms.

◆ toDOMElement()

xercesc::DOMElement * DOMable::toDOMElement ( xercesc::DOMElement * node,
bool complete ) const
virtualinherited

◆ toDOMParent()

xercesc::DOMElement * DOMable::toDOMParent ( xercesc::DOMElement * parent,
bool complete ) const
virtualinherited

Create a DOMElement and append it to the parent.

Exceptions
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.

Member Data Documentation

◆ _dsms

std::map<std::string,xercesc::DOMElement*> nidas::core::DSMCatalog::_dsms
private

◆ namespaceURI

XMLCh * DOMable::namespaceURI = 0
staticprivateinherited

The documentation for this class was generated from the following files: