OK, I was thinking it was desired mainly for debugging purposes. The << operator dumps out XML, if you don't want XML output it would be pretty straightforward to add a different method (or maybe a format modifier for <<) to just dump the value itself and not the XML tags.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think a method to print the RPCValues to standard out, would be usefull.
Cheers.
You can write a value to standard out like this:
std::cout << val << std::endl;
You may also want to dump the type tag (although you may want to use the type to index into an array of type names instead of just writing the int):
std::cout << val.getType() << std::endl;
Do you need anything else?
OK, I was thinking it was desired mainly for debugging purposes. The << operator dumps out XML, if you don't want XML output it would be pretty straightforward to add a different method (or maybe a format modifier for <<) to just dump the value itself and not the XML tags.