fwd.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. // Tencent is pleased to support the open source community by making RapidJSON
  2. // available.
  3. //
  4. // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All
  5. // rights reserved.
  6. //
  7. // Licensed under the MIT License (the "License"); you may not use this file
  8. // except in compliance with the License. You may obtain a copy of the License
  9. // at
  10. //
  11. // http://opensource.org/licenses/MIT
  12. //
  13. // Unless required by applicable law or agreed to in writing, software
  14. // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  15. // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  16. // License for the specific language governing permissions and limitations under
  17. // the License.
  18. #ifndef RAPIDJSON_FWD_H_
  19. #define RAPIDJSON_FWD_H_
  20. #include "rapidjson.h"
  21. RAPIDJSON_NAMESPACE_BEGIN
  22. // encodings.h
  23. template <typename CharType>
  24. struct UTF8;
  25. template <typename CharType>
  26. struct UTF16;
  27. template <typename CharType>
  28. struct UTF16BE;
  29. template <typename CharType>
  30. struct UTF16LE;
  31. template <typename CharType>
  32. struct UTF32;
  33. template <typename CharType>
  34. struct UTF32BE;
  35. template <typename CharType>
  36. struct UTF32LE;
  37. template <typename CharType>
  38. struct ASCII;
  39. template <typename CharType>
  40. struct AutoUTF;
  41. template <typename SourceEncoding, typename TargetEncoding>
  42. struct Transcoder;
  43. // allocators.h
  44. class CrtAllocator;
  45. template <typename BaseAllocator>
  46. class MemoryPoolAllocator;
  47. // stream.h
  48. template <typename Encoding>
  49. struct GenericStringStream;
  50. typedef GenericStringStream<UTF8<char>> StringStream;
  51. template <typename Encoding>
  52. struct GenericInsituStringStream;
  53. typedef GenericInsituStringStream<UTF8<char>> InsituStringStream;
  54. // stringbuffer.h
  55. template <typename Encoding, typename Allocator>
  56. class GenericStringBuffer;
  57. typedef GenericStringBuffer<UTF8<char>, CrtAllocator> StringBuffer;
  58. // filereadstream.h
  59. class FileReadStream;
  60. // filewritestream.h
  61. class FileWriteStream;
  62. // memorybuffer.h
  63. template <typename Allocator>
  64. struct GenericMemoryBuffer;
  65. typedef GenericMemoryBuffer<CrtAllocator> MemoryBuffer;
  66. // memorystream.h
  67. struct MemoryStream;
  68. // reader.h
  69. template <typename Encoding, typename Derived>
  70. struct BaseReaderHandler;
  71. template <typename SourceEncoding, typename TargetEncoding,
  72. typename StackAllocator>
  73. class GenericReader;
  74. typedef GenericReader<UTF8<char>, UTF8<char>, CrtAllocator> Reader;
  75. // writer.h
  76. template <typename OutputStream, typename SourceEncoding,
  77. typename TargetEncoding, typename StackAllocator, unsigned writeFlags>
  78. class Writer;
  79. // prettywriter.h
  80. template <typename OutputStream, typename SourceEncoding,
  81. typename TargetEncoding, typename StackAllocator, unsigned writeFlags>
  82. class PrettyWriter;
  83. // document.h
  84. template <typename Encoding, typename Allocator>
  85. class GenericMember;
  86. template <bool Const, typename Encoding, typename Allocator>
  87. class GenericMemberIterator;
  88. template <typename CharType>
  89. struct GenericStringRef;
  90. template <typename Encoding, typename Allocator>
  91. class GenericValue;
  92. typedef GenericValue<UTF8<char>, MemoryPoolAllocator<CrtAllocator>> Value;
  93. template <typename Encoding, typename Allocator, typename StackAllocator>
  94. class GenericDocument;
  95. typedef GenericDocument<UTF8<char>, MemoryPoolAllocator<CrtAllocator>,
  96. CrtAllocator>
  97. Document;
  98. // pointer.h
  99. template <typename ValueType, typename Allocator>
  100. class GenericPointer;
  101. typedef GenericPointer<Value, CrtAllocator> Pointer;
  102. // schema.h
  103. template <typename SchemaDocumentType>
  104. class IGenericRemoteSchemaDocumentProvider;
  105. template <typename ValueT, typename Allocator>
  106. class GenericSchemaDocument;
  107. typedef GenericSchemaDocument<Value, CrtAllocator> SchemaDocument;
  108. typedef IGenericRemoteSchemaDocumentProvider<SchemaDocument>
  109. IRemoteSchemaDocumentProvider;
  110. template <typename SchemaDocumentType, typename OutputHandler,
  111. typename StateAllocator>
  112. class GenericSchemaValidator;
  113. typedef GenericSchemaValidator<
  114. SchemaDocument, BaseReaderHandler<UTF8<char>, void>, CrtAllocator>
  115. SchemaValidator;
  116. RAPIDJSON_NAMESPACE_END
  117. #endif // RAPIDJSON_RAPIDJSONFWD_H_