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

#include <journal.h>

Inherits boost::noncopyable.

+ Collaboration diagram for ledger::journal_t:

Classes

struct  fileinfo_t
 

Public Types

enum  checking_style_t { CHECK_PERMISSIVE , CHECK_NORMAL , CHECK_WARNING , CHECK_ERROR }
 

Public Member Functions

void add_account (account_t *acct)
 
bool add_xact (xact_t *xact)
 
auto_xacts_list::iterator auto_xacts_begin ()
 
auto_xacts_list::iterator auto_xacts_end ()
 
void clear_xdata ()
 
account_texpand_aliases (string name)
 
void extend_xact (xact_base_t *xact)
 
account_tfind_account (const string &name, bool auto_create=true)
 
account_tfind_account_re (const string &regexp)
 
bool has_xdata ()
 
void initialize ()
 
 journal_t ()
 
period_xacts_list::iterator period_xacts_begin ()
 
period_xacts_list::iterator period_xacts_end ()
 
std::size_t read (parse_context_stack_t &context, hash_type_t hash_type)
 
account_tregister_account (const string &name, post_t *post, account_t *master=NULL)
 
void register_commodity (commodity_t &comm, variant< int, xact_t *, post_t * > context)
 
void register_metadata (const string &key, const value_t &value, variant< int, xact_t *, post_t * > context)
 
string register_payee (const string &name)
 
bool remove_account (account_t *acct)
 
bool remove_xact (xact_t *xact)
 
std::list< fileinfo_t >::iterator sources_begin ()
 
std::list< fileinfo_t >::iterator sources_end ()
 
bool valid () const
 
string validate_payee (const string &name_or_alias)
 
xacts_list::iterator xacts_begin ()
 
xacts_list::iterator xacts_end ()
 
 ~journal_t ()
 

Public Attributes

accounts_map account_aliases
 
account_mappings_t account_mappings
 
auto_xacts_list auto_xacts
 
account_tbucket
 
bool check_payees
 
enum ledger::journal_t::checking_style_t checking_style
 
checksum_map_t checksum_map
 
parse_context_tcurrent_context
 
bool day_break
 
std::set< stringknown_payees
 
std::set< stringknown_tags
 
account_tmaster
 
bool no_aliases
 
payee_alias_mappings_t payee_alias_mappings
 
payee_uuid_mappings_t payee_uuid_mappings
 
account_mappings_t payees_for_unknown_accounts
 
period_xacts_list period_xacts
 
bool recursive_aliases
 
std::list< fileinfo_tsources
 
tag_check_exprs_map tag_check_exprs
 
optional< expr_tvalue_expr
 
bool was_loaded
 
xacts_list xacts
 

Detailed Description

Definition at line 74 of file journal.h.

Member Enumeration Documentation

◆ checking_style_t

Enumerator
CHECK_PERMISSIVE 
CHECK_NORMAL 
CHECK_WARNING 
CHECK_ERROR 

Definition at line 125 of file journal.h.

Constructor & Destructor Documentation

◆ journal_t()

ledger::journal_t::journal_t ( )

◆ ~journal_t()

ledger::journal_t::~journal_t ( )

Member Function Documentation

◆ add_account()

void ledger::journal_t::add_account ( account_t * acct)

◆ add_xact()

bool ledger::journal_t::add_xact ( xact_t * xact)

◆ auto_xacts_begin()

auto_xacts_list::iterator ledger::journal_t::auto_xacts_begin ( )
inline

Definition at line 174 of file journal.h.

References auto_xacts.

◆ auto_xacts_end()

auto_xacts_list::iterator ledger::journal_t::auto_xacts_end ( )
inline

Definition at line 177 of file journal.h.

References auto_xacts.

◆ clear_xdata()

void ledger::journal_t::clear_xdata ( )

◆ expand_aliases()

account_t * ledger::journal_t::expand_aliases ( string name)

◆ extend_xact()

void ledger::journal_t::extend_xact ( xact_base_t * xact)

◆ find_account()

account_t * ledger::journal_t::find_account ( const string & name,
bool auto_create = true )

◆ find_account_re()

account_t * ledger::journal_t::find_account_re ( const string & regexp)

◆ has_xdata()

bool ledger::journal_t::has_xdata ( )

◆ initialize()

void ledger::journal_t::initialize ( )

◆ period_xacts_begin()

period_xacts_list::iterator ledger::journal_t::period_xacts_begin ( )
inline

Definition at line 180 of file journal.h.

References period_xacts.

◆ period_xacts_end()

period_xacts_list::iterator ledger::journal_t::period_xacts_end ( )
inline

