|
@@ -60,7 +60,7 @@ namespace fv_root_util {
|
|
* Saves an STL container into a ROOT file. ROOT knows how to serialize STL
|
|
* Saves an STL container into a ROOT file. ROOT knows how to serialize STL
|
|
* containers, but it needs the *name* of the type of the container, eg.
|
|
* containers, but it needs the *name* of the type of the container, eg.
|
|
* std::map<int,int> to be able to do this. In order to generate this name at
|
|
* std::map<int,int> to be able to do this. In order to generate this name at
|
|
- * run-time, the fv::util::get_type_name function uses RTTI to get type info
|
|
|
|
|
|
+ * run-time, the fv_util::get_type_name function uses RTTI to get type info
|
|
* and use it to look up the proper name.
|
|
* and use it to look up the proper name.
|
|
*
|
|
*
|
|
* For nexted containers, it is necessary to generate the CLING dictionaries
|
|
* For nexted containers, it is necessary to generate the CLING dictionaries
|
|
@@ -245,7 +245,7 @@ namespace fv_root {
|
|
}
|
|
}
|
|
|
|
|
|
void save_as(const std::string &fname, const SaveOption &option = SaveOption::PNG) {
|
|
void save_as(const std::string &fname, const SaveOption &option = SaveOption::PNG) {
|
|
- std::string type_name = "std::vector<" + fv::util::get_type_name(typeid(V)) + ">";
|
|
|
|
|
|
+ std::string type_name = "std::vector<" + fv_util::get_type_name(typeid(V)) + ">";
|
|
fv_root_util::save_as_stl(this->get_container(), type_name, this->get_name(), option);
|
|
fv_root_util::save_as_stl(this->get_container(), type_name, this->get_name(), option);
|
|
}
|
|
}
|
|
};
|
|
};
|
|
@@ -263,7 +263,7 @@ namespace fv_root {
|
|
}
|
|
}
|
|
|
|
|
|
void save_as(const std::string &fname, const SaveOption &option = SaveOption::PNG) {
|
|
void save_as(const std::string &fname, const SaveOption &option = SaveOption::PNG) {
|
|
- std::string type_name = "std::map<" + fv::util::get_type_name(typeid(V)) + ",int>";
|
|
|
|
|
|
+ std::string type_name = "std::map<" + fv_util::get_type_name(typeid(V)) + ",int>";
|
|
fv_root_util::save_as_stl(this->get_container(), type_name, this->get_name(), option);
|
|
fv_root_util::save_as_stl(this->get_container(), type_name, this->get_name(), option);
|
|
}
|
|
}
|
|
|
|
|