DAW JSON Link
Public Types | Static Public Attributes | List of all members
daw::json::DAW_JSON_VER::json_string_raw< Name, String, Options, Constructor > Struct Template Reference

#include <daw_json_link_types.h>

Inheritance diagram for daw::json::DAW_JSON_VER::json_string_raw< Name, String, Options, Constructor >:
daw::json::DAW_JSON_VER::json_base::json_string_raw< String, Options, Constructor >

Public Types

using i_am_a_json_type = void
 
template<JSONNAMETYPE NewName>
using with_name = json_string_raw< NewName, String, Options, Constructor >
 
using without_name = json_base::json_string_raw< String, Options, Constructor >
 
- Public Types inherited from daw::json::DAW_JSON_VER::json_base::json_string_raw< String, Options, Constructor >
using base_type = json_details::unwrap_type< String, nullable >
 
using constructor_t = Constructor
 
using i_am_a_json_type = void
 
using parse_to_t = typename json_details::construction_result< nullable !=JsonNullable::MustExist, Constructor, base_type >::type
 
template<JSONNAMETYPE NewName>
using with_name = daw::json::json_string_raw< NewName, String, Options, Constructor >
 
using without_name = json_string_raw
 
using wrapped_type = String
 

Static Public Attributes

static constexpr daw::string_view name = Name
 
- Static Public Attributes inherited from daw::json::DAW_JSON_VER::json_base::json_string_raw< String, Options, Constructor >
static constexpr AllowEscapeCharacter allow_escape_character
 
static constexpr JsonParseTypes base_expected_type
 
static constexpr EightBitModes eight_bit_mode
 
static constexpr EmptyStringNull empty_is_null
 
static constexpr JsonParseTypes expected_type
 
static constexpr bool must_be_class_member = false
 
static constexpr daw::string_view name = no_name
 
static constexpr JsonNullable nullable
 
static constexpr JsonBaseParseTypes underlying_json_type
 

Detailed Description

template<JSONNAMETYPE Name, typename String, json_details::json_options_t Options, typename Constructor>
struct daw::json::DAW_JSON_VER::json_string_raw< Name, String, Options, Constructor >

Member is an escaped string and requires unescaping and escaping of string data

Template Parameters
Nameof json member
Stringresult type constructed by Constructor
Constructora callable taking as arguments ( char const *, std::size_t )
EmptyStringNullif string is empty, call Constructor with no arguments
EightBitModeAllow filtering of characters with the MSB set arguments
NullableCan the member be missing or have a null value
AllowEscapeTell parser if we know a \ or escape will be in the data

Member Typedef Documentation

◆ i_am_a_json_type

template<JSONNAMETYPE Name, typename String , json_details::json_options_t Options, typename Constructor >
using daw::json::DAW_JSON_VER::json_string_raw< Name, String, Options, Constructor >::i_am_a_json_type = void

◆ with_name

template<JSONNAMETYPE Name, typename String , json_details::json_options_t Options, typename Constructor >
template<JSONNAMETYPE NewName>
using daw::json::DAW_JSON_VER::json_string_raw< Name, String, Options, Constructor >::with_name = json_string_raw<NewName, String, Options, Constructor>

◆ without_name

template<JSONNAMETYPE Name, typename String , json_details::json_options_t Options, typename Constructor >
using daw::json::DAW_JSON_VER::json_string_raw< Name, String, Options, Constructor >::without_name = json_base::json_string_raw<String, Options, Constructor>

Member Data Documentation

◆ name

template<JSONNAMETYPE Name, typename String , json_details::json_options_t Options, typename Constructor >
constexpr daw::string_view daw::json::DAW_JSON_VER::json_string_raw< Name, String, Options, Constructor >::name = Name
staticconstexpr

The documentation for this struct was generated from the following file: