void ParameterGrp::insert(const char* FileName) { ParameterManager Mngr; if (Mngr.LoadDocument(FileName) != 1) throw FileException("ParameterGrp::import() cannot load document", FileName); Mngr.GetGroup("root")->insertTo(Base::Reference<ParameterGrp>(this)); }
void ParameterGrp::importFrom(const char* FileName) { ParameterManager Mngr; if (Mngr.LoadDocument(FileName) != 1) throw Exception("ParameterGrp::import() cannot load document"); Mngr.GetGroup("BaseApp")->copyTo(Base::Reference<ParameterGrp>(this)); }
int ParameterSerializer::LoadDocument(ParameterManager& mgr) { return mgr.LoadDocument(filename.c_str()); }