rippled
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
ripple::JsonPropertyStream Class Reference

A PropertyStream::Sink which produces a Json::Value of type objectValue. More...

#include <JsonPropertyStream.h>

Inheritance diagram for ripple::JsonPropertyStream:
Inheritance graph
[legend]
Collaboration diagram for ripple::JsonPropertyStream:
Collaboration graph
[legend]

Public Member Functions

 JsonPropertyStream ()
 
Json::Value const & top () const
 

Public Attributes

Json::Value m_top
 
std::vector< Json::Value * > m_stack
 

Protected Member Functions

void map_begin () override
 
void map_begin (std::string const &key) override
 
void map_end () override
 
void add (std::string const &key, short value) override
 
void add (std::string const &key, unsigned short value) override
 
void add (std::string const &key, int value) override
 
void add (std::string const &key, unsigned int value) override
 
void add (std::string const &key, long value) override
 
void add (std::string const &key, float v) override
 
void add (std::string const &key, double v) override
 
void add (std::string const &key, std::string const &v) override
 
void array_begin () override
 
void array_begin (std::string const &key) override
 
void array_end () override
 
void add (short value) override
 
void add (unsigned short value) override
 
void add (int value) override
 
void add (unsigned int value) override
 
void add (long value) override
 
void add (float v) override
 
void add (double v) override
 
void add (std::string const &v) override
 
void add (std::string const &key, char const *value)
 
virtual void add (std::string const &key, bool value)
 
virtual void add (std::string const &key, char value)
 
virtual void add (std::string const &key, signed char value)
 
virtual void add (std::string const &key, unsigned char value)
 
virtual void add (std::string const &key, unsigned long value)
 
virtual void add (std::string const &key, long long value)
 
virtual void add (std::string const &key, unsigned long long value)
 
virtual void add (std::string const &key, long double value)
 
void add (char const *value)
 
virtual void add (bool value)
 
virtual void add (char value)
 
virtual void add (signed char value)
 
virtual void add (unsigned char value)
 
virtual void add (unsigned long value)
 
virtual void add (long long value)
 
virtual void add (unsigned long long value)
 
virtual void add (long double value)
 
template<typename Value >
void lexical_add (std::string const &key, Value value)
 
template<typename Value >
void lexical_add (Value value)
 

Detailed Description

A PropertyStream::Sink which produces a Json::Value of type objectValue.

Definition at line 10 of file JsonPropertyStream.h.

Constructor & Destructor Documentation

◆ JsonPropertyStream()

ripple::JsonPropertyStream::JsonPropertyStream ( )

Definition at line 8 of file JsonPropertyStream.cpp.

Member Function Documentation

◆ top()

Json::Value const & ripple::JsonPropertyStream::top ( ) const

Definition at line 15 of file JsonPropertyStream.cpp.

◆ map_begin() [1/2]

void ripple::JsonPropertyStream::map_begin ( )
overrideprotectedvirtual

Implements beast::PropertyStream.

Definition at line 21 of file JsonPropertyStream.cpp.

◆ map_begin() [2/2]

void ripple::JsonPropertyStream::map_begin ( std::string const &  key)
overrideprotectedvirtual

Implements beast::PropertyStream.

Definition at line 30 of file JsonPropertyStream.cpp.

◆ map_end()

void ripple::JsonPropertyStream::map_end ( )
overrideprotectedvirtual

Implements beast::PropertyStream.

Definition at line 39 of file JsonPropertyStream.cpp.

◆ add() [1/34]

void ripple::JsonPropertyStream::add ( std::string const &  key,
short  value 
)
overrideprotectedvirtual

Reimplemented from beast::PropertyStream.

Definition at line 45 of file JsonPropertyStream.cpp.

◆ add() [2/34]

void ripple::JsonPropertyStream::add ( std::string const &  key,
unsigned short  value 
)
overrideprotectedvirtual

Reimplemented from beast::PropertyStream.

Definition at line 51 of file JsonPropertyStream.cpp.

◆ add() [3/34]

