nidas  v1.2-1520
Public Member Functions | Static Public Member Functions | 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. More...
 
const xercesc::DOMElement * find (const std::string &id) const
 
void fromDOMElement (const xercesc::DOMElement *) throw (nidas::util::InvalidParameterException)
 Build this DSMCatalog from a catalog element. More...
 
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 * > 
_dsms
 

Detailed Description

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

Constructor & Destructor Documentation

DSMCatalog::DSMCatalog ( )
DSMCatalog::DSMCatalog ( const DSMCatalog x)
DSMCatalog::~DSMCatalog ( )

Member Function Documentation

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

References _dsms.

Referenced by nidas::core::DSMConfig::fromDOMElement().

void DSMCatalog::fromDOMElement ( const xercesc::DOMElement *  node)
throw (nidas::util::InvalidParameterException
)
virtual

Build this DSMCatalog from a catalog element.

The DSMCatalog 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().

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

References _dsms.

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.

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::DSMCatalog::_dsms
private

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


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