xrpld
Loading...
Searching...
No Matches
xrpl::st_parsed_json_detail Namespace Reference

Functions

template<typename U, typename S>
requires (std::is_unsigned_v<U> && std::is_signed_v<S>)
constexpr U toUnsigned (S value)
template<typename U1, typename U2>
requires (std::is_unsigned_v<U1> && std::is_unsigned_v<U2>)
constexpr U1 toUnsigned (U2 value)
static std::string joinName (std::string const &jsonName, std::string const &fieldName)
static std::string makeName (std::string const &object, std::string const &field)
static json::Value notAnObject (std::string const &object, std::string const &field)
static json::Value notAnObject (std::string const &object)
static json::Value notAnArray (std::string const &object)
static json::Value unknownField (std::string const &object, std::string const &field)
static json::Value outOfRange (std::string const &object, std::string const &field)
static json::Value badType (std::string const &object, std::string const &field)
static json::Value invalidData (std::string const &object, std::string const &field)
static json::Value invalidData (std::string const &object)
static json::Value arrayExpected (std::string const &object, std::string const &field)
static json::Value arrayTooBig (std::string const &object, std::string const &field)
static json::Value stringExpected (std::string const &object, std::string const &field)
static json::Value tooDeep (std::string const &object)
static json::Value singletonExpected (std::string const &object, unsigned int index)
static json::Value templateMismatch (SField const &sField)
static json::Value nonObjectInArray (std::string const &item, json::UInt index)
template<class STResult, class Integer>
static std::optional< detail::STVarparseUnsigned (SField const &field, std::string const &jsonName, 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 &jsonName, 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 &jsonName, std::string const &fieldName, SField const *name, json::Value const &value, json::Value &error)
static std::optional< detail::STVarparseLeaf (std::string const &jsonName, std::string const &fieldName, SField const *name, json::Value const &value, json::Value &error)
static std::optional< detail::STVarparseArray (std::string const &jsonName, json::Value const &json, SField const &inName, int depth, json::Value &error)
static std::optional< STObjectparseObject (std::string const &jsonName, json::Value const &json, SField const &inName, int depth, json::Value &error)

Function Documentation

◆ toUnsigned() [1/2]

template<typename U, typename S>
requires (std::is_unsigned_v<U> && std::is_signed_v<S>)
U xrpl::st_parsed_json_detail::toUnsigned ( S value)
constexpr

Definition at line 54 of file STParsedJSON.cpp.

◆ toUnsigned() [2/2]

template<typename U1, typename U2>
requires (std::is_unsigned_v<U1> && std::is_unsigned_v<U2>)
U1 xrpl::st_parsed_json_detail::toUnsigned ( U2 value)
constexpr

Definition at line 64 of file STParsedJSON.cpp.

◆ joinName()

std::string xrpl::st_parsed_json_detail::joinName ( std::string const & jsonName,
std::string const & fieldName )
static

Definition at line 73 of file STParsedJSON.cpp.

◆ makeName()

std::string xrpl::st_parsed_json_detail::makeName ( std::string const & object,
std::string const & field )
static

Definition at line 85 of file STParsedJSON.cpp.

◆ notAnObject() [1/2]

json::Value xrpl::st_parsed_json_detail::notAnObject ( std::string const & object,
std::string const & field )
static

Definition at line 94 of file STParsedJSON.cpp.

◆ notAnObject() [2/2]

json::Value xrpl::st_parsed_json_detail::notAnObject ( std::string const & object)
static

Definition at line 101 of file STParsedJSON.cpp.

◆ notAnArray()

json::Value xrpl::st_parsed_json_detail::notAnArray ( std::string const & object)
static

Definition at line 107 of file STParsedJSON.cpp.

◆ unknownField()

json::Value xrpl::st_parsed_json_detail::unknownField ( std::string const & object,
std::string const & field )
static

Definition at line 113 of file STParsedJSON.cpp.

◆ outOfRange()

json::Value xrpl::st_parsed_json_detail::outOfRange ( std::string const & object,
std::string const & field )
static

