casacore
Loading...
Searching...
No Matches
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#ifndef CASA_JSON_H
27#define CASA_JSON_H
28
29#include <casacore/casa/aips.h>
30
31#include <casacore/casa/Json/JsonOut.h>
32#include <casacore/casa/Json/JsonValue.h>
33#include <casacore/casa/Json/JsonParser.h>
34
35namespace casacore { // # NAMESPACE CASACORE - BEGIN
36
37// <module>
38//
39// <summary> Classes to read or write a JSON file </summary>
40
41// <reviewed reviewer="" date="" demos="">
42// </reviewed>
43
44// <synopsis>
45// This module handles JSON input and output. It supports the full Json
46// syntax (including null values) with the addition of complex numbers
47// represented as a nested JSON struct with fields "r" and "i".
48// <br>NaN and infinite floating point numbers are written as a null value.
49// <br>It supports comments in the JSON file using C, C++ or Python style
50// delimiters.
51//
52// It consists of the following classes:
53// <ul>
54// <li> <linkto class=JsonOut>JsonOut</linkto>
55// to create and populate a JSON file. Besides support of scalar values
56// and std::vector, it also supports Array, Record and ValueHolder objects.
57// <li> <linkto class=JsonOut>JsonParser</linkto>
58// to parse a JSON file and store the results in a JsonKVMap object.
59// The parser only accepts the rather strict JSON number representation.
60// <li> <linkto class=JsonOut>JsonKVMap</linkto>
61// to obtain the results from a parsed JSON file. It is possible to
62// obtain a (possible nested) sequence as an Array object.
63// </ul>
64// </synopsis>
65
66// # <todo asof="1995/03/20">
67// # <li>
68// # </todo>
69
70// </module>
71
72} // namespace casacore
73
74#endif
For temporary backward namespace compatibility, use casa as alias for casacore.
Definition mainpage.dox:28