56 #ifndef OPENMESH_STORERESTORE_HH
57 #define OPENMESH_STORERESTORE_HH
63 #include <OpenMesh/Core/System/config.h>
64 #include <OpenMesh/Core/IO/SR_binary.hh>
65 #include <OpenMesh/Core/IO/SR_binary_spec.hh>
85 template <
typename T>
inline
89 template <
typename T>
inline
93 template <
typename T>
inline
97 template <
typename T>
inline
101 template <
typename T>
inline
102 size_t store( std::ostream& _os,
const T& _v,
bool _swap=
false)
105 template <
typename T>
inline
106 size_t restore( std::istream& _is, T& _v,
bool _swap=
false)
116 #endif // OPENMESH_MESHREADER_HH defined
The struct defines how to store and restore the type T.
Definition: SR_binary.hh:105
bool is_streamable(void)
Binary read a short from _is and perform byte swapping if _swap is true.
Definition: StoreRestore.hh:86
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:64
size_t size_of(const T &_v)
Binary read a short from _is and perform byte swapping if _swap is true.
Definition: StoreRestore.hh:94