Description

This is a base class for archives with pointers to shared objects.

#include <ChArchive.h>

Inheritance diagram for chrono::ChArchive:

Public Member Functions

void SetUseVersions (bool muse)
 By default, version numbers are saved in archives Use this to turn off version info in archives (either save/load both with version info, or not, do not mix because it could give problems in binary archives.).
 
void 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. 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)
inline

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.


The documentation for this class was generated from the following file:
  • /builds/uwsbel/chrono/src/chrono/serialization/ChArchive.h