rippled
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...

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 29 of file JsonPropertyStream.h.

Constructor & Destructor Documentation

◆ JsonPropertyStream()

ripple::JsonPropertyStream::JsonPropertyStream ( )

Definition at line 25 of file JsonPropertyStream.cpp.

Member Function Documentation

◆ top()

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

Definition at line 32 of file JsonPropertyStream.cpp.

◆ map_begin() [1/2]

void ripple::JsonPropertyStream::map_begin ( )
overrideprotectedvirtual

Implements beast::PropertyStream.

Definition at line 38 of file JsonPropertyStream.cpp.

◆ map_begin() [2/2]

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

Implements beast::PropertyStream.

Definition at line 47 of file JsonPropertyStream.cpp.

◆ map_end()

void ripple::JsonPropertyStream::map_end ( )
overrideprotectedvirtual

Implements beast::PropertyStream.

Definition at line 56 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 62 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 68 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 74 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 80 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 86 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 92 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 98 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 104 of file JsonPropertyStream.cpp.

◆ array_begin() [1/2]

void ripple::JsonPropertyStream::array_begin ( )
overrideprotectedvirtual

Implements beast::PropertyStream.

Definition at line 110 of file JsonPropertyStream.cpp.

◆ array_begin() [2/2]

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

Implements beast::PropertyStream.

Definition at line 119 of file JsonPropertyStream.cpp.

◆ array_end()

void ripple::JsonPropertyStream::array_end ( )
overrideprotectedvirtual

Implements beast::PropertyStream.

Definition at line 128 of file JsonPropertyStream.cpp.

◆ add() [9/34]

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

Reimplemented from beast::PropertyStream.

Definition at line 134 of file JsonPropertyStream.cpp.

◆ add() [10/34]

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

Reimplemented from beast::PropertyStream.

Definition at line 140 of file JsonPropertyStream.cpp.

◆ add() [11/34]

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

Reimplemented from beast::PropertyStream.

Definition at line 146 of file JsonPropertyStream.cpp.

◆ add() [12/34]

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

Reimplemented from beast::PropertyStream.

Definition at line 152 of file JsonPropertyStream.cpp.

◆ add() [13/34]

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

Reimplemented from beast::PropertyStream.

Definition at line 158 of file JsonPropertyStream.cpp.

◆ add() [14/34]

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

Reimplemented from beast::PropertyStream.

Definition at line 164 of file JsonPropertyStream.cpp.

◆ add() [15/34]

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

Reimplemented from beast::PropertyStream.

Definition at line 170 of file JsonPropertyStream.cpp.

◆ add() [16/34]

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

Implements beast::PropertyStream.

Definition at line 176 of file JsonPropertyStream.cpp.

◆ add() [17/34]

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

Definition at line 58 of file PropertyStream.h.

◆ add() [18/34]

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

Definition at line 391 of file beast_PropertyStream.cpp.

◆ add() [19/34]

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

Definition at line 400 of file beast_PropertyStream.cpp.

◆ add() [20/34]

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

Definition at line 406 of file beast_PropertyStream.cpp.

◆ add() [21/34]

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

Definition at line 412 of file beast_PropertyStream.cpp.

◆ add() [22/34]

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

Definition at line 448 of file beast_PropertyStream.cpp.

◆ add() [23/34]

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

Definition at line 454 of file beast_PropertyStream.cpp.

◆ add() [24/34]

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

Definition at line 460 of file beast_PropertyStream.cpp.

◆ add() [25/34]

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

Definition at line 478 of file beast_PropertyStream.cpp.

◆ add() [26/34]

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

Definition at line 114 of file PropertyStream.h.

◆ add() [27/34]

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

Definition at line 484 of file beast_PropertyStream.cpp.

◆ add() [28/34]

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

Definition at line 493 of file beast_PropertyStream.cpp.

◆ add() [29/34]

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

Definition at line 499 of file beast_PropertyStream.cpp.

◆ add() [30/34]

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

Definition at line 505 of file beast_PropertyStream.cpp.

◆ add() [31/34]

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

Definition at line 541 of file beast_PropertyStream.cpp.

◆ add() [32/34]

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

Definition at line 547 of file beast_PropertyStream.cpp.

◆ add() [33/34]

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

Definition at line 553 of file beast_PropertyStream.cpp.

◆ add() [34/34]

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

Definition at line 571 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 65 of file PropertyStream.h.

◆ lexical_add() [2/2]

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

Definition at line 121 of file PropertyStream.h.

Member Data Documentation

◆ m_top

Json::Value ripple::JsonPropertyStream::m_top

Definition at line 32 of file JsonPropertyStream.h.

◆ m_stack

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

Definition at line 33 of file JsonPropertyStream.h.