rippled
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)
 
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 const int 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 49 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 59 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 67 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 76 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 84 of file STParsedJSON.cpp.

◆ not_an_array()

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

Definition at line 90 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 97 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 105 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 113 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 121 of file STParsedJSON.cpp.

◆ invalid_data() [2/2]

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

Definition at line 129 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 135 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 143 of file STParsedJSON.cpp.

◆ too_deep()

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

Definition at line 151 of file STParsedJSON.cpp.

◆ singleton_expected()

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

Definition at line 159 of file STParsedJSON.cpp.

◆ template_mismatch()

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

Definition at line 168 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 177 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 188 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 876 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 753 of file STParsedJSON.cpp.

Variable Documentation

◆ maxDepth

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

Definition at line 741 of file STParsedJSON.cpp.