Definition at line 183 of file journal.h.

References period_xacts.

◆ read()

std::size_t ledger::journal_t::read ( parse_context_stack_t & context,
hash_type_t hash_type )

◆ register_account()

account_t * ledger::journal_t::register_account ( const string & name,
post_t * post,
account_t * master = NULL )

◆ register_commodity()

void ledger::journal_t::register_commodity ( commodity_t & comm,
variant< int, xact_t *, post_t * > context )

◆ register_metadata()

void ledger::journal_t::register_metadata ( const string & key,
const value_t & value,
variant< int, xact_t *, post_t * > context )

◆ register_payee()

string ledger::journal_t::register_payee ( const string & name)

◆ remove_account()

bool ledger::journal_t::remove_account ( account_t * acct)

◆ remove_xact()

bool ledger::journal_t::remove_xact ( xact_t * xact)

◆ sources_begin()

std::list< fileinfo_t >::iterator ledger::journal_t::sources_begin ( )
inline

Definition at line 141 of file journal.h.

References sources.

◆ sources_end()

std::list< fileinfo_t >::iterator ledger::journal_t::sources_end ( )
inline

Definition at line 144 of file journal.h.

References sources.

◆ valid()

bool ledger::journal_t::valid ( ) const

◆ validate_payee()

string ledger::journal_t::validate_payee ( const string & name_or_alias)

◆ xacts_begin()

xacts_list::iterator ledger::journal_t::xacts_begin ( )
inline

Definition at line 168 of file journal.h.

References xacts.

◆ xacts_end()

xacts_list::iterator ledger::journal_t::xacts_end ( )
inline

Definition at line 171 of file journal.h.

References xacts.

Member Data Documentation

◆ account_aliases

accounts_map ledger::journal_t::account_aliases

Definition at line 118 of file journal.h.

◆ account_mappings

account_mappings_t ledger::journal_t::account_mappings

Definition at line 117 of file journal.h.

◆ auto_xacts

auto_xacts_list ledger::journal_t::auto_xacts

Definition at line 105 of file journal.h.

Referenced by auto_xacts_begin(), and auto_xacts_end().

◆ bucket

account_t* ledger::journal_t::bucket

Definition at line 103 of file journal.h.

◆ check_payees

bool ledger::journal_t::check_payees

Definition at line 111 of file journal.h.

◆ checking_style

enum ledger::journal_t::checking_style_t ledger::journal_t::checking_style

◆ checksum_map

checksum_map_t ledger::journal_t::checksum_map

Definition at line 120 of file journal.h.

◆ current_context

parse_context_t* ledger::journal_t::current_context

Definition at line 123 of file journal.h.

◆ day_break

bool ledger::journal_t::day_break

Definition at line 112 of file journal.h.

◆ known_payees

std::set<string> ledger::journal_t::known_payees

Definition at line 108 of file journal.h.

◆ known_tags

std::set<string> ledger::journal_t::known_tags

Definition at line 109 of file journal.h.

◆ master

account_t* ledger::journal_t::master

Definition at line 102 of file journal.h.

◆ no_aliases

bool ledger::journal_t::no_aliases

Definition at line 114 of file journal.h.

◆ payee_alias_mappings

payee_alias_mappings_t ledger::journal_t::payee_alias_mappings

Definition at line 115 of file journal.h.

◆ payee_uuid_mappings

payee_uuid_mappings_t ledger::journal_t::payee_uuid_mappings

Definition at line 116 of file journal.h.

◆ payees_for_unknown_accounts

account_mappings_t ledger::journal_t::payees_for_unknown_accounts

Definition at line 119 of file journal.h.

◆ period_xacts

period_xacts_list ledger::journal_t::period_xacts

Definition at line 106 of file journal.h.

Referenced by period_xacts_begin(), and period_xacts_end().

◆ recursive_aliases

bool ledger::journal_t::recursive_aliases

Definition at line 113 of file journal.h.

◆ sources

std::list<fileinfo_t> ledger::journal_t::sources

Definition at line 107 of file journal.h.

Referenced by sources_begin(), and sources_end().

◆ tag_check_exprs

tag_check_exprs_map ledger::journal_t::tag_check_exprs

Definition at line 121 of file journal.h.

◆ value_expr

optional<expr_t> ledger::journal_t::value_expr

Definition at line 122 of file journal.h.

◆ was_loaded

bool ledger::journal_t::was_loaded

Definition at line 110 of file journal.h.

◆ xacts

xacts_list ledger::journal_t::xacts

Definition at line 104 of file journal.h.

Referenced by xacts_begin(), and xacts_end().


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