rippled
Classes | Public Member Functions | Protected Member Functions | List of all members
beast::PropertyStream Class Referenceabstract

Abstract stream with RAII containers that produce a property tree. More...

Inheritance diagram for beast::PropertyStream:
Inheritance graph
[legend]

Classes

class  Item
 
class  Map
 
class  Proxy
 
class  Set
 
class  Source
 Subclasses can be called to write to a stream and have children. More...
 

Public Member Functions

 PropertyStream ()=default
 
virtual ~PropertyStream ()=default
 

Protected Member Functions

virtual void map_begin ()=0
 
virtual void map_begin (std::string const &key)=0
 
virtual void map_end ()=0
 
virtual void add (std::string const &key, std::string const &value)=0
 
void add (std::string const &key, char const *value)
 
template<typename Value >
void lexical_add (std::string const &key, Value 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, short value)
 
virtual void add (std::string const &key, unsigned short value)
 
virtual void add (std::string const &key, int value)
 
virtual void add (std::string const &key, unsigned int value)
 
virtual void add (std::string const &key, long 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, float value)
 
virtual void add (std::string const &key, double value)
 
virtual void add (std::string const &key, long double value)
 
virtual void array_begin ()=0
 
virtual void array_begin (std::string const &key)=0
 
virtual void array_end ()=0
 
virtual void add (std::string const &value)=0
 
void add (char const *value)
 
