OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
ncml_module::NCMLElement::Factory Class Reference

Factory class for the NcML elements. More...

#include <NCMLElement.h>

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

Public Member Functions

 Factory ()
 
RCPtr< NCMLElementmakeElement (const std::string &eltTypeName, const XMLAttributeMap &attrs, NCMLParser &parser)
 Create an element of the proper type with the given AttrMap for its defined attributes. More...
 
 ~Factory ()
 

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 75 of file NCMLElement.h.

Constructor & Destructor Documentation

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

Definition at line 55 of file NCMLElement.cc.

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

Definition at line 61 of file NCMLElement.cc.

Member Function Documentation

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 126 of file NCMLElement.cc.

References BESDEBUG, agg_util::RCPtr< T >::get(), and VALID_PTR.

Referenced by ncml_module::ScanElement::getDatasetList().

Here is the call graph for this function:


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