MRPT  2.0.1
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.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020