DAW JSON Link
Loading...
Searching...
No Matches
include
daw
json
daw_json_link.h
Go to the documentation of this file.
1
// Copyright (c) Darrell Wright
2
//
3
// Distributed under the Boost Software License, version 1.0. (see accompanying
4
// file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
5
//
6
// Official repository: https://github.com/beached/daw_json_link
7
//
8
9
#pragma once
10
11
#include "
daw/json/impl/version.h
"
12
13
#include "
daw/json/daw_from_json.h
"
14
#include "
daw/json/daw_json_apply.h
"
15
#include "
daw/json/daw_json_exception.h
"
16
#include "
daw/json/daw_json_link_types.h
"
17
#include "
daw/json/daw_to_json.h
"
18
#include "
daw/json/impl/daw_json_alternate_mapping.h
"
19
#include "
daw/json/impl/daw_json_reflection.h
"
20
#include "
daw/json/impl/daw_json_value.h
"
21
22
#include <daw/daw_consteval.h>
23
24
namespace
daw::json::literals
{
25
/***
26
* Construct a json_value from a string literal
27
* @return A json_value representing the json document
28
*/
29
DAW_CONSTEVAL
daw::json::json_value
operator
""
_dawjson(
char
const
*ptr,
30
std::size_t sz ) {
31
return
daw::json::json_value
( ptr, sz );
32
}
33
}
// namespace daw::json::literals
34
35
namespace
daw::json
{
36
inline
namespace
DAW_JSON_VER
{
37
DAW_CONSTEVAL std::string_view
json_link_version
( ) {
38
#define DAW_XSTR( x ) DAW_STR( x )
39
#define DAW_STR( x ) std::string_view( #x )
40
return
DAW_XSTR
(
DAW_JSON_VER
);
41
#undef DAW_STR
42
#undef DAW_XSTR
43
}
44
}
// namespace DAW_JSON_VER
45
}
// namespace daw::json
daw_from_json.h
daw_json_alternate_mapping.h
daw_json_apply.h
daw_json_exception.h
DAW_XSTR
#define DAW_XSTR(x)
daw_json_link_types.h
daw_json_reflection.h
daw_json_value.h
daw_to_json.h
daw::json::anonymous_namespace{daw_json_link.h}::json_link_version
DAW_CONSTEVAL std::string_view json_link_version()
Definition
daw_json_link.h:37
daw::json::anonymous_namespace{daw_json_value_fwd.h}::json_value
basic_json_value<> json_value
An untyped JSON value.
Definition
daw_json_value_fwd.h:27
daw::json::literals
Definition
daw_json_link.h:24
daw::json
Customization point traits.
Definition
daw_container_traits.h:24
daw::json::basic_json_value
A non-owning container for arbitrary JSON values that allows movement/iteration through.
Definition
daw_json_value.h:362
version.h
DAW_JSON_VER
#define DAW_JSON_VER
The version string used in namespace definitions. Must be a valid namespace name.
Definition
version.h:20
Generated by
1.9.8