Hello. I'm trying to implement a persistent storage in a relation database for XmlRpcValues. If value is a structure I need to find out which members does it have. How it could be possible? Or I need to hack XmlRpcValue and add a member function which returns a list of member names?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There is no method at this point to get that info. I think the most straight forward approach would be to provide direct access to the ValueStruct along the lines of the operator BinaryData&() accessor:
Then you could use a const_iterator over the map to access the keys and values. This is a more general solution than returning a list of names I think. If that works out for you it can go into the next release.
Chris
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello. I'm trying to implement a persistent storage in a relation database for XmlRpcValues. If value is a structure I need to find out which members does it have. How it could be possible? Or I need to hack XmlRpcValue and add a member function which returns a list of member names?
There is no method at this point to get that info. I think the most straight forward approach would be to provide direct access to the ValueStruct along the lines of the operator BinaryData&() accessor:
operator ValueStruct const&() { assertStruct(); return *_value.asStruct; }
Then you could use a const_iterator over the map to access the keys and values. This is a more general solution than returning a list of names I think. If that works out for you it can go into the next release.
Chris
Yes! It works for me. Thank you.