void ripple::JsonPropertyStream::add ( std::string const &  key,
int  value 
)
overrideprotectedvirtual

Reimplemented from beast::PropertyStream.

Definition at line 57 of file JsonPropertyStream.cpp.

◆ add() [4/34]

void ripple::JsonPropertyStream::add ( std::string const &  key,
unsigned int  value 
)
overrideprotectedvirtual

Reimplemented from beast::PropertyStream.

Definition at line 63 of file JsonPropertyStream.cpp.

◆ add() [5/34]

void ripple::JsonPropertyStream::add ( std::string const &  key,
long  value 
)
overrideprotectedvirtual

Reimplemented from beast::PropertyStream.

Definition at line 69 of file JsonPropertyStream.cpp.

◆ add() [6/34]

void ripple::JsonPropertyStream::add ( std::string const &  key,
float  v 
)
overrideprotectedvirtual

Reimplemented from beast::PropertyStream.

Definition at line 75 of file JsonPropertyStream.cpp.

◆ add() [7/34]

void ripple::JsonPropertyStream::add ( std::string const &  key,
double  v 
)
overrideprotectedvirtual

Reimplemented from beast::PropertyStream.

Definition at line 81 of file JsonPropertyStream.cpp.

◆ add() [8/34]

void ripple::JsonPropertyStream::add ( std::string const &  key,
std::string const &  v 
)
overrideprotectedvirtual

Implements beast::PropertyStream.

Definition at line 87 of file JsonPropertyStream.cpp.

◆ array_begin() [1/2]

void ripple::JsonPropertyStream::array_begin ( )
overrideprotectedvirtual

Implements beast::PropertyStream.

Definition at line 93 of file JsonPropertyStream.cpp.

◆ array_begin() [2/2]

void ripple::JsonPropertyStream::array_begin ( std::string const &  key)
overrideprotectedvirtual

Implements beast::PropertyStream.

Definition at line 102 of file JsonPropertyStream.cpp.

◆ array_end()

void ripple::JsonPropertyStream::array_end ( )
overrideprotectedvirtual

Implements beast::PropertyStream.

Definition at line 111 of file JsonPropertyStream.cpp.

◆ add() [9/34]

void ripple::JsonPropertyStream::add ( short  value)
overrideprotectedvirtual

Reimplemented from beast::PropertyStream.

Definition at line 117 of file JsonPropertyStream.cpp.

◆ add() [10/34]

void ripple::JsonPropertyStream::add ( unsigned short  value)
overrideprotectedvirtual

Reimplemented from beast::PropertyStream.

Definition at line 123 of file JsonPropertyStream.cpp.

◆ add() [11/34]

void ripple::JsonPropertyStream::add ( int  value)
overrideprotectedvirtual

Reimplemented from beast::PropertyStream.

Definition at line 129 of file JsonPropertyStream.cpp.

◆ add() [12/34]

void ripple::JsonPropertyStream::add ( unsigned int  value)
overrideprotectedvirtual

Reimplemented from beast::PropertyStream.

Definition at line 135 of file JsonPropertyStream.cpp.

◆ add() [13/34]

void ripple::JsonPropertyStream::add ( long  value)
overrideprotectedvirtual

Reimplemented from beast::PropertyStream.

Definition at line 141 of file JsonPropertyStream.cpp.

◆ add() [14/34]

void ripple::JsonPropertyStream::add ( float  v)
overrideprotectedvirtual

Reimplemented from beast::PropertyStream.

Definition at line 147 of file JsonPropertyStream.cpp.

◆ add() [15/34]

void ripple::JsonPropertyStream::add ( double  v)
overrideprotectedvirtual

Reimplemented from beast::PropertyStream.

Definition at line 153 of file JsonPropertyStream.cpp.

◆ add() [16/34]

void ripple::JsonPropertyStream::add ( std::string const &  v)
overrideprotectedvirtual

Implements beast::PropertyStream.

Definition at line 159 of file JsonPropertyStream.cpp.

◆ add() [17/34]