Definition at line 119 of file STParsedJSON.cpp.

◆ badType()

json::Value xrpl::st_parsed_json_detail::badType ( std::string const & object,
std::string const & field )
static

Definition at line 126 of file STParsedJSON.cpp.

◆ invalidData() [1/2]

json::Value xrpl::st_parsed_json_detail::invalidData ( std::string const & object,
std::string const & field )
static

Definition at line 133 of file STParsedJSON.cpp.

◆ invalidData() [2/2]

json::Value xrpl::st_parsed_json_detail::invalidData ( std::string const & object)
static

Definition at line 140 of file STParsedJSON.cpp.

◆ arrayExpected()

json::Value xrpl::st_parsed_json_detail::arrayExpected ( std::string const & object,
std::string const & field )
static

Definition at line 146 of file STParsedJSON.cpp.

◆ arrayTooBig()

json::Value xrpl::st_parsed_json_detail::arrayTooBig ( std::string const & object,
std::string const & field )
static

Definition at line 153 of file STParsedJSON.cpp.

◆ stringExpected()

json::Value xrpl::st_parsed_json_detail::stringExpected ( std::string const & object,
std::string const & field )
static

Definition at line 162 of file STParsedJSON.cpp.

◆ tooDeep()

json::Value xrpl::st_parsed_json_detail::tooDeep ( std::string const & object)
static

Definition at line 169 of file STParsedJSON.cpp.

◆ singletonExpected()

json::Value xrpl::st_parsed_json_detail::singletonExpected ( std::string const & object,
unsigned int index )
static

Definition at line 175 of file STParsedJSON.cpp.

◆ templateMismatch()

json::Value xrpl::st_parsed_json_detail::templateMismatch ( SField const & sField)
static

Definition at line 184 of file STParsedJSON.cpp.

◆ nonObjectInArray()

json::Value xrpl::st_parsed_json_detail::nonObjectInArray ( std::string const & item,
json::UInt index )
static

Definition at line 192 of file STParsedJSON.cpp.

◆ parseUnsigned()

template<class STResult, class Integer>
std::optional< detail::STVar > xrpl::st_parsed_json_detail::parseUnsigned ( SField const & field,
std::string const & jsonName,
std::string const & fieldName,
SField const * name,
json::Value const & value,
json::Value & error )
static

Definition at line 203 of file STParsedJSON.cpp.

◆ parseUInt16()

template<class STResult, class Integer = std::uint16_t>
std::optional< detail::STVar > xrpl::st_parsed_json_detail::parseUInt16 ( SField const & field,
std::string const & jsonName,
std::string const & fieldName,
SField const * name,
json::Value const & value,
json::Value & error )
static

Definition at line 249 of file STParsedJSON.cpp.

◆ parseUInt32()

template<class STResult, class Integer = std::uint32_t>
std::optional< detail::STVar > xrpl::st_parsed_json_detail::parseUInt32 ( SField const & field,
std::string const & jsonName,
std::string const & fieldName,
SField const * name,
json::Value const & value,
json::Value & error )
static

Definition at line 310 of file STParsedJSON.cpp.

◆ parseLeaf()

std::optional< detail::STVar > xrpl::st_parsed_json_detail::parseLeaf ( std::string const & jsonName,
std::string const & fieldName,
SField const * name,
json::Value const & value,
json::Value & error )
static

Definition at line 365 of file STParsedJSON.cpp.

◆ parseArray()

std::optional< detail::STVar > xrpl::st_parsed_json_detail::parseArray ( std::string const & jsonName,
json::Value const & json,
SField const & inName,
int depth,
json::Value & error )
static

Definition at line 1114 of file STParsedJSON.cpp.

◆ parseObject()

std::optional< STObject > xrpl::st_parsed_json_detail::parseObject ( std::string const & jsonName,
json::Value const & json,
SField const & inName,
int depth,
json::Value & error )
static

Definition at line 1001 of file STParsedJSON.cpp.