20 #ifndef OST_IO_CONVERT_H
21 #define OST_IO_CONVERT_H
24 #include <boost/version.hpp>
25 #if BOOST_VERSION<106800
26 #include <boost/detail/endian.hpp>
28 #ifndef BOOST_ENDIAN_BIG_BYTE
29 #ifdef BOOST_BIG_ENDIAN
30 #define BOOST_ENDIAN_BIG_BYTE 1
32 #define BOOST_ENDIAN_BIG_BYTE 0
39 #include <boost/predef/other/endian.h>
42 namespace ost {
namespace io {
46 #if BOOST_ENDIAN_BIG_BYTE
55 template<
int CONVERSIONTYPE,
class VALUETYPE>
58 static VALUETYPE
From(
const VALUETYPE& value);
59 static VALUETYPE
To(
const VALUETYPE& value);
60 static void FromIP(VALUETYPE* value);
61 static void ToIP(VALUETYPE* value);
static void ToIP(VALUETYPE *value)
static void FromIP(VALUETYPE *value)
static VALUETYPE From(const VALUETYPE &value)
static VALUETYPE To(const VALUETYPE &value)