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

#include <output.h>

+ Inheritance diagram for ledger::format_posts:
+ Collaboration diagram for ledger::format_posts:

Public Member Functions

virtual void clear ()
 
virtual void flush ()
 
 format_posts (report_t &_report, const string &format, const optional< string > &_prepend_format=none, std::size_t _prepend_width=0)
 
virtual void operator() (post_t &post)
 
virtual void title (const string &str)
 
virtual ~format_posts ()
 

Protected Attributes

format_t between_format
 
format_t first_line_format
 
bool first_report_title
 
shared_ptr< item_handlerhandler
 
post_tlast_post
 
xact_tlast_xact
 
format_t next_lines_format
 
format_t prepend_format
 
std::size_t prepend_width
 
report_treport
 
string report_title
 

Detailed Description

Definition at line 56 of file output.h.

Constructor & Destructor Documentation

◆ format_posts()

ledger::format_posts::format_posts ( report_t & _report,
const string & format,
const optional< string > & _prepend_format = none,
std::size_t _prepend_width = 0 )

◆ ~format_posts()

virtual ledger::format_posts::~format_posts ( )
inlinevirtual

Definition at line 74 of file output.h.

References TRACE_DTOR.

Member Function Documentation

◆ clear()

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

Reimplemented from ledger::item_handler< post_t >.

Definition at line 85 of file output.h.

References ledger::item_handler< T >::clear(), ledger::downcast(), last_post, last_xact, and report_title.

+ Here is the call graph for this function:

◆ flush()

virtual void ledger::format_posts::flush ( )
virtual

Reimplemented from ledger::item_handler< post_t >.

◆ operator()()

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

Reimplemented from ledger::item_handler< post_t >.

◆ title()

virtual void ledger::format_posts::title ( const string & str)
inlinevirtual

Reimplemented from ledger::item_handler< post_t >.

Definition at line 78 of file output.h.

References report_title.

Member Data Documentation

◆ between_format

format_t ledger::format_posts::between_format
protected

Definition at line 62 of file output.h.

◆ first_line_format

format_t ledger::format_posts::first_line_format
protected

Definition at line 60 of file output.h.

◆ first_report_title

bool ledger::format_posts::first_report_title
protected

Definition at line 67 of file output.h.

◆ handler

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

Definition at line 55 of file chain.h.

◆ last_post

post_t* ledger::format_posts::last_post
protected

Definition at line 66 of file output.h.

Referenced by clear().

◆ last_xact

xact_t* ledger::format_posts::last_xact
protected

Definition at line 65 of file output.h.

Referenced by clear().

◆ next_lines_format

format_t ledger::format_posts::next_lines_format
protected

Definition at line 61 of file output.h.

◆ prepend_format

format_t ledger::format_posts::prepend_format
protected

Definition at line 63 of file output.h.

◆ prepend_width

std::size_t ledger::format_posts::prepend_width
protected

Definition at line 64 of file output.h.

◆ report

report_t& ledger::format_posts::report
protected

Definition at line 59 of file output.h.

◆ report_title

string ledger::format_posts::report_title
protected

Definition at line 68 of file output.h.

Referenced by clear(), and title().


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