I have class with the below structure,
class Myclass {
int myInt;
char myChar;
UDFString str; //user-defined string class
string myString;
UDFObj obj; //this is user-defined class and It has char & byte pointers, also user-defined structs in it.
Mystruct srt; //this has enums, char pointers and user-defined structs
char *chrptr;
map<int,strt> mp; // here strt is user defined struct which has byte pointer and ints.
}
class encp {
protected:
stack<Myclass> *stk;
}
I want to perform serialization of encp, so in boost serialize() if I specify stk, will it take care of all internal data structures that we have in Myclass for serialization automatically, if not how could we approach serializing encp with a boost? or if any other better approach for serialization above class data to binary please let me know.