JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
RJFwd.h
Go to the documentation of this file.
1 //
2 // Created by Nico Schäfer on 10/08/18.
3 //
4 
5 #ifndef JODA_ALLOCATOR_H
6 #define JODA_ALLOCATOR_H
7 
8 #ifndef RAPIDJSON_ASSERT
9 #include <glog/logging.h>
10 #define RAPIDJSON_ASSERT(x) DCHECK(x)
11 #endif // RAPIDJSON_ASSERT
12 
13 #include <rapidjson/allocators.h>
14 #include <rapidjson/document.h>
15 #include <rapidjson/fwd.h>
16 #include <rapidjson/istreamwrapper.h>
17 #include <rapidjson/pointer.h>
18 
19 /*
20  * Here the rapidjson types used by the project are defined.
21  * This enables rapid change of allocator or character types
22  */
23 
24 typedef rapidjson::UTF8<char> RJChar;
25 typedef rapidjson::CrtAllocator RJBaseAlloc;
26 typedef rapidjson::MemoryPoolAllocator<RJBaseAlloc> RJMemoryPoolAlloc;
27 typedef rapidjson::GenericDocument<RJChar, RJMemoryPoolAlloc, RJBaseAlloc>
29 typedef rapidjson::GenericValue<RJChar, RJMemoryPoolAlloc> RJValue;
30 typedef rapidjson::GenericPointer<RJValue, RJBaseAlloc> RJPointer;
31 
32 #endif // JODA_RJFwd_H
rapidjson::GenericDocument< RJChar, RJMemoryPoolAlloc, RJBaseAlloc > RJDocument
Definition: RJFwd.h:28
rapidjson::CrtAllocator RJBaseAlloc
Definition: RJFwd.h:25
rapidjson::UTF8< char > RJChar
Definition: RJFwd.h:24
rapidjson::MemoryPoolAllocator< RJBaseAlloc > RJMemoryPoolAlloc
Definition: RJFwd.h:26
rapidjson::GenericPointer< RJValue, RJBaseAlloc > RJPointer
Definition: RJFwd.h:30
rapidjson::GenericValue< RJChar, RJMemoryPoolAlloc > RJValue
Definition: RJFwd.h:29