51 #ifndef OPENMESH_SR_BINARY_HH
52 #define OPENMESH_SR_BINARY_HH
57 #include <OpenMesh/Core/System/config.h>
77 const static size_t UnknownSize(
size_t(-1));
84 std::ostringstream msg; \
85 msg << "Type not supported: " << typeid(value_type).name(); \
86 throw std::logic_error(msg.str())
102 typedef T value_type;
104 static const bool is_streamable =
false;
106 static size_t size_of(
void) {
return UnknownSize; }
107 static size_t size_of(
const value_type&) {
return UnknownSize; }
110 size_t store( std::ostream& ,
116 size_t restore( std::istream& ,
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:59
The struct defines how to store and restore the type T.
Definition: SR_binary.hh:101