Open Babel  3.0
json.h
Go to the documentation of this file.
1 /**********************************************************************
2 json.h -
3 
4 Copyright (C) 2018 by Matt Swain
5 
6 This file is part of the Open Babel project.
7 For more information, see <http://openbabel.org/>
8 
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation version 2 of the License.
12 
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17 ***********************************************************************/
18 
19 #ifndef OPENBABEL_JSON_H
20 #define OPENBABEL_JSON_H
21 
22 #include <rapidjson/document.h>
23 #include <rapidjson/error/en.h>
24 #include <rapidjson/istreamwrapper.h>
25 #include <rapidjson/ostreamwrapper.h>
26 #include <rapidjson/writer.h>
27 #include <rapidjson/prettywriter.h>
28 
29 
30 // These should already be defined by CMake
31 #if defined(OPTIMIZE_NATIVE)
32  #if !defined(RAPIDJSON_SSE42) && defined(__SSE4_2__)
33  #define RAPIDJSON_SSE42
34  #elif !defined(RAPIDJSON_SSE2) && defined(__SSE2__)
35  #define RAPIDJSON_SSE2
36  #elif!defined(RAPIDJSON_NEON) && defined(__ARM_NEON)
37  #define RAPIDJSON_NEON
38  #endif
39 #endif
40 
41 #endif //OPENBABEL_JSON_H