Menu

Feature suggestion

Help
Anonymous
2003-02-01
2003-02-01
  • Anonymous

    Anonymous - 2003-02-01

    I think a method to print the RPCValues to standard out, would be usefull.
    Cheers.

     
    • Chris Morley

      Chris Morley - 2003-02-01

      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?

       
    • Chris Morley

      Chris Morley - 2003-02-01

      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.

       

Log in to post a comment.