bes Updated for version 3.20.13
ncml_module::NCMLElement::Factory Class Reference

#include <NCMLElement.h>

Collaboration diagram for ncml_module::NCMLElement::Factory:
Collaboration graph

Public Member Functions

RCPtr< NCMLElementmakeElement (const std::string &eltTypeName, const XMLAttributeMap &attrs, NCMLParser &parser)
 

Detailed Description

Factory class for the NcML elements. Assumption: Concrete subclasses MUST define the following static methods: static const string& ConcreteClassName::getTypeName(); static ConcreteClassName* ConcreteClassName::makeInstance(const AttrMap& attrs);

Definition at line 71 of file NCMLElement.h.

Constructor & Destructor Documentation

◆ Factory()

ncml_module::NCMLElement::Factory::Factory ( )

Definition at line 54 of file NCMLElement.cc.

◆ ~Factory()

ncml_module::NCMLElement::Factory::~Factory ( )

Definition at line 60 of file NCMLElement.cc.

Member Function Documentation

◆ makeElement()

RCPtr< NCMLElement > ncml_module::NCMLElement::Factory::makeElement ( const std::string &  eltTypeName,
const XMLAttributeMap attrs,
NCMLParser parser 
)

Create an element of the proper type with the given AttrMap for its defined attributes.

Returns
the new element or NULL if eltTypeName had to prototype.
Parameters
eltTypeNameelement type name
attrsthe map of the attributes defined for the element
parserthe parser which is creating the element.

Definition at line 117 of file NCMLElement.cc.


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