Ariles
extra_visitors
rapidjson
ariles2
visitors
rapidjson.h
Go to the documentation of this file.
1
/**
2
@file
3
@author Alexander Sherikov
4
5
@copyright 2017-2020 Alexander Sherikov, Licensed under the Apache License, Version 2.0.
6
(see @ref LICENSE or http://www.apache.org/licenses/LICENSE-2.0)
7
8
@brief
9
*/
10
11
/**
12
@defgroup rapidjson RapidJSON
13
@ingroup config
14
15
@brief JSON serialization via https://rapidjson.org/.
16
17
@note NaN's and infinities, which are not allowed by \c JSON specification, are
18
optionally parsed / emitted using \c boost::lexical_cast.
19
*/
20
21
22
#pragma once
23
24
#define ARILES2_VISITOR_INCLUDED_rapidjson
25
26
#include <
ariles2/internal/helpers.h
>
27
#include <
ariles2/visitors/config.h
>
28
29
30
#include "
./rapidjson/reader.h
"
31
#include "
./rapidjson/writer.h
"
32
33
34
namespace
ariles2
35
{
36
/**
37
* @brief JSON visitor.
38
* @ingroup rapidjson
39
*/
40
struct
rapidjson
41
{
42
using
ReaderBase
=
ns_rapidjson::Reader
;
43
using
WriterBase
=
ns_rapidjson::Writer
;
44
45
using
Reader
=
ariles2::cfgread::Visitor<ns_rapidjson::Reader>
;
46
using
Writer
=
ariles2::cfgwrite::Visitor<ns_rapidjson::Writer>
;
47
};
48
}
// namespace ariles2
ariles2::cfgread::Visitor
Definition:
config.h:34
ariles2::cfgwrite::Visitor
Definition:
config.h:61
ariles2::ns_rapidjson::Reader
Configuration reader class.
Definition:
reader.h:27
ariles2::ns_rapidjson::Writer
Configuration writer class.
Definition:
writer.h:27
config.h
helpers.h
ariles2::ns_namevalue::Writer
GenericWriter< NameValuePair > Writer
Definition:
writer.h:252
ariles2
Definition:
basic.h:17
reader.h
writer.h
ariles2::rapidjson
JSON visitor.
Definition:
rapidjson.h:41
Generated by
1.9.1