void store(const char* filename){ std::ofstream ofs(filename); boost::archive::text_oarchive oa(ofs); oa << this; } void load(const char* filename){ std::ifstream ifs(filename); boost::archive::text_iarchive ia(ifs); ia >> this; }
std::ofstream ofs(filename); boost::archive::text_oarchive oa(ofs); oa << this; } void load(const char* filename){ std::ifstream ifs(filename); boost::archive::text_iarchive ia(ifs); ia >> this; }