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>
85template <
typename T>
inline
87{
return binary< T >::is_streamable; }
89template <
typename T>
inline
91{
return binary< T >::is_streamable; }
93template <
typename T>
inline
95{
return binary< T >::size_of(_v); }
97template <
typename T>
inline
99{
return binary< T >::size_of(); }
101template <
typename T>
inline
102size_t store( std::ostream& _os,
const T& _v,
bool _swap=
false)
103{
return binary< T >::store( _os, _v, _swap ); }
105template <
typename T>
inline
106size_t restore( std::istream& _is, T& _v,
bool _swap=
false)
107{
return binary< T >::restore( _is, _v, _swap ); }
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition MeshItems.hh:64
This namespace contains functions for reading and writing polygonal meshes and a list of supported fi...
size_t size_of(void)
Binary read a short from _is and perform byte swapping if _swap is true.
Definition StoreRestore.hh:98
bool is_streamable(void)
Binary read a short from _is and perform byte swapping if _swap is true.
Definition StoreRestore.hh:86