OMToolkit  1.0
The polygonal mesh processing tool.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
OpenMesh::IO::binaryExt< std::string > Struct Template Reference

#include <OMStoreRestore.h>

Public Types

typedef std::string value_type
 
typedef uint16_t length_t
 

Static Public Member Functions

static size_t size_of ()
 
static size_t size_of (const value_type &_v)
 
static size_t store (mds::mod::CChannel &_os, const value_type &_v, bool _swap=false)
 
static size_t restore (mds::mod::CChannel &_is, value_type &_val, bool _swap=false)
 

Static Public Attributes

static const bool is_streamable = true
 

Detailed Description

template<>
struct OpenMesh::IO::binaryExt< std::string >

binaryExt specialization for std::string

Member Typedef Documentation

typedef uint16_t OpenMesh::IO::binaryExt< std::string >::length_t
typedef std::string OpenMesh::IO::binaryExt< std::string >::value_type

Member Function Documentation

static size_t OpenMesh::IO::binaryExt< std::string >::restore ( mds::mod::CChannel &  _is,
value_type _val,
bool  _swap = false 
)
inlinestatic

Method for restoring a string from stream

Parameters
_isMDSTk intput channel
_vValue to restore
_swapSwap bytes flag
Returns
Number of restored bytes
static size_t OpenMesh::IO::binaryExt< std::string >::size_of ( )
inlinestatic
Returns
size of this entity
static size_t OpenMesh::IO::binaryExt< std::string >::size_of ( const value_type _v)
inlinestatic
Returns
size of this entity
static size_t OpenMesh::IO::binaryExt< std::string >::store ( mds::mod::CChannel &  _os,
const value_type _v,
bool  _swap = false 
)
inlinestatic

Method for storing a string into stream

Parameters
_osMDSTk output channel
_vValue to store
_swapSwap bytes flag
Returns
Number of saved bytes

Member Data Documentation

const bool OpenMesh::IO::binaryExt< std::string >::is_streamable = true
static

The documentation for this struct was generated from the following file: