20 #ifndef OST_IO_CONVERT_H
21 #define OST_IO_CONVERT_H
24 #include <boost/detail/endian.hpp>
26 namespace ost {
namespace io {
30 #ifdef BOOST_BIG_ENDIAN
33 OST_LOCAL_ENDIAN = OST_LITTLE_ENDIAN
39 template<
int CONVERSIONTYPE,
class VALUETYPE>
42 static VALUETYPE
From(
const VALUETYPE& value);
43 static VALUETYPE
To(
const VALUETYPE& value);
44 static void FromIP(VALUETYPE* value);
45 static void ToIP(VALUETYPE* value);
static VALUETYPE To(const VALUETYPE &value)
static void ToIP(VALUETYPE *value)
static VALUETYPE From(const VALUETYPE &value)
static void FromIP(VALUETYPE *value)