libqi-api  2.4.3.28
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
jsoncodec.hpp
Go to the documentation of this file.
1 #pragma once
2 /*
3 ** Copyright (C) 2013 Aldebaran Robotics
4 ** See COPYING for the license
5 */
6 
7 #ifndef _QI_TYPE_JSONCODEC_HPP_
8 #define _QI_TYPE_JSONCODEC_HPP_
9 
10 #include <qi/api.hpp>
11 #include <qi/anyvalue.hpp>
12 
13 namespace qi {
14 
17  QI_API std::string encodeJSON(const qi::AutoAnyReference &val);
18 
24  QI_API qi::AnyValue decodeJSON(const std::string &in);
25 
33  QI_API std::string::const_iterator decodeJSON(const std::string::const_iterator &begin,
34  const std::string::const_iterator &end,
35  AnyValue &target);
36 
37 
38 
39 }
40 
41 #endif // _QITYPE_JSONCODEC_HPP_
#define QI_API
Definition: api.hpp:34
dll import/export and compiler message
qi::AnyValue decodeJSON(const std::string &in)
std::string encodeJSON(const qi::AutoAnyReference &val)