Fluid Dynamics Library
Public Member Functions
fdl::XmlUtil< scalar_t > Struct Template Reference

Collection of functions for manipulating TinyXML structures. More...

#include <xmlutil.hpp>

List of all members.

Public Member Functions

bool getValue (const TiXmlNode *node, const char *tag, int &val)
 Extracts an integer from the XML tag in the node.
bool getValue (const TiXmlNode *node, const char *tag, scalar_t &val)
 Extracts a "scalar" from the XML tag in the node.
void getRGBVector (const TiXmlElement *elt, float *RGB)
 Extract an RGB-vector from attributes of an XML element.

Detailed Description

template<typename scalar_t>
struct fdl::XmlUtil< scalar_t >

Collection of functions for manipulating TinyXML structures.

Definition at line 33 of file xmlutil.hpp.


Member Function Documentation

template<typename scalar_t >
void fdl::XmlUtil< scalar_t >::getRGBVector ( const TiXmlElement *  elt,
float *  RGB 
)

Extract an RGB-vector from attributes of an XML element.

Expects an TiXmlElemet of the form

 <TagName r="0.3" g="0.1" b="0.4">
 

Definition at line 85 of file xmlutil.hpp.

template<typename scalar_t >
bool fdl::XmlUtil< scalar_t >::getValue ( const TiXmlNode *  node,
const char *  tag,
int &  val 
)

Extracts an integer from the XML tag in the node.

Returns:
true on success.

Definition at line 47 of file xmlutil.hpp.

template<typename scalar_t >
bool fdl::XmlUtil< scalar_t >::getValue ( const TiXmlNode *  node,
const char *  tag,
scalar_t &  val 
)

Extracts a "scalar" from the XML tag in the node.

Returns:
true on success.

Definition at line 65 of file xmlutil.hpp.


The documentation for this struct was generated from the following file: