chrono::ChArchive Class Reference
Description
Base class for archives with pointers to shared objects.
#include <ChArchive.h>
Inheritance diagram for chrono::ChArchive:
Public Member Functions | |
void | SetUseVersions (bool muse) |
Turn off version info in archives. More... | |
void | SetClusterClassVersions (bool mcl) |
If true, the version number is not saved in each class. More... | |
Protected Attributes | |
bool | cluster_class_versions |
std::unordered_map< std::type_index, int > | class_versions |
bool | use_versions |
Member Function Documentation
◆ SetClusterClassVersions()
void chrono::ChArchive::SetClusterClassVersions | ( | bool | mcl | ) |
If true, the version number is not saved in each class.
Rather, it is saved only the first time that class is encountered. The same setting must be used for both serialization and deserialization.
◆ SetUseVersions()
void chrono::ChArchive::SetUseVersions | ( | bool | muse | ) |
Turn off version info in archives.
By default, version numbers are saved in archives Either save/load both with version info, or not, do not mix because it could give problems in binary archives.
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono/serialization/ChArchive.h
- /builds/uwsbel/chrono/src/chrono/serialization/ChArchive.cpp