Loading...
Searching...
No Matches
ledger::format_ptree Class Reference

Brief. More...

#include <ptree.h>

+ Inheritance diagram for ledger::format_ptree:
+ Collaboration diagram for ledger::format_ptree:

Public Types

enum  format_t { FORMAT_XML }
 

Public Member Functions

virtual void clear ()
 
virtual void flush ()
 
 format_ptree (report_t &_report, format_t _format=FORMAT_XML)
 
virtual void operator() (post_t &post)
 
virtual void title (const string &str)
 
virtual ~format_ptree ()
 

Public Attributes

enum ledger::format_ptree::format_t format
 

Protected Types

typedef std::map< string, commodity_t * > commodities_map
 
typedef std::pair< string, commodity_t * > commodities_pair
 

Protected Attributes

commodities_map commodities
 
shared_ptr< item_handlerhandler
 
report_treport
 
std::deque< xact_t * > transactions
 
std::set< xact_t * > transactions_set
 

Detailed Description

Brief.

Long.

Definition at line 60 of file ptree.h.

Member Typedef Documentation

◆ commodities_map

Definition at line 65 of file ptree.h.

◆ commodities_pair

Definition at line 66 of file ptree.h.

Member Enumeration Documentation

◆ format_t

Enumerator
FORMAT_XML 

Definition at line 73 of file ptree.h.

Constructor & Destructor Documentation

◆ format_ptree()

ledger::format_ptree::format_ptree ( report_t & _report,
format_t _format = FORMAT_XML )
inline

Definition at line 77 of file ptree.h.

References TRACE_CTOR.

◆ ~format_ptree()

virtual ledger::format_ptree::~format_ptree ( )
inlinevirtual

Definition at line 81 of file ptree.h.

References TRACE_DTOR.

Member Function Documentation

◆ clear()

virtual void ledger::format_ptree::clear ( )
inlinevirtual

Reimplemented from ledger::item_handler< post_t >.

Definition at line 88 of file ptree.h.

References ledger::item_handler< T >::clear(), commodities, transactions, and transactions_set.

+ Here is the call graph for this function:

◆ flush()

virtual void ledger::format_ptree::flush ( )
virtual

Reimplemented from ledger::item_handler< post_t >.

◆ operator()()

virtual void ledger::format_ptree::operator() ( post_t & post)
virtual

Reimplemented from ledger::item_handler< post_t >.

◆ title()

virtual void ledger::item_handler< post_t >::title ( const string & str)
inlinevirtualinherited

Reimplemented in ledger::print_xacts, and ledger::format_posts.

Definition at line 68 of file chain.h.

Member Data Documentation

◆ commodities

commodities_map ledger::format_ptree::commodities
protected

Definition at line 68 of file ptree.h.

Referenced by clear().

◆ format

enum ledger::format_ptree::format_t ledger::format_ptree::format

◆ handler

shared_ptr<item_handler> ledger::item_handler< post_t >::handler
protectedinherited

Definition at line 55 of file chain.h.

◆ report

report_t& ledger::format_ptree::report
protected

Definition at line 63 of file ptree.h.

◆ transactions

std::deque<xact_t *> ledger::format_ptree::transactions
protected

Definition at line 70 of file ptree.h.

Referenced by clear().

◆ transactions_set

std::set<xact_t *> ledger::format_ptree::transactions_set
protected

Definition at line 69 of file ptree.h.

Referenced by clear().


The documentation for this class was generated from the following file: