30 #include <boost/lexical_cast.hpp>
39 return boost::lexical_cast<
double>(getElementValue());
44 std::string value = getElementValue();
46 return (value ==
"true") || (value ==
"TRUE");
51 return boost::lexical_cast<boost::int32_t>(getAttr(name));
56 return boost::lexical_cast<boost::int32_t>(getAttr(i));
61 return boost::lexical_cast<boost::uint32_t>(getAttr(i));
66 return boost::lexical_cast<boost::uint32_t>(getAttr(name));
71 return boost::lexical_cast<
double>(getAttr(name));
76 return boost::lexical_cast<
double>(getAttr(i));
virtual boost::int32_t getElementValueAsInt32() const
It returns the element data value in the case of VALUE node.
This class models a XML reader object.
virtual boost::uint32_t getAttrAsUInt32(std::size_t i) const
It returns the attribute value in the case of an element node with valid attributes.
virtual boost::int32_t getAttrAsInt32(const std::string &name) const
It returns the attribute value in the case of an element node with valid attributes.
virtual double getElementValueAsDouble() const
It returns the element data value in the case of VALUE node.
virtual bool getElementValueAsBoolean() const
It returns the element data value in the case of VALUE node.
virtual std::string getElementValue() const =0
It returns the element data value in the case of VALUE node.
virtual double getAttrAsDouble(const std::string &name) const
It returns the attribute value in the case of an element node with valid attributes.