template<typename Value >
void lexical_add (Value 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 (short value)
 
virtual void add (unsigned short value)
 
virtual void add (int value)
 
virtual void add (unsigned int value)
 
virtual void add (long value)
 
virtual void add (unsigned long value)
 
virtual void add (long long value)
 
virtual void add (unsigned long long value)
 
virtual void add (float value)
 
virtual void add (double value)
 
virtual void add (long double value)
 

Detailed Description

Abstract stream with RAII containers that produce a property tree.

Definition at line 36 of file PropertyStream.h.

Constructor & Destructor Documentation

◆ PropertyStream()

beast::PropertyStream::PropertyStream ( )
default

◆ ~PropertyStream()

virtual beast::PropertyStream::~PropertyStream ( )
virtualdefault

Member Function Documentation

◆ map_begin() [1/2]

virtual void beast::PropertyStream::map_begin ( )
protectedpure virtual

Implemented in ripple::JsonPropertyStream.

◆ map_begin() [2/2]

virtual void beast::PropertyStream::map_begin ( std::string const &  key)
protectedpure virtual

Implemented in ripple::JsonPropertyStream.

◆ map_end()

virtual void beast::PropertyStream::map_end ( )
protectedpure virtual

Implemented in ripple::JsonPropertyStream.

◆ add() [1/34]

virtual void beast::PropertyStream::add ( std::string const &  key,
std::string const &  value 
)
protectedpure virtual

Implemented in ripple::JsonPropertyStream.

◆ add() [2/34]

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

Definition at line 58 of file PropertyStream.h.

◆ lexical_add() [1/2]

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

Definition at line 65 of file PropertyStream.h.

◆ add() [3/34]

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

Definition at line 391 of file beast_PropertyStream.cpp.

◆ add() [4/34]

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

Definition at line 400 of file beast_PropertyStream.cpp.

◆ add() [5/34]

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

Definition at line 406 of file beast_PropertyStream.cpp.

◆ add() [6/34]

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

Definition at line 412 of file beast_PropertyStream.cpp.

◆ add() [7/34]

void beast::PropertyStream::add ( std::string const &  key,
short  value 
)
protectedvirtual

Reimplemented in ripple::JsonPropertyStream.

Definition at line 418 of file beast_PropertyStream.cpp.

◆ add() [8/34]

void beast::PropertyStream::add ( std::string const &  key,
unsigned short  value 
)
protectedvirtual

Reimplemented in ripple::JsonPropertyStream.

Definition at line 424 of file beast_PropertyStream.cpp.

◆ add() [9/34]

void beast::PropertyStream::add ( std::string const &  key,
int  value 
)
protectedvirtual

Reimplemented in ripple::JsonPropertyStream.

Definition at line 430 of file beast_PropertyStream.cpp.

◆ add() [10/34]

void beast::PropertyStream::add ( std::string const &  key,
unsigned int  value 
)
protectedvirtual

Reimplemented in ripple::JsonPropertyStream.

Definition at line 436 of file beast_PropertyStream.cpp.

◆ add() [11/34]

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

Reimplemented in ripple::JsonPropertyStream.

Definition at line 442 of file beast_PropertyStream.cpp.

◆ add() [12/34]

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

Definition at line 448 of file beast_PropertyStream.cpp.

◆ add() [13/34]

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

Definition at line 454 of file beast_PropertyStream.cpp.

◆ add() [14/34]

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

Definition at line 460 of file beast_PropertyStream.cpp.

◆ add() [15/34]

void beast::PropertyStream::add ( std::string const &  key,
float  value 
)
protectedvirtual

Reimplemented in ripple::JsonPropertyStream.

Definition at line 466 of file beast_PropertyStream.cpp.

◆ add() [16/34]

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

Reimplemented in ripple::JsonPropertyStream.

Definition at line 472 of file beast_PropertyStream.cpp.

◆ add() [17/34]

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

Definition at line 478 of file beast_PropertyStream.cpp.

◆ array_begin() [1/2]

virtual void beast::PropertyStream::array_begin ( )
protectedpure virtual

Implemented in ripple::JsonPropertyStream.

◆ array_begin() [2/2]

virtual void beast::PropertyStream::array_begin ( std::string const &  key)
protectedpure virtual

Implemented in ripple::JsonPropertyStream.

◆ array_end()

virtual void beast::PropertyStream::array_end ( )
protectedpure virtual

Implemented in ripple::JsonPropertyStream.

◆ add() [18/34]

virtual void beast::PropertyStream::add ( std::string const &  value)
protectedpure virtual

Implemented in ripple::JsonPropertyStream.

◆ add() [19/34]

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

Definition at line 114 of file PropertyStream.h.

◆ lexical_add() [2/2]

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

Definition at line 121 of file PropertyStream.h.

◆ add() [20/34]

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

Definition at line 484 of file beast_PropertyStream.cpp.

◆ add() [21/34]

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

Definition at line 493 of file beast_PropertyStream.cpp.

◆ add() [22/34]

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

Definition at line 499 of file beast_PropertyStream.cpp.

◆ add() [23/34]

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

Definition at line 505 of file beast_PropertyStream.cpp.

◆ add() [24/34]

void beast::PropertyStream::add ( short  value)
protectedvirtual

Reimplemented in ripple::JsonPropertyStream.

Definition at line 511 of file beast_PropertyStream.cpp.

◆ add() [25/34]

void beast::PropertyStream::add ( unsigned short  value)
protectedvirtual

Reimplemented in ripple::JsonPropertyStream.

Definition at line 517 of file beast_PropertyStream.cpp.

◆ add() [26/34]

void beast::PropertyStream::add ( int  value)
protectedvirtual

Reimplemented in ripple::JsonPropertyStream.

Definition at line 523 of file beast_PropertyStream.cpp.

◆ add() [27/34]

void beast::PropertyStream::add ( unsigned int  value)
protectedvirtual

Reimplemented in ripple::JsonPropertyStream.

Definition at line 529 of file beast_PropertyStream.cpp.

◆ add() [28/34]

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

Reimplemented in ripple::JsonPropertyStream.

Definition at line 535 of file beast_PropertyStream.cpp.

◆ add() [29/34]

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

Definition at line 541 of file beast_PropertyStream.cpp.

◆ add() [30/34]

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

Definition at line 547 of file beast_PropertyStream.cpp.

◆ add() [31/34]

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

Definition at line 553 of file beast_PropertyStream.cpp.

◆ add() [32/34]

void beast::PropertyStream::add ( float  value)
protectedvirtual

Reimplemented in ripple::JsonPropertyStream.

Definition at line 559 of file beast_PropertyStream.cpp.

◆ add() [33/34]

void beast::PropertyStream::add ( double  value)
protectedvirtual

Reimplemented in ripple::JsonPropertyStream.

Definition at line 565 of file beast_PropertyStream.cpp.

◆ add() [34/34]

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

Definition at line 571 of file beast_PropertyStream.cpp.