Sven Ludwig - 2004-02-25

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