49 #ifndef OPENMESH_STORERESTORE_HH
50 #define OPENMESH_STORERESTORE_HH
56 #include <OpenMesh/Core/System/config.h>
57 #include <OpenMesh/Core/IO/SR_binary.hh>
58 #include <OpenMesh/Core/IO/SR_binary_spec.hh>
78 template <
typename T>
inline
82 template <
typename T>
inline
86 template <
typename T>
inline
90 template <
typename T>
inline
94 template <
typename T>
inline
95 size_t store( std::ostream& _os,
const T& _v,
bool _swap=
false)
98 template <
typename T>
inline
99 size_t restore( std::istream& _is, T& _v,
bool _swap=
false)
109 #endif // OPENMESH_MESHREADER_HH defined
bool is_streamable(void)
Binary read a short from _is and perform byte swapping if _swap is true.
Definition: StoreRestore.hh:79
size_t size_of(const T &_v)
Binary read a short from _is and perform byte swapping if _swap is true.
Definition: StoreRestore.hh:87
The struct defines how to store and restore the type T.
Definition: SR_binary.hh:98
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:56