For the moment you can retrieve values of attributes as
int, double, text.
It would be nice to have the same functionality for the
text part (often also representing values).
Now you can only get them as text, and then later on
one has to translate them to other typed variables.
Could something as below be implemented ?
int QueryIntText (const char *name, int *_value) const
int QueryDoubleText (const char *name, double *_value)
int QueryFloatText (const char *name, float *_value) const
An implementation can be as stupid/simple as :
TiXmlElement* pPerc = ....... anyway to get here ....;
int n = 0;
and so on for the other types.
Log in to post a comment.