48 #ifndef NEKTAR_VERSION
49 #define NEKTAR_VERSION "Unknown"
54 namespace LibUtilities
64 boost::uint32_t value;
65 boost::uint8_t data[
sizeof(boost::uint32_t)];
68 number.data[0] = 0x00;
69 number.data[1] = 0x01;
70 number.data[2] = 0x02;
71 number.data[3] = 0x03;
83 namespace CompressData
96 return boost::lexical_cast<std::string>(
sizeof(
void*)*8);
103 std::string &base64string)
109 switch (compressedDataString.length() % 3)
112 compressedDataString +=
'\0';
114 compressedDataString +=
'\0';
119 typedef boost::archive::iterators::base64_from_binary<
120 boost::archive::iterators::transform_width<
121 std::string::const_iterator, 6, 8> > base64_t;
122 base64string = std::string(base64_t(compressedDataString.begin()),
123 base64_t(compressedDataString.end()));
130 std::string &compressedDataString)
133 typedef boost::archive::iterators::transform_width<
134 boost::archive::iterators::binary_from_base64<
135 std::string::const_iterator>, 8, 6 > binary_t;
136 compressedDataString = std::string(binary_t(base64string.begin()),
137 binary_t(base64string.end()));
void BinaryStrToBase64Str(std::string &compressedDataString, std::string &base64string)
std::string GetCompressString(void)
EndianType Endianness(void)
std::string GetBitSizeStr(void)
const std::string EndianTypeMap[]
void Base64StrToBinaryStr(std::string &base64string, std::string &compressedDataString)