#include <session.h>
Classes | |
| struct | check_payeesoption_t |
| Option handlers. More... | |
| struct | day_breakoption_t |
| struct | decimal_commaoption_t |
| struct | downloadoption_t |
| struct | explicitoption_t |
| struct | file_option_t |
| struct | hashes_option_t |
| struct | input_date_format_option_t |
| struct | master_account_option_t |
| struct | no_aliasesoption_t |
| struct | pedanticoption_t |
| struct | permissiveoption_t |
| struct | price_db_option_t |
| struct | price_exp_option_t |
| struct | recursive_aliasesoption_t |
| struct | strictoption_t |
| struct | time_colonoption_t |
| struct | value_expr_option_t |
Static Public Attributes | |
| static scope_t * | default_scope |
| static empty_scope_t * | empty_scope |
Friends | |
| void | set_session_context (session_t *session) |
| Set the current session context, transferring all static globals to point at the data structures related to this session. | |
|
explicit |
|
inlinevirtual |
Definition at line 76 of file session.h.
References parsing_context, session_t(), and TRACE_DTOR.
| void ledger::session_t::close_journal_files | ( | ) |
|
virtualinherited |
Reimplemented from ledger::child_scope_t.
|
inlinevirtual |
Reimplemented from ledger::symbol_scope_t.
| value_t ledger::session_t::fn_account | ( | call_scope_t & | scope | ) |
| value_t ledger::session_t::fn_int | ( | call_scope_t & | scope | ) |
| value_t ledger::session_t::fn_lot_date | ( | call_scope_t & | scope | ) |
| value_t ledger::session_t::fn_lot_price | ( | call_scope_t & | scope | ) |
| value_t ledger::session_t::fn_lot_tag | ( | call_scope_t & | scope | ) |
| value_t ledger::session_t::fn_max | ( | call_scope_t & | scope | ) |
| value_t ledger::session_t::fn_min | ( | call_scope_t & | scope | ) |
| value_t ledger::session_t::fn_str | ( | call_scope_t & | scope | ) |
| journal_t * ledger::session_t::get_journal | ( | ) |
|
virtual |
Reimplemented from ledger::symbol_scope_t.
| std::size_t ledger::session_t::read_data | ( | const string & | master_account = "" | ) |
| journal_t * ledger::session_t::read_journal_files | ( | ) |
|
inline |
|
inline |
Definition at line 85 of file session.h.
References flush_on_next_data_file.
|
inlinevirtualinherited |
Reimplemented in ledger::context_scope_t.
Definition at line 109 of file scope.h.
References ledger::value_t::VOID.
|
inlinevirtualinherited |
Reimplemented in ledger::context_scope_t.
|
friend |
Set the current session context, transferring all static globals to point at the data structures related to this session.
Although Ledger itself is not thread-safe, by locking, switching session context, then unlocking after an operation is done, multiple threads can sequentially make use of the library. Thus, a session_t maintains all of the information relating to a single usage of the Ledger library.
References session_t().
| ledger::session_t::check_payeesoption_t ledger::session_t::check_payeeshandler |
| ledger::session_t::day_breakoption_t ledger::session_t::day_breakhandler |
| ledger::session_t::decimal_commaoption_t ledger::session_t::decimal_commahandler |
|
staticinherited |
Definition at line 92 of file scope.h.
Referenced by ledger::global_scope_t::pop_report(), and ledger::global_scope_t::push_report().
| ledger::session_t::downloadoption_t ledger::session_t::downloadhandler |
|
staticinherited |
| ledger::session_t::explicitoption_t ledger::session_t::explicithandler |
| ledger::session_t::file_option_t ledger::session_t::file_handler |
| bool ledger::session_t::flush_on_next_data_file |
Definition at line 69 of file session.h.
Referenced by set_flush_on_next_data_file().
| ledger::session_t::hashes_option_t ledger::session_t::hashes_handler |
| ledger::session_t::input_date_format_option_t ledger::session_t::input_date_format_handler |
| unique_ptr<journal_t> ledger::session_t::journal |
| ledger::session_t::master_account_option_t ledger::session_t::master_account_handler |
| ledger::session_t::no_aliasesoption_t ledger::session_t::no_aliaseshandler |
|
inherited |
Definition at line 138 of file scope.h.
Referenced by child_scope_t(), child_scope_t(), ledger::bind_scope_t::define(), define(), ledger::context_scope_t::description(), ledger::symbol_scope_t::description(), ledger::value_scope_t::description(), ledger::find_scope(), and lookup().
| parse_context_stack_t ledger::session_t::parsing_context |
Definition at line 72 of file session.h.
Referenced by ~session_t().
| ledger::session_t::pedanticoption_t ledger::session_t::pedantichandler |
| ledger::session_t::permissiveoption_t ledger::session_t::permissivehandler |
| ledger::session_t::price_db_option_t ledger::session_t::price_db_handler |
| ledger::session_t::price_exp_option_t ledger::session_t::price_exp_handler |
| ledger::session_t::recursive_aliasesoption_t ledger::session_t::recursive_aliaseshandler |
| ledger::session_t::strictoption_t ledger::session_t::stricthandler |
| ledger::session_t::time_colonoption_t ledger::session_t::time_colonhandler |
| ledger::session_t::value_expr_option_t ledger::session_t::value_expr_handler |