You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

json_fwd.hpp 2.4 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /**
  2. * Copyright 2021 Huawei Technologies Co., Ltd
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #ifndef INCLUDE_NLOHMANN_JSON_FWD_HPP_
  17. #define INCLUDE_NLOHMANN_JSON_FWD_HPP_
  18. #include <cstdint> // int64_t, uint64_t
  19. #include <map> // map
  20. #include <memory> // allocator
  21. #include <string> // string
  22. #include <vector> // vector
  23. /*!
  24. @brief namespace for Niels Lohmann
  25. @see https://github.com/nlohmann
  26. @since version 1.0.0
  27. */
  28. namespace nlohmann {
  29. /*!
  30. @brief default JSONSerializer template argument
  31. This serializer ignores the template arguments and uses ADL
  32. ([argument-dependent lookup](https://en.cppreference.com/w/cpp/language/adl))
  33. for serialization.
  34. */
  35. template <typename T = void, typename SFINAE = void>
  36. struct adl_serializer;
  37. template <template <typename U, typename V, typename... Args> class ObjectType = std::map,
  38. template <typename U, typename... Args> class ArrayType = std::vector, class StringType = std::string,
  39. class BooleanType = bool, class NumberIntegerType = std::int64_t, class NumberUnsignedType = std::uint64_t,
  40. class NumberFloatType = double, template <typename U> class AllocatorType = std::allocator,
  41. template <typename T, typename SFINAE = void> class JSONSerializer = adl_serializer>
  42. class basic_json;
  43. /*!
  44. @brief JSON Pointer
  45. A JSON pointer defines a string syntax for identifying a specific value
  46. within a JSON document. It can be used with functions `at` and
  47. `operator[]`. Furthermore, JSON pointers are the base for JSON patches.
  48. @sa [RFC 6901](https://tools.ietf.org/html/rfc6901)
  49. @since version 2.0.0
  50. */
  51. template <typename BasicJsonType>
  52. class json_pointer;
  53. /*!
  54. @brief default JSON class
  55. This type is the default specialization of the @ref basic_json class which
  56. uses the standard template types.
  57. @since version 1.0.0
  58. */
  59. using json = basic_json<>;
  60. } // namespace nlohmann
  61. #endif // INCLUDE_NLOHMANN_JSON_FWD_HPP_