I am looking for a way to fill an XmlRpcValue
from a struct without accessing each fields
via the . or the -> operator, and vice versa,
for a way to fill a struct from an XmlRpcValue.
As struct is a type and every field inside has
a name, this seems not so easy, some kind
of reflection is pobably needed.
The reason why I amlooking for that is I have
a large struct which is to be converted
into an XmlRpcValue, but depending on the
context only a subset of the fields in the
stuct is to be transmitted. At the moment I
am using a large switch statement.
I'd like to know if there is another way to do it.
I'd appreciate any hints and comments.
Best Regards,
Sven
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am looking for a way to fill an XmlRpcValue
from a struct without accessing each fields
via the . or the -> operator, and vice versa,
for a way to fill a struct from an XmlRpcValue.
As struct is a type and every field inside has
a name, this seems not so easy, some kind
of reflection is pobably needed.
The reason why I amlooking for that is I have
a large struct which is to be converted
into an XmlRpcValue, but depending on the
context only a subset of the fields in the
stuct is to be transmitted. At the moment I
am using a large switch statement.
I'd like to know if there is another way to do it.
I'd appreciate any hints and comments.
Best Regards,
Sven