I strive for a more professional solution to the problem. I am working on a C ++ SOAP2 solution. I have a Strcut defintion of about 25 items
struct X { field 1; field 2; .. };
and I tring to fill it with some map values
Map<String,String> A
and it seems very disappointing to do such a thing n times
X->xx = A["aaa"]
every time I want to populate my SOAP message structure.
Question: Is it possible to call a struct element by name? * example: to handle abe as follows:
X->get_instance_of("xx").set(A["aaa"]);
and put it in a loop. *
Thanks,
source share