#include <SMESHDS_Group.hxx>
#include <SMESHDS_Mesh.hxx>
+#include <SMESH_BoostTxtArchive.hxx>
#include <SMESH_Gen_i.hxx>
#include <SMESH_Group.hxx>
#include <SMESH_TryCatch.hxx>
#define MESHGEMS_VERSION_HEX (MESHGEMS_VERSION_MAJOR << 16 | MESHGEMS_VERSION_MINOR << 8 | MESHGEMS_VERSION_PATCH)
#include <boost/archive/text_oarchive.hpp>
-#include <boost/archive/text_iarchive.hpp>
#include <boost/serialization/set.hpp>
#include <boost/serialization/vector.hpp>
#include <boost/serialization/string.hpp>
std::string buffer;
if ( SMESHDS_Hypothesis::LoadStringFromStream( load, buffer ))
{
- std::istringstream istream( buffer.data() );
- boost::archive::text_iarchive archive( istream );
SMESH_TRY;
- archive >> _hyperPatchEntriesList;
+ SMESHUtils::BoostTxtArchive( buffer ) >> _hyperPatchEntriesList;
SMESH_CATCH( SMESH::printErrorInDebugMode );
}
buffer.clear();
if ( SMESHDS_Hypothesis::LoadStringFromStream( load, buffer ))
{
- std::istringstream istream( buffer.data() );
- boost::archive::text_iarchive archive( istream );
SMESH_TRY;
- archive >> _enforcedMeshes;
+ SMESHUtils::BoostTxtArchive( buffer ) >> _enforcedMeshes;
SMESH_CATCH( SMESH::printErrorInDebugMode );
}