TinyXML Get Int Value
Hey, I'm pretty new to C++, and I've ran into a bit of a problem.
I've got my program set up, the basic loading of config options done using TinyXML ( Meaning, loading them from a XML file :P ).
However, I can't figure out how to get an int value. It always returns them as const char. Is there a way to get an int value from TinyXML, and if not, is there a way to convert the content of the char to a int?
Thanks. :)
I use a modified TinyXml but there is a function for this.
Edit:
here is the online docs for the API which you may find handy
TinyXml
Quote:
int TiXmlElement::QueryIntAttribute( const char* name, int* ival ) const
Edit:
here is the online docs for the API which you may find handy
TinyXml
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement