MRPT  2.0.4
CSchemeArchive.cpp
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | https://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2020, Individual contributors, see AUTHORS file |
6  | See: https://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See: https://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 
10 #include "serialization-precomp.h" // Precompiled headers
11 
12 #include <mrpt/core/exceptions.h>
14 
15 // Check if we have jsoncpp to enable those tests:
16 #include <mrpt/config.h>
17 #if MRPT_HAS_JSONCPP
18 #include <json/json.h>
19 #endif
20 
21 using namespace mrpt::serialization;
22 
24 {
25 #if MRPT_HAS_JSONCPP
27  std::make_unique<CSchemeArchive<Json::Value>>());
28 #else
29  THROW_EXCEPTION("archiveJSON() requires building MRPT against jsoncpp");
30 #endif
31 }
#define THROW_EXCEPTION(msg)
Definition: exceptions.h:67
Virtual base class for "schematic archives" (JSON, XML,...)
Base template class for schema-capable "archives", e.g.
CSchemeArchiveBase archiveJSON()
Returns an archive for reading/writing in JSON format.



Page generated by Doxygen 1.8.14 for MRPT 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020