teditor
1.8.0@@fee5e94
Terminal based editor written in C++
|
#include <parser.h>
Public Member Functions | |
Parser (const std::string &f) | |
void | reload () |
const Transactions & | transactions () const |
const Accounts & | accounts () const |
Accounts | topAccounts (bool sort=true) const |
Computes balances of only the top-level accounts. Top-level account is the account name that preceeds the first ':' in all of the accounts in the ledger. Eg: top-level account of 'Expenses:Medical:Vaccination' is 'Expenses'. More... | |
Accounts | allAccounts (bool sort=true) const |
Computes balances of the top-level accounts as well as all accounts. More... | |
void | minmaxDates (TimePoint &min, TimePoint &max) const |
Poor man's ledger parser!
teditor::ledger::Parser::Parser | ( | const std::string & | f | ) |
|
inline |
Accounts teditor::ledger::Parser::allAccounts | ( | bool | sort = true | ) | const |
Computes balances of the top-level accounts as well as all accounts.
sort | whether to sort the output before returning |
earliest and latest transaction dates
void teditor::ledger::Parser::reload | ( | ) |
Accounts teditor::ledger::Parser::topAccounts | ( | bool | sort = true | ) | const |
Computes balances of only the top-level accounts. Top-level account is the account name that preceeds the first ':' in all of the accounts in the ledger. Eg: top-level account of 'Expenses:Medical:Vaccination' is 'Expenses'.
sort | whether to sort the output before returning |
|
inline |