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 14 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 xrpl::JsonPropertyStream.

◆ map_begin() [2/2]

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

Implemented in xrpl::JsonPropertyStream.

◆ map_end()

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

Implemented in xrpl::JsonPropertyStream.

◆ add() [1/34]

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

Implemented in xrpl::JsonPropertyStream.

◆ add() [2/34]

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

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

◆ add() [3/34]

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

Definition at line 368 of file beast_PropertyStream.cpp.

◆ add() [4/34]

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

Definition at line 377 of file beast_PropertyStream.cpp.

◆ add() [5/34]

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

Definition at line 383 of file beast_PropertyStream.cpp.

◆ add() [6/34]

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

Definition at line 389 of file beast_PropertyStream.cpp.

◆ add() [7/34]

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

Reimplemented in xrpl::JsonPropertyStream.

Definition at line 395 of file beast_PropertyStream.cpp.

◆ add() [8/34]

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

Reimplemented in xrpl::JsonPropertyStream.

Definition at line 401 of file beast_PropertyStream.cpp.

◆ add() [9/34]

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

Reimplemented in xrpl::JsonPropertyStream.

Definition at line 407 of file beast_PropertyStream.cpp.

◆ add() [10/34]

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

Reimplemented in xrpl::JsonPropertyStream.

Definition at line 413 of file beast_PropertyStream.cpp.

◆ add() [11/34]

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

Reimplemented in xrpl::JsonPropertyStream.

Definition at line 419 of file beast_PropertyStream.cpp.

◆ add() [12/34]

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

Definition at line 425 of file beast_PropertyStream.cpp.

◆ add() [13/34]

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

Definition at line 431 of file beast_PropertyStream.cpp.

◆ add() [14/34]

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

Definition at line 437 of file beast_PropertyStream.cpp.

◆ add() [15/34]

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

Reimplemented in xrpl::JsonPropertyStream.

Definition at line 443 of file beast_PropertyStream.cpp.

◆ add() [16/34]

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

Reimplemented in xrpl::JsonPropertyStream.

Definition at line 449 of file beast_PropertyStream.cpp.

◆ add() [17/34]

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

Definition at line 455 of file beast_PropertyStream.cpp.

◆ array_begin() [1/2]

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

Implemented in xrpl::JsonPropertyStream.

◆ array_begin() [2/2]

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

Implemented in xrpl::JsonPropertyStream.

◆ array_end()

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

Implemented in xrpl::JsonPropertyStream.

◆ add() [18/34]

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

Implemented in xrpl::JsonPropertyStream.

◆ add() [19/34]

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

Definition at line 92 of file PropertyStream.h.

◆ lexical_add() [2/2]

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

Definition at line 99 of file PropertyStream.h.

◆ add() [20/34]

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

Definition at line 461 of file beast_PropertyStream.cpp.

◆ add() [21/34]

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

Definition at line 470 of file beast_PropertyStream.cpp.

◆ add() [22/34]

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

Definition at line 476 of file beast_PropertyStream.cpp.

◆ add() [23/34]

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

Definition at line 482 of file beast_PropertyStream.cpp.

◆ add() [24/34]

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

Reimplemented in xrpl::JsonPropertyStream.

Definition at line 488 of file beast_PropertyStream.cpp.

◆ add() [25/34]

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

Reimplemented in xrpl::JsonPropertyStream.

Definition at line 494 of file beast_PropertyStream.cpp.

◆ add() [26/34]

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

Reimplemented in xrpl::JsonPropertyStream.

Definition at line 500 of file beast_PropertyStream.cpp.

◆ add() [27/34]

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

Reimplemented in xrpl::JsonPropertyStream.

Definition at line 506 of file beast_PropertyStream.cpp.

◆ add() [28/34]

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

Reimplemented in xrpl::JsonPropertyStream.

Definition at line 512 of file beast_PropertyStream.cpp.

◆ add() [29/34]

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

Definition at line 518 of file beast_PropertyStream.cpp.

◆ add() [30/34]

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

Definition at line 524 of file beast_PropertyStream.cpp.

◆ add() [31/34]

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

Definition at line 530 of file beast_PropertyStream.cpp.

◆ add() [32/34]

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

Reimplemented in xrpl::JsonPropertyStream.

Definition at line 536 of file beast_PropertyStream.cpp.

◆ add() [33/34]

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

Reimplemented in xrpl::JsonPropertyStream.

Definition at line 542 of file beast_PropertyStream.cpp.

◆ add() [34/34]

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

Definition at line 548 of file beast_PropertyStream.cpp.