Reflection in C++ – Load In Place
Sunday, December 6th, 2009I played a little bit with my Load-In-Place system. It used to only support vectors of PODs (stored by value). Now it handles also vectors of pointers & vectors of classes. Sample structure that'll be saved/loaded automatically: [code lang="C++"] struct IntContainer { int* pInt; }; struct SuperBar { unsigned long i; // [Hidden] float* p; bool b; signed char s; Color color; SuperBar* psb; typedef rde::vector tVec; tVec v; rde::vector someColors; rde::vector superBars; rde::vector containers; IntContainer ic; }; [...] // (fill ...




