MRPT  1.9.9
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-2019, 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 1.9.9 Git: 479715d5b Tue Nov 12 07:26:21 2019 +0100 at mar nov 12 07:30:12 CET 2019