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

Functions

template<typename U, typename S>
constexpr std::enable_if_t< std::is_unsigned_v< U > &&std::is_signed_v< S >, U > toUnsigned (S value)
template<typename U1, typename U2>
constexpr std::enable_if_t< std::is_unsigned_v< U1 > &&std::is_unsigned_v< U2 >, U1 > toUnsigned (U2 value)
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>
std::enable_if_t< std::is_unsigned_v< U > &&std::is_signed_v< S >, U > xrpl::STParsedJSONDetail::toUnsigned ( S value)
constexpr

Definition at line 54 of file STParsedJSON.cpp.

◆ toUnsigned() [2/2]

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

Definition at line 63 of file STParsedJSON.cpp.

◆ makeName()

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

Definition at line 72 of file STParsedJSON.cpp.

◆ notAnObject() [1/2]

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

Definition at line 81 of file STParsedJSON.cpp.

◆ notAnObject() [2/2]

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

Definition at line 88 of file STParsedJSON.cpp.

◆ notAnArray()

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

Definition at line 94 of file STParsedJSON.cpp.

◆ unknownField()

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

Definition at line 100 of file STParsedJSON.cpp.

◆ outOfRange()

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

Definition at line 106 of file STParsedJSON.cpp.

◆ badType()

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

Definition at line 113 of file STParsedJSON.cpp.

◆ invalidData() [1/2]

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

Definition at line 120 of file STParsedJSON.cpp.

◆ invalidData() [2/2]

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

Definition at line 127 of file STParsedJSON.cpp.

◆ arrayExpected()

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

Definition at line 133 of file STParsedJSON.cpp.

◆ arrayTooBig()

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

Definition at line 140 of file STParsedJSON.cpp.

◆ stringExpected()

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

Definition at line 149 of file STParsedJSON.cpp.

◆ tooDeep()

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

Definition at line 156 of file STParsedJSON.cpp.

◆ singletonExpected()

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

Definition at line 162 of file STParsedJSON.cpp.

◆ templateMismatch()

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

Definition at line 171 of file STParsedJSON.cpp.

◆ nonObjectInArray()

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

Definition at line 179 of file STParsedJSON.cpp.

◆ parseUnsigned()

template<class STResult, class Integer>
std::optional< detail::STVar > xrpl::STParsedJSONDetail::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 190 of file STParsedJSON.cpp.

◆ parseUInt16()

template<class STResult, class Integer = std::uint16_t>
std::optional< detail::STVar > xrpl::STParsedJSONDetail::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 236 of file STParsedJSON.cpp.

◆ parseUInt32()

template<class STResult, class Integer = std::uint32_t>
std::optional< detail::STVar > xrpl::STParsedJSONDetail::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 297 of file STParsedJSON.cpp.

◆ parseLeaf()

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

Definition at line 352 of file STParsedJSON.cpp.

◆ parseArray()

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

Definition at line 1101 of file STParsedJSON.cpp.

◆ parseObject()

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

Definition at line 988 of file STParsedJSON.cpp.