Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

XMLValuable Class Reference

#include <xmlvaluable.hpp>

Inheritance diagram for XMLValuable:

Inheritance graph
[legend]
Collaboration diagram for XMLValuable:

Collaboration graph
[legend]
List of all members.

Detailed Description

Named parameters valuer class.

Definition at line 53 of file xmlvaluable.hpp.

Public Methods

 XMLValuable ()
 Destructor.

virtual ~XMLValuable ()
 Destructor.

XMLValuergetValuer (const char *p_pszName) const
 Returns a XMLValuer value, given its tag.

void addValuer (XMLValuer *p_pValuer, const char *p_pszName)
 Adds a valuer.

char * calculateValue (const char *p_pszValue)
 Parses and resolves a calculated value.


Constructor & Destructor Documentation

BEGIN_XDFLENGINE_NS XMLValuable::XMLValuable  
 

Destructor.

Definition at line 52 of file xmlvaluable.cpp.

References DEBUG_CREATE.

XMLValuable::~XMLValuable   [virtual]
 

Destructor.

Definition at line 60 of file xmlvaluable.cpp.

References DEBUG_DEL, VAarray< XMLValuer * >::empty(), and VAarray< XMLValuer * >::pop().


Member Function Documentation

void XMLValuable::addValuer XMLValuer   p_pValuer,
const char *    p_pszName
 

Adds a valuer.

Remarks:
The parameters added at request level are dynamics (ie request-specific).

Setting a valuer overwrites an existing one with the same name.

Parameters:
p_pValuer (XMLValuer*) A pointer to the valuer to set

Definition at line 150 of file xmlvaluable.cpp.

References VAarray< XMLValuer * >::add(), and DEBUG_FUNC.

Referenced by XMLProcessor::loadValuers().

char * XMLValuable::calculateValue const char *    p_pszValue
 

Parses and resolves a calculated value.

Parameters:
p_strValue (string) the value to calculate.
Returns:
(string) expression result.

Definition at line 72 of file xmlvaluable.cpp.

References XMLValuer::calculateExpression(), concatCharBuffer(), copyCharBuffer(), DEBUG_FUNC, getValuer(), and releaseCharBuffer().

Referenced by DBObjectNode::calculateRelValue(), PassiveStreamNode::streamXML(), and ActiveStreamNode::valuateParameters().

XMLValuer * XMLValuable::getValuer const char *    p_pszName const
 

Returns a XMLValuer value, given its tag.

Parameters:
p_strName (string) The tag of the XMLValuer.
Returns:
(XMLValuer*) A pointer to the requested XMLValuer object, or NULL if there's no XMLValuer with that name

Definition at line 159 of file xmlvaluable.cpp.

References DEBUG_FUNC, and VAarray< XMLValuer * >::get().

Referenced by DBObjectNode::calculateRelValue(), calculateValue(), LangSetStreamer::initStream(), and DBOBJSetStreamer::processObject().


The documentation for this class was generated from the following files:
Generated on Sat Oct 4 13:25:07 2003 for XDFLengine by doxygen1.3-rc2