casacore
Loading...
Searching...
No Matches
casa
Json.h
Go to the documentation of this file.
1
//# Json.h: Classes to read or write a Json file
2
//# Copyright (C) 2016
3
//# Associated Universities, Inc. Washington DC, USA.
4
//#
5
//# This library is free software; you can redistribute it and/or modify it
6
//# under the terms of the GNU Library General Public License as published by
7
//# the Free Software Foundation; either version 2 of the License, or (at your
8
//# option) any later version.
9
//#
10
//# This library is distributed in the hope that it will be useful, but WITHOUT
11
//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13
//# License for more details.
14
//#
15
//# You should have received a copy of the GNU Library General Public License
16
//# along with this library; if not, write to the Free Software Foundation,
17
//# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18
//#
19
//# Correspondence concerning AIPS++ should be addressed as follows:
20
//# Internet email: casa-feedback@nrao.edu.
21
//# Postal address: AIPS++ Project Office
22
//# National Radio Astronomy Observatory
23
//# 520 Edgemont Road
24
//# Charlottesville, VA 22903-2475 USA
25
26
27
#ifndef CASA_JSON_H
28
#define CASA_JSON_H
29
30
#include <casacore/casa/aips.h>
31
32
#include <casacore/casa/Json/JsonOut.h>
33
#include <casacore/casa/Json/JsonValue.h>
34
#include <casacore/casa/Json/JsonParser.h>
35
36
namespace
casacore
{
//# NAMESPACE CASACORE - BEGIN
37
38
// <module>
39
//
40
// <summary> Classes to read or write a JSON file </summary>
41
42
// <reviewed reviewer="" date="" demos="">
43
// </reviewed>
44
45
// <synopsis>
46
// This module handles JSON input and output. It supports the full Json
47
// syntax (including null values) with the addition of complex numbers
48
// represented as a nested JSON struct with fields "r" and "i".
49
// <br>NaN and infinite floating point numbers are written as a null value.
50
// <br>It supports comments in the JSON file using C, C++ or Python style
51
// delimiters.
52
//
53
// It consists of the following classes:
54
// <ul>
55
// <li> <linkto class=JsonOut>JsonOut</linkto>
56
// to create and populate a JSON file. Besides support of scalar values
57
// and std::vector, it also supports Array, Record and ValueHolder objects.
58
// <li> <linkto class=JsonOut>JsonParser</linkto>
59
// to parse a JSON file and store the results in a JsonKVMap object.
60
// The parser only accepts the rather strict JSON number representation.
61
// <li> <linkto class=JsonOut>JsonKVMap</linkto>
62
// to obtain the results from a parsed JSON file. It is possible to
63
// obtain a (possible nested) sequence as an Array object.
64
// </ul>
65
// </synopsis>
66
67
//# <todo asof="1995/03/20">
68
//# <li>
69
//# </todo>
70
71
// </module>
72
73
74
}
//# NAMESPACE CASACORE - END
75
76
#endif
77
casacore
this file contains all the compiler specific defines
Definition
mainpage.dox:28
Generated by
1.9.8