Go to the documentation of this file.
7 #include <initializer_list>
14 #if _MSC_VER <= 1800 // VS 2013
16 #define noexcept throw()
20 #define snprintf _snprintf_s
56 typedef std::vector<MsgPack>
array;
57 typedef std::map<MsgPack, MsgPack>
object;
90 template <class T, class = decltype(&T::to_msgpack)>
94 template <
class M,
typename std::enable_if<
95 std::is_constructible<MsgPack, typename M::key_type>::value
96 && std::is_constructible<MsgPack, typename M::mapped_type>::value,
101 template <
class V,
typename std::enable_if<
102 std::is_constructible<MsgPack, typename V::value_type>::value &&
103 !std::is_same<typename binary::value_type, typename V::value_type>::value,
107 template <
class V,
typename std::enable_if<
108 std::is_constructible<MsgPack, typename V::value_type>::value &&
109 std::is_same<typename binary::value_type, typename V::value_type>::value,
175 void dump(std::string &out)
const {
176 std::stringstream ss;
182 std::stringstream ss;
194 static MsgPack parse(
const std::string & in, std::string & err);
197 static MsgPack parse(std::istream& is, std::string &err);
203 return parse(std::string(in,in+len), err);
211 const std::string & in,
212 std::string::size_type & parser_stop_pos,
216 const std::string & in,
218 std::string::size_type parser_stop_pos;
234 typedef std::initializer_list<std::pair<std::string, Type>>
shape;
238 std::shared_ptr<MsgPackValue>
m_ptr;
int64_t int64_value() const
std::initializer_list< std::pair< std::string, Type > > shape
const std::string & string_value() const
uint16_t uint16_value() const
int8_t int8_value() const
static std::vector< MsgPack > parse_multi(const std::string &in, std::string &err)
bool operator==(const MsgPack &rhs) const
std::tuple< int8_t, binary > extension
uint32_t uint32_value() const
float float32_value() const
bool operator>(const MsgPack &rhs) const
int16_t int16_value() const
double number_value() const
int32_t int_value() const
static MsgPack parse(const std::string &in, std::string &err)
double float64_value() const
bool operator<=(const MsgPack &rhs) const
void dump(std::string &out) const
std::vector< uint8_t > binary
uint8_t uint8_value() const
static MsgPack parse(const char *in, size_t len, std::string &err)
static std::vector< MsgPack > parse_multi(const std::string &in, std::string::size_type &parser_stop_pos, std::string &err)
const extension & extension_items() const
std::vector< MsgPack > array
int32_t int32_value() const
bool has_shape(const shape &types, std::string &err) const
const object & object_items() const
bool operator<(const MsgPack &rhs) const
bool operator!=(const MsgPack &rhs) const
std::shared_ptr< MsgPackValue > m_ptr
std::map< MsgPack, MsgPack > object
const binary & binary_items() const
bool is_extension() const
bool operator>=(const MsgPack &rhs) const
const MsgPack & operator[](size_t i) const
const array & array_items() const
friend std::istream & operator>>(std::istream &is, MsgPack &msgpack)
uint64_t uint64_value() const
friend std::ostream & operator<<(std::ostream &os, const MsgPack &msgpack)
sick_scan_xd
Author(s): Michael Lehning
, Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:09