Thread: C++ Serialization
is there tutorial covers c++ serialization using human-readable code?
or maybe tutorial how write text file, , read text file load data...such load/save game routine.
code:public interface itransformation { void init(configuration.transformationserviceelement section); void requestwriter(object serialize, stream stream); t responsereader<t>(system.io.stream stream) t : class; }
implementing contract
can swap serialization process...
json format, xml format, binary format
in c++ though since don't have access rich reflection capabilities found in java/c# don't think can send generic object serialize , query /public/private properties values save.
instead think must typed object object should contain onserialize returns byte[] , ondeserialize returns new instance of object.
simplest way go.
think needed memcpy dump it's local memory space file , read in
also
http://stackoverflow.com/questions/3...on-performance
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk C++ Serialization
Ubuntu
Comments
Post a Comment