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

#include <context.h>

+ Collaboration diagram for ledger::parse_context_t:

Public Member Functions

string location () const
 
 parse_context_t (const parse_context_t &context)
 
 parse_context_t (const path &cwd)
 
 parse_context_t (shared_ptr< std::istream > _stream, const path &cwd)
 
void warning (const boost::format &what) const
 
void warning (const string &what) const
 

Public Attributes

std::size_t count
 
std::istream::pos_type curr_pos
 
path current_directory
 
std::size_t errors
 
journal_tjournal
 
std::string last
 
std::istream::pos_type line_beg_pos
 
char linebuf [MAX_LINE+1]
 
std::size_t linenum
 
account_tmaster
 
path pathname
 
scope_tscope
 
std::size_t sequence
 
shared_ptr< std::istream > stream
 

Static Public Attributes

static const std::size_t MAX_LINE = 4096
 

Detailed Description

Definition at line 57 of file context.h.

Constructor & Destructor Documentation

◆ parse_context_t() [1/3]

ledger::parse_context_t::parse_context_t ( const path & cwd)
inlineexplicit

Definition at line 78 of file context.h.

◆ parse_context_t() [2/3]

ledger::parse_context_t::parse_context_t ( shared_ptr< std::istream > _stream,
const path & cwd )
inlineexplicit

Definition at line 82 of file context.h.

◆ parse_context_t() [3/3]

ledger::parse_context_t::parse_context_t ( const parse_context_t & context)
inline

Definition at line 87 of file context.h.

References linebuf, and MAX_LINE.

Member Function Documentation

◆ location()

string ledger::parse_context_t::location ( ) const
inline

Definition at line 103 of file context.h.

References ledger::file_context(), linenum, and pathname.

Referenced by warning(), and warning().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ warning() [1/2]

void ledger::parse_context_t::warning ( const boost::format & what) const
inline

Definition at line 110 of file context.h.

References location(), and ledger::warning_func().

+ Here is the call graph for this function:

◆ warning() [2/2]

void ledger::parse_context_t::warning ( const string & what) const
inline

Definition at line 107 of file context.h.

References location(), and ledger::warning_func().

+ Here is the call graph for this function:

Member Data Documentation

◆ count

std::size_t ledger::parse_context_t::count

Definition at line 74 of file context.h.

◆ curr_pos

std::istream::pos_type ledger::parse_context_t::curr_pos

Definition at line 71 of file context.h.

◆ current_directory

path ledger::parse_context_t::current_directory

Definition at line 65 of file context.h.

◆ errors

std::size_t ledger::parse_context_t::errors

Definition at line 73 of file context.h.

◆ journal

journal_t* ledger::parse_context_t::journal

Definition at line 66 of file context.h.

◆ last

std::string ledger::parse_context_t::last

Definition at line 76 of file context.h.

◆ line_beg_pos

std::istream::pos_type ledger::parse_context_t::line_beg_pos

Definition at line 70 of file context.h.

◆ linebuf

char ledger::parse_context_t::linebuf[MAX_LINE+1]

Definition at line 69 of file context.h.

Referenced by ledger::csv_reader::get_last_line(), and parse_context_t().

◆ linenum

std::size_t ledger::parse_context_t::linenum

Definition at line 72 of file context.h.

Referenced by ledger::csv_reader::get_linenum(), and location().

◆ master

account_t* ledger::parse_context_t::master

Definition at line 67 of file context.h.

◆ MAX_LINE

const std::size_t ledger::parse_context_t::MAX_LINE = 4096
static

Definition at line 60 of file context.h.

Referenced by parse_context_t().

◆ pathname

path ledger::parse_context_t::pathname

Definition at line 64 of file context.h.

Referenced by ledger::csv_reader::get_pathname(), location(), and ledger::open_for_reading().

◆ scope

scope_t* ledger::parse_context_t::scope

Definition at line 68 of file context.h.

◆ sequence

std::size_t ledger::parse_context_t::sequence

Definition at line 75 of file context.h.

◆ stream

shared_ptr<std::istream> ledger::parse_context_t::stream

Definition at line 62 of file context.h.

Referenced by ledger::csv_reader::csv_reader().


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