56#ifndef OPENMESH_SR_BINARY_HH
57#define OPENMESH_SR_BINARY_HH
62#include <OpenMesh/Core/System/config.h>
82 const static size_t UnknownSize(
size_t(-1));
89 std::ostringstream msg; \
90 msg << "Type not supported: " << typeid(value_type).name(); \
91 throw std::logic_error(msg.str())
107 typedef T value_type;
109 static const bool is_streamable =
false;
111 static size_t size_of(
void) {
return UnknownSize; }
112 static size_t size_of(
const value_type&) {
return UnknownSize; }
115 size_t store( std::ostream& ,
121 size_t restore( std::istream& ,
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:64
The struct defines how to store and restore the type T.
Definition: SR_binary.hh:106