rippled
Public Member Functions | Public Attributes | List of all members
ripple::STParsedJSONArray Class Reference

Holds the serialized result of parsing an input JSON array. More...

Collaboration diagram for ripple::STParsedJSONArray:
Collaboration graph
[legend]

Public Member Functions

 STParsedJSONArray (std::string const &name, Json::Value const &json)
 Parses and creates an STParsedJSON array. More...
 
 STParsedJSONArray ()=delete
 
 STParsedJSONArray (STParsedJSONArray const &)=delete
 
STParsedJSONArrayoperator= (STParsedJSONArray const &)=delete
 
 ~STParsedJSONArray ()=default
 

Public Attributes

std::optional< STArrayarray
 The STArray if the parse was successful. More...
 
Json::Value error
 On failure, an appropriate set of error values. More...
 

Detailed Description

Holds the serialized result of parsing an input JSON array.

This does validation and checking on the provided JSON.

Definition at line 59 of file STParsedJSON.h.

Constructor & Destructor Documentation

◆ STParsedJSONArray() [1/3]

ripple::STParsedJSONArray::STParsedJSONArray ( std::string const &  name,
Json::Value const &  json 
)

Parses and creates an STParsedJSON array.

The result of the parsing is stored in array and error. Exceptions: Does not throw.

Parameters
nameThe name of the JSON field, used in diagnostics.
jsonThe JSON-RPC to parse.

Definition at line 972 of file STParsedJSON.cpp.

◆ STParsedJSONArray() [2/3]

ripple::STParsedJSONArray::STParsedJSONArray ( )
delete

◆ STParsedJSONArray() [3/3]

ripple::STParsedJSONArray::STParsedJSONArray ( STParsedJSONArray const &  )
delete

◆ ~STParsedJSONArray()

ripple::STParsedJSONArray::~STParsedJSONArray ( )
default

Member Function Documentation

◆ operator=()

STParsedJSONArray& ripple::STParsedJSONArray::operator= ( STParsedJSONArray const &  )
delete

Member Data Documentation

◆ array

std::optional<STArray> ripple::STParsedJSONArray::array

The STArray if the parse was successful.

Definition at line 78 of file STParsedJSON.h.

◆ error

Json::Value ripple::STParsedJSONArray::error

On failure, an appropriate set of error values.

Definition at line 81 of file STParsedJSON.h.