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

#include <daw_json_link_types.h>

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

Public Types

template<JSONNAMETYPE NewName>
using with_name = json_string< NewName, String, Options, Constructor >
 
using without_name = json_base::json_string< String, Options, Constructor >
 
- Public Types inherited from daw::json::DAW_JSON_VER::json_base::json_string< String, Options, Constructor >
using base_type = json_details::unwrapped_t< 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, char const *, char const * >::type
 
template<JSONNAMETYPE NewName>
using with_name = daw::json::json_string< NewName, String, Options, Constructor >
 
using without_name = json_string
 
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< String, Options, Constructor >
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< 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 ( InputIterator, InputIterator ). If others are needed use the Constructor callable convert
EmptyStringNullif string is empty, call Constructor with no arguments
EightBitModeAllow filtering of characters with the MSB set
NullableCan the member be missing or have a null value

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
NullableCan the member be missing or have a null value

Member Typedef Documentation

◆ 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< Name, String, Options, Constructor >::with_name = json_string<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< Name, String, Options, Constructor >::without_name = json_base::json_string<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< Name, String, Options, Constructor >::name = Name
staticconstexpr

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