24 #ifndef _BINARYDATAENCODER_HPP_
25 #define _BINARYDATAENCODER_HPP_
29 #include "boost/shared_ptr.hpp"
59 : precision(Precision_64),
60 byteOrder(ByteOrder_LittleEndian),
61 compression(Compression_None)
68 void encode(
const std::vector<double>& data, std::string& result,
size_t* binaryByteCount = NULL)
const;
71 void encode(
const double* data,
size_t dataSize, std::string& result,
size_t* binaryByteCount = NULL)
const;
74 void decode(
const char *encodedData,
size_t len, std::vector<double>& result)
const;
75 void decode(
const std::string& encodedData, std::vector<double>& result)
const
77 decode(encodedData.c_str(),encodedData.length(),result);
82 boost::shared_ptr<Impl>
impl_;
95 #endif // _BINARYDATAENCODER_HPP_