49 #ifndef OPENMESH_SR_BINARY_HH
50 #define OPENMESH_SR_BINARY_HH
55 #include <OpenMesh/Core/System/config.h>
75 const static size_t UnknownSize(
size_t(-1));
82 std::ostringstream msg; \
83 msg << "Type not supported: " << typeid(value_type).name(); \
84 throw std::logic_error(msg.str())
98 template <
typename T >
struct binary
100 typedef T value_type;
102 static const bool is_streamable =
false;
104 static size_t size_of(
void) {
return UnknownSize; }
105 static size_t size_of(
const value_type&) {
return UnknownSize; }
108 size_t store( std::ostream& ,
114 size_t restore( std::istream& ,
127 #endif // OPENMESH_SR_RBO_HH defined
Project OpenMesh,
© Computer Graphics Group, RWTH Aachen.
Documentation generated using
doxygen
.