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

Constructor & Destructor Documentation

◆ JsonPropertyStream()

ripple::JsonPropertyStream::JsonPropertyStream ( )

Definition at line 27 of file JsonPropertyStream.cpp.

Member Function Documentation

◆ top()

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

Definition at line 34 of file JsonPropertyStream.cpp.

◆ map_begin() [1/2]

void ripple::JsonPropertyStream::map_begin ( )
overrideprotectedvirtual

Implements beast::PropertyStream.

Definition at line 40 of file JsonPropertyStream.cpp.

◆ map_begin() [2/2]

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

Implements beast::PropertyStream.

Definition at line 49 of file JsonPropertyStream.cpp.

◆ map_end()

void ripple::JsonPropertyStream::map_end ( )
overrideprotectedvirtual

Implements beast::PropertyStream.

Definition at line 58 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 64 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 70 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 76 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 82 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 88 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 94 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 100 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 106 of file JsonPropertyStream.cpp.

◆ array_begin() [1/2]

void ripple::JsonPropertyStream::array_begin ( )
overrideprotectedvirtual

Implements beast::PropertyStream.

Definition at line 112 of file JsonPropertyStream.cpp.

◆ array_begin() [2/2]

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

Implements beast::PropertyStream.

Definition at line 121 of file JsonPropertyStream.cpp.

◆ array_end()

void ripple::JsonPropertyStream::array_end ( )
overrideprotectedvirtual

Implements beast::PropertyStream.

Definition at line 130 of file JsonPropertyStream.cpp.

◆ add() [9/34]

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

Reimplemented from beast::PropertyStream.

Definition at line 136 of file JsonPropertyStream.cpp.

◆ add() [10/34]

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

Reimplemented from beast::PropertyStream.

Definition at line 142 of file JsonPropertyStream.cpp.

◆ add() [11/34]

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

Reimplemented from beast::PropertyStream.

Definition at line 148 of file JsonPropertyStream.cpp.

◆ add() [12/34]

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

Reimplemented from beast::PropertyStream.

Definition at line 154 of file JsonPropertyStream.cpp.

◆ add() [13/34]

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

Reimplemented from beast::PropertyStream.

Definition at line 160 of file JsonPropertyStream.cpp.

◆ add() [14/34]

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

Reimplemented from beast::PropertyStream.

Definition at line 166 of file JsonPropertyStream.cpp.

◆ add() [15/34]

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

Reimplemented from beast::PropertyStream.

Definition at line 172 of file JsonPropertyStream.cpp.

◆ add() [16/34]

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

Implements beast::PropertyStream.

Definition at line 178 of file JsonPropertyStream.cpp.

◆ add() [17/34]

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

Definition at line 56 of file PropertyStream.h.

◆ add() [18/34]

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

Definition at line 398 of file beast_PropertyStream.cpp.

◆ add() [19/34]

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

Definition at line 407 of file beast_PropertyStream.cpp.

◆ add() [20/34]

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

Definition at line 413 of file beast_PropertyStream.cpp.

◆ add() [21/34]

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

Definition at line 419 of file beast_PropertyStream.cpp.

◆ add() [22/34]

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

Definition at line 455 of file beast_PropertyStream.cpp.

◆ add() [23/34]

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

Definition at line 461 of file beast_PropertyStream.cpp.

◆ add() [24/34]

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

Definition at line 467 of file beast_PropertyStream.cpp.

◆ add() [25/34]

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

Definition at line 485 of file beast_PropertyStream.cpp.

◆ add() [26/34]

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

Definition at line 112 of file PropertyStream.h.

◆ add() [27/34]

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

Definition at line 491 of file beast_PropertyStream.cpp.

◆ add() [28/34]

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

Definition at line 500 of file beast_PropertyStream.cpp.

◆ add() [29/34]

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

Definition at line 506 of file beast_PropertyStream.cpp.

◆ add() [30/34]

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

Definition at line 512 of file beast_PropertyStream.cpp.

◆ add() [31/34]

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

Definition at line 548 of file beast_PropertyStream.cpp.

◆ add() [32/34]

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

Definition at line 554 of file beast_PropertyStream.cpp.

◆ add() [33/34]

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

Definition at line 560 of file beast_PropertyStream.cpp.

◆ add() [34/34]

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

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

◆ lexical_add() [2/2]

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

Definition at line 119 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.