Hi C++ experts,
I am looking for a script which given a structure made of basic types
can generate a C++ class which encapsulate the structure and it also generates
the stream in and stream out method for the structure
e.g
input
int a ;
char b;
string c;
output a class C {
int a ;
char b;
string c;
// appropriates functions
// stream in and stream out methods to convert the structure into byte stream as well as
// construct the class back from a byte stream
}
I have used propertiary script like this before , just wondering whether any opensource script can do same or else do I need to write one again :-( ?