rippled
Loading...
Searching...
No Matches
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...

#include <PropertyStream.h>

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 395 of file beast_PropertyStream.cpp.

◆ add() [4/34]

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

Definition at line 404 of file beast_PropertyStream.cpp.

◆ add() [5/34]

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

Definition at line 410 of file beast_PropertyStream.cpp.

◆ add() [6/34]

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

Definition at line 416 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 422 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 428 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 434 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 440 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 446 of file beast_PropertyStream.cpp.

◆ add() [12/34]

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

Definition at line 452 of file beast_PropertyStream.cpp.

◆ add() [13/34]

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

Definition at line 458 of file beast_PropertyStream.cpp.

◆ add() [14/34]

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

Definition at line 464 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 470 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 476 of file beast_PropertyStream.cpp.

◆ add() [17/34]

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

Definition at line 482 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 488 of file beast_PropertyStream.cpp.

◆ add() [21/34]

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

Definition at line 497 of file beast_PropertyStream.cpp.

◆ add() [22/34]

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

Definition at line 503 of file beast_PropertyStream.cpp.

◆ add() [23/34]

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

Definition at line 509 of file beast_PropertyStream.cpp.

◆ add() [24/34]

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

Reimplemented in ripple::JsonPropertyStream.

Definition at line 515 of file beast_PropertyStream.cpp.

◆ add() [25/34]

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

Reimplemented in ripple::JsonPropertyStream.

Definition at line 521 of file beast_PropertyStream.cpp.

◆ add() [26/34]

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

Reimplemented in ripple::JsonPropertyStream.

Definition at line 527 of file beast_PropertyStream.cpp.

◆ add() [27/34]

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

Reimplemented in ripple::JsonPropertyStream.

Definition at line 533 of file beast_PropertyStream.cpp.

◆ add() [28/34]

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

Reimplemented in ripple::JsonPropertyStream.

Definition at line 539 of file beast_PropertyStream.cpp.

◆ add() [29/34]

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

Definition at line 545 of file beast_PropertyStream.cpp.

◆ add() [30/34]

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

Definition at line 551 of file beast_PropertyStream.cpp.

◆ add() [31/34]

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

Definition at line 557 of file beast_PropertyStream.cpp.

◆ add() [32/34]

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

Reimplemented in ripple::JsonPropertyStream.

Definition at line 563 of file beast_PropertyStream.cpp.

◆ add() [33/34]

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

Reimplemented in ripple::JsonPropertyStream.

Definition at line 569 of file beast_PropertyStream.cpp.

◆ add() [34/34]

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

Definition at line 575 of file beast_PropertyStream.cpp.