nidas  v1.2-1520
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
nidas::core::SensorCatalog Class Reference

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

#include <SensorCatalog.h>

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

Public Member Functions

 SensorCatalog ()
 
 SensorCatalog (const SensorCatalog &)
 
 ~SensorCatalog ()
 
SensorCatalogoperator= (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
 

Detailed Description

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

Constructor & Destructor Documentation

SensorCatalog::SensorCatalog ( )
SensorCatalog::SensorCatalog ( const SensorCatalog x)
SensorCatalog::~SensorCatalog ( )

Member Function Documentation

const xercesc::DOMElement * SensorCatalog::find ( const std::string &  id) const
void SensorCatalog::fromDOMElement ( const xercesc::DOMElement *  node)
throw (nidas::util::InvalidParameterException
)
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().

const std::map<std::string,xercesc::DOMElement*>& nidas::core::SensorCatalog::getMap ( ) const
inline

References _sensors.

static const XMLCh* nidas::core::DOMable::getNamespaceURI ( )
inlinestaticinherited
SensorCatalog & SensorCatalog::operator= ( const SensorCatalog rhs)

References _sensors.

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

References _sensors.

xercesc::DOMElement * DOMable::toDOMElement ( xercesc::DOMElement *  node,
bool  complete 
) const
throw (xercesc::DOMException
)
virtualinherited
xercesc::DOMElement * DOMable::toDOMParent ( xercesc::DOMElement *  parent,
bool  complete 
) const
throw (xercesc::DOMException
)
virtualinherited

Member Data Documentation

std::map<std::string,xercesc::DOMElement*> nidas::core::SensorCatalog::_sensors
private

Referenced by find(), getMap(), operator=(), and operator[]().


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