xrpld
Loading...
Searching...
No Matches
beast::PropertyStream Class Referenceabstract

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

#include <PropertyStream.h>

Inheritance diagram for beast::PropertyStream:

Classes

class  Item
class  Proxy
class  Map
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 mapBegin ()=0
virtual void mapBegin (std::string const &key)=0
virtual void mapEnd ()=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 lexicalAdd (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 arrayBegin ()=0
virtual void arrayBegin (std::string const &key)=0
virtual void arrayEnd ()=0
virtual void add (std::string const &value)=0
void add (char const *value)
template<typename Value>
void lexicalAdd (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

◆ mapBegin() [1/2]

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

Implemented in xrpl::JsonPropertyStream.

◆ mapBegin() [2/2]

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

Implemented in xrpl::JsonPropertyStream.

◆ mapEnd()

virtual void beast::PropertyStream::mapEnd ( )
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.

◆ lexicalAdd() [1/2]

template<typename Value>
void beast::PropertyStream::lexicalAdd ( 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 375 of file beast_PropertyStream.cpp.

◆ add() [4/34]

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

Definition at line 388 of file beast_PropertyStream.cpp.

◆ add() [5/34]

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

Definition at line 394 of file beast_PropertyStream.cpp.

◆ add() [6/34]

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

Definition at line 400 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 406 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 412 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 418 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 424 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 430 of file beast_PropertyStream.cpp.

◆ add() [12/34]

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

Definition at line 436 of file beast_PropertyStream.cpp.

◆ add() [13/34]

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

Definition at line 442 of file beast_PropertyStream.cpp.

◆ add() [14/34]

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

Definition at line 448 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 454 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 460 of file beast_PropertyStream.cpp.

◆ add() [17/34]

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

Definition at line 466 of file beast_PropertyStream.cpp.

◆ arrayBegin() [1/2]

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

Implemented in xrpl::JsonPropertyStream.

◆ arrayBegin() [2/2]

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

Implemented in xrpl::JsonPropertyStream.

◆ arrayEnd()

virtual void beast::PropertyStream::arrayEnd ( )
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.

◆ lexicalAdd() [2/2]

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

Definition at line 99 of file PropertyStream.h.

◆ add() [20/34]

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

Definition at line 472 of file beast_PropertyStream.cpp.

◆ add() [21/34]

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

Definition at line 485 of file beast_PropertyStream.cpp.

◆ add() [22/34]

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

Definition at line 491 of file beast_PropertyStream.cpp.

◆ add() [23/34]

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

Definition at line 497 of file beast_PropertyStream.cpp.

◆ add() [24/34]

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

Reimplemented in xrpl::JsonPropertyStream.

Definition at line 503 of file beast_PropertyStream.cpp.

◆ add() [25/34]

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

Reimplemented in xrpl::JsonPropertyStream.

Definition at line 509 of file beast_PropertyStream.cpp.

◆ add() [26/34]

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

Reimplemented in xrpl::JsonPropertyStream.

Definition at line 515 of file beast_PropertyStream.cpp.

◆ add() [27/34]

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

Reimplemented in xrpl::JsonPropertyStream.

Definition at line 521 of file beast_PropertyStream.cpp.

◆ add() [28/34]

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

Reimplemented in xrpl::JsonPropertyStream.

Definition at line 527 of file beast_PropertyStream.cpp.

◆ add() [29/34]

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

Definition at line 533 of file beast_PropertyStream.cpp.

◆ add() [30/34]

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

Definition at line 539 of file beast_PropertyStream.cpp.

◆ add() [31/34]

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

Definition at line 545 of file beast_PropertyStream.cpp.

◆ add() [32/34]

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

Reimplemented in xrpl::JsonPropertyStream.

Definition at line 551 of file beast_PropertyStream.cpp.

◆ add() [33/34]

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

Reimplemented in xrpl::JsonPropertyStream.

Definition at line 557 of file beast_PropertyStream.cpp.

◆ add() [34/34]

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

Definition at line 563 of file beast_PropertyStream.cpp.