void beast::PropertyStream::add ( std::string const &  key,
char const *  value 
)
protectedinherited

Definition at line 37 of file PropertyStream.h.

◆ add() [18/34]

void beast::PropertyStream::add ( std::string const &  key,
bool  value 
)
protectedvirtualinherited

Definition at line 379 of file beast_PropertyStream.cpp.

◆ add() [19/34]

void beast::PropertyStream::add ( std::string const &  key,
char  value 
)
protectedvirtualinherited

Definition at line 388 of file beast_PropertyStream.cpp.

◆ add() [20/34]

void beast::PropertyStream::add ( std::string const &  key,
signed char  value 
)
protectedvirtualinherited

Definition at line 394 of file beast_PropertyStream.cpp.

◆ add() [21/34]

void beast::PropertyStream::add ( std::string const &  key,
unsigned char  value 
)
protectedvirtualinherited

Definition at line 400 of file beast_PropertyStream.cpp.

◆ add() [22/34]

void beast::PropertyStream::add ( std::string const &  key,
unsigned long  value 
)
protectedvirtualinherited

Definition at line 436 of file beast_PropertyStream.cpp.

◆ add() [23/34]

void beast::PropertyStream::add ( std::string const &  key,
long long  value 
)
protectedvirtualinherited

Definition at line 442 of file beast_PropertyStream.cpp.

◆ add() [24/34]

void beast::PropertyStream::add ( std::string const &  key,
unsigned long long  value 
)
protectedvirtualinherited

Definition at line 448 of file beast_PropertyStream.cpp.

◆ add() [25/34]

void beast::PropertyStream::add ( std::string const &  key,
long double  value 
)
protectedvirtualinherited

Definition at line 466 of file beast_PropertyStream.cpp.

◆ add() [26/34]

void beast::PropertyStream::add ( char const *  value)
protectedinherited

Definition at line 93 of file PropertyStream.h.

◆ add() [27/34]

void beast::PropertyStream::add ( bool  value)
protectedvirtualinherited

Definition at line 472 of file beast_PropertyStream.cpp.

◆ add() [28/34]

void beast::PropertyStream::add ( char  value)
protectedvirtualinherited

Definition at line 481 of file beast_PropertyStream.cpp.

◆ add() [29/34]

void beast::PropertyStream::add ( signed char  value)
protectedvirtualinherited

Definition at line 487 of file beast_PropertyStream.cpp.

◆ add() [30/34]

void beast::PropertyStream::add ( unsigned char  value)
protectedvirtualinherited

Definition at line 493 of file beast_PropertyStream.cpp.

◆ add() [31/34]

void beast::PropertyStream::add ( unsigned long  value)
protectedvirtualinherited

Definition at line 529 of file beast_PropertyStream.cpp.

◆ add() [32/34]

void beast::PropertyStream::add ( long long  value)
protectedvirtualinherited

Definition at line 535 of file beast_PropertyStream.cpp.

◆ add() [33/34]

void beast::PropertyStream::add ( unsigned long long  value)
protectedvirtualinherited

Definition at line 541 of file beast_PropertyStream.cpp.

◆ add() [34/34]

void beast::PropertyStream::add ( long double  value)
protectedvirtualinherited

Definition at line 559 of file beast_PropertyStream.cpp.

◆ lexical_add() [1/2]

template<typename Value >
void beast::PropertyStream::lexical_add ( std::string const &  key,
Value  value 
)
protectedinherited

Definition at line 44 of file PropertyStream.h.

◆ lexical_add() [2/2]

template<typename Value >
void beast::PropertyStream::lexical_add ( Value  value)
protectedinherited

Definition at line 100 of file PropertyStream.h.

Member Data Documentation

◆ m_top

Json::Value ripple::JsonPropertyStream::m_top

Definition at line 13 of file JsonPropertyStream.h.

◆ m_stack

std::vector<Json::Value*> ripple::JsonPropertyStream::m_stack

Definition at line 14 of file JsonPropertyStream.h.