Load an object from a string created by boost::archive::text_oarchive. More...
#include <SMESH_BoostTxtArchive.hxx>
Public Member Functions | |
| BoostTxtArchive (const std::string &s) | |
| BoostTxtArchive (std::istream &stream) | |
| ~BoostTxtArchive () | |
| template<class T > | |
| BoostTxtArchive & | operator>> (T &t) |
Private Member Functions | |
| void | makeReader () |
| bool | fixString () |
| Change boost::archive library version in myString to be equal to the current library version. More... | |
| template<class Archive > | |
| void | serialize (Archive &, const unsigned int) |
Private Attributes | |
| boost::archive::text_iarchive * | myArchiveReader |
| std::string | myString |
| bool | myStringFixed |
| std::istream * | myStream |
| bool | myOwnStream |
Friends | |
| class | boost::serialization::access |
Load an object from a string created by boost::archive::text_oarchive.
Try to workaround the issue that loading fails if the archive string is created by a newer version of boost::archive library.
Usage: ObjType obj; SMESHUtils::BoostTxtArchive( arcString ) >> obj;
| BoostTxtArchive::BoostTxtArchive | ( | const std::string & | s | ) |
References makeReader(), myStream, and myString.
| BoostTxtArchive::BoostTxtArchive | ( | std::istream & | stream | ) |
References makeReader(), and myString.
| BoostTxtArchive::~BoostTxtArchive | ( | ) |
References myArchiveReader, myOwnStream, and myStream.
|
private |
Change boost::archive library version in myString to be equal to the current library version.
References myOwnStream, myStream, myString, and myStringFixed.
Referenced by makeReader().
|
private |
References fixString(), myArchiveReader, and myStream.
Referenced by BoostTxtArchive().
| BoostTxtArchive & SMESHUtils::BoostTxtArchive::operator>> | ( | T & | t | ) |
|
private |
|
friend |
|
private |
Referenced by makeReader(), and ~BoostTxtArchive().
|
private |
Referenced by fixString(), and ~BoostTxtArchive().
|
private |
Referenced by BoostTxtArchive(), fixString(), makeReader(), and ~BoostTxtArchive().
|
private |
Referenced by BoostTxtArchive(), and fixString().
|
private |
Referenced by fixString().