rippled
Loading...
Searching...
No Matches
Functions | Variables
ripple::STParsedJSONDetail Namespace Reference

Functions

template<typename U , typename S >
constexpr std::enable_if_t< std::is_unsigned< U >::value &&std::is_signed< S >::value, U > to_unsigned (S value)
 
template<typename U1 , typename U2 >
constexpr std::enable_if_t< std::is_unsigned< U1 >::value &&std::is_unsigned< U2 >::value, U1 > to_unsigned (U2 value)
 
static std::string make_name (std::string const &object, std::string const &field)
 
static Json::Value not_an_object (std::string const &object, std::string const &field)
 
static Json::Value not_an_object (std::string const &object)
 
static Json::Value not_an_array (std::string const &object)
 
static Json::Value unknown_field (std::string const &object, std::string const &field)
 
static Json::Value out_of_range (std::string const &object, std::string const &field)
 
static Json::Value bad_type (std::string const &object, std::string const &field)
 
static Json::Value invalid_data (std::string const &object, std::string const &field)
 
static Json::Value invalid_data (std::string const &object)
 
static Json::Value array_expected (std::string const &object, std::string const &field)
 
static Json::Value string_expected (std::string const &object, std::string const &field)
 
static Json::Value too_deep (std::string const &object)
 
static Json::Value singleton_expected (std::string const &object, unsigned int index)
 
static Json::Value template_mismatch (SField const &sField)
 
static Json::Value non_object_in_array (std::string const &item, Json::UInt index)
 
template<class STResult , class Integer >
static std::optional< detail::STVarparseUnsigned (SField const &field, std::string const &json_name, std::string const &fieldName, SField const *name, Json::Value const &value, Json::Value &error)
 
template<class STResult , class Integer = std::uint16_t>
static std::optional< detail::STVarparseUint16 (SField const &field, std::string const &json_name, std::string const &fieldName, SField const *name, Json::Value const &value, Json::Value &error)
 
template<class STResult , class Integer = std::uint32_t>
static std::optional< detail::STVarparseUint32 (SField const &field, std::string const &json_name, std::string const &fieldName, SField const *name, Json::Value const &value, Json::Value &error)
 
static std::optional< detail::STVarparseLeaf (std::string const &json_name, std::string const &fieldName, SField const *name, Json::Value const &value, Json::Value &error)
 
static std::optional< detail::STVarparseArray (std::string const &json_name, Json::Value const &json, SField const &inName, int depth, Json::Value &error)
 
static std::optional< STObjectparseObject (std::string const &json_name, Json::Value const &json, SField const &inName, int depth, Json::Value &error)
 

Variables

static int const maxDepth = 64
 

Function Documentation

◆ to_unsigned() [1/2]

template<typename U , typename S >
constexpr std:: enable_if_t< std::is_unsigned< U >::value &&std::is_signed< S >::value, U > ripple::STParsedJSONDetail::to_unsigned ( value)
constexpr

Definition at line 69 of file STParsedJSON.cpp.

◆ to_unsigned() [2/2]

template<typename U1 , typename U2 >
constexpr std:: enable_if_t< std::is_unsigned< U1 >::value &&std::is_unsigned< U2 >::value, U1 > ripple::STParsedJSONDetail::to_unsigned ( U2  value)
constexpr

Definition at line 79 of file STParsedJSON.cpp.

◆ make_name()

static std::string ripple::STParsedJSONDetail::make_name ( std::string const &  object,
std::string const &  field 
)
static

Definition at line 88 of file STParsedJSON.cpp.

◆ not_an_object() [1/2]

static Json::Value ripple::STParsedJSONDetail::not_an_object ( std::string const &  object,
std::string const &  field 
)
static

Definition at line 97 of file STParsedJSON.cpp.

◆ not_an_object() [2/2]

static Json::Value ripple::STParsedJSONDetail::not_an_object ( std::string const &  object)
static

Definition at line 105 of file STParsedJSON.cpp.

◆ not_an_array()

static Json::Value ripple::STParsedJSONDetail::not_an_array ( std::string const &  object)
static

Definition at line 111 of file STParsedJSON.cpp.

◆ unknown_field()

static Json::Value ripple::STParsedJSONDetail::unknown_field ( std::string const &  object,
std::string const &  field 
)
static

Definition at line 118 of file STParsedJSON.cpp.

◆ out_of_range()

static Json::Value ripple::STParsedJSONDetail::out_of_range ( std::string const &  object,
std::string const &  field 
)
static

Definition at line 126 of file STParsedJSON.cpp.

◆ bad_type()

static Json::Value ripple::STParsedJSONDetail::bad_type ( std::string const &  object,
std::string const &  field 
)
static

Definition at line 134 of file STParsedJSON.cpp.

◆ invalid_data() [1/2]

static Json::Value ripple::STParsedJSONDetail::invalid_data ( std::string const &  object,
std::string const &  field 
)
static

Definition at line 142 of file STParsedJSON.cpp.

◆ invalid_data() [2/2]

static Json::Value ripple::STParsedJSONDetail::invalid_data ( std::string const &  object)
static

Definition at line 150 of file STParsedJSON.cpp.

◆ array_expected()

static Json::Value ripple::STParsedJSONDetail::array_expected ( std::string const &  object,
std::string const &  field 
)
static

Definition at line 156 of file STParsedJSON.cpp.

◆ string_expected()

static Json::Value ripple::STParsedJSONDetail::string_expected ( std::string const &  object,
std::string const &  field 
)
static

Definition at line 164 of file STParsedJSON.cpp.

◆ too_deep()

static Json::Value ripple::STParsedJSONDetail::too_deep ( std::string const &  object)
static

Definition at line 172 of file STParsedJSON.cpp.

◆ singleton_expected()

static Json::Value ripple::STParsedJSONDetail::singleton_expected ( std::string const &  object,
unsigned int  index 
)
static

Definition at line 180 of file STParsedJSON.cpp.

◆ template_mismatch()

static Json::Value ripple::STParsedJSONDetail::template_mismatch ( SField const &  sField)
static

Definition at line 189 of file STParsedJSON.cpp.

◆ non_object_in_array()

static Json::Value ripple::STParsedJSONDetail::non_object_in_array ( std::string const &  item,
Json::UInt  index 
)
static

Definition at line 198 of file STParsedJSON.cpp.

◆ parseUnsigned()

template<class STResult , class Integer >
static std::optional< detail::STVar > ripple::STParsedJSONDetail::parseUnsigned ( SField const &  field,
std::string const &  json_name,
std::string const &  fieldName,
SField const *  name,
Json::Value const &  value,
Json::Value error 
)
static

Definition at line 209 of file STParsedJSON.cpp.

◆ parseUint16()

template<class STResult , class Integer = std::uint16_t>
static std::optional< detail::STVar > ripple::STParsedJSONDetail::parseUint16 ( SField const &  field,
std::string const &  json_name,
std::string const &  fieldName,
SField const *  name,
Json::Value const &  value,
Json::Value error 
)
static

Definition at line 257 of file STParsedJSON.cpp.

◆ parseUint32()

template<class STResult , class Integer = std::uint32_t>
static std::optional< detail::STVar > ripple::STParsedJSONDetail::parseUint32 ( SField const &  field,
std::string const &  json_name,
std::string const &  fieldName,
SField const *  name,
Json::Value const &  value,
Json::Value error 
)
static

Definition at line 322 of file STParsedJSON.cpp.

◆ parseLeaf()

static std::optional< detail::STVar > ripple::STParsedJSONDetail::parseLeaf ( std::string const &  json_name,
std::string const &  fieldName,
SField const *  name,
Json::Value const &  value,
Json::Value error 
)
static

Definition at line 379 of file STParsedJSON.cpp.

◆ parseArray()

static std::optional< detail::STVar > ripple::STParsedJSONDetail::parseArray ( std::string const &  json_name,
Json::Value const &  json,
SField const &  inName,
int  depth,
Json::Value error 
)
static

Definition at line 1118 of file STParsedJSON.cpp.

◆ parseObject()

static std::optional< STObject > ripple::STParsedJSONDetail::parseObject ( std::string const &  json_name,
Json::Value const &  json,
SField const &  inName,
int  depth,
Json::Value error 
)
static

Definition at line 995 of file STParsedJSON.cpp.

Variable Documentation

◆ maxDepth

int const ripple::STParsedJSONDetail::maxDepth = 64
static

Definition at line 983 of file STParsedJSON.cpp.