#include <option.h>
Public Member Functions | |
string | desc () const |
value_t | handler (call_scope_t &args) |
virtual void | handler_thunk (const optional< string > &) |
virtual void | handler_thunk (const optional< string > &, const string &) |
void | off () |
void | on (const char *whence) |
void | on (const char *whence, const string &str) |
void | on (const optional< string > &whence) |
void | on (const optional< string > &whence, const string &str) |
operator bool () const | |
virtual value_t | operator() (call_scope_t &args) |
option_t (const char *_name, const char _ch='\0') | |
option_t (const option_t &other) | |
void | report (std::ostream &out) const |
string | str () const |
virtual | ~option_t () |
Public Attributes | |
T * | parent |
string | value |
bool | wants_arg |
Protected Member Functions | |
option_t & | operator= (const option_t &) |
Protected Attributes | |
const char | ch |
bool | handled |
const char * | name |
string::size_type | name_len |
optional< string > | source |
|
inline |
Definition at line 71 of file option.h.
References ch, DEBUG, handled, name, name_len, option_t(), parent, TRACE_CTOR, value, and wants_arg.
Referenced by operator=(), option_t(), option_t(), and ~option_t().
|
inline |
|
inlinevirtual |
Definition at line 90 of file option.h.
References option_t(), and TRACE_DTOR.
|
inline |
|
inline |
Definition at line 171 of file option.h.
References desc(), ledger::call_scope_t::get(), on(), ledger::call_scope_t::size(), throw_, and wants_arg.
Referenced by operator()().
|
inlinevirtual |
Reimplemented in ledger::global_scope_t::helpoption_t, ledger::global_scope_t::versionoption_t, ledger::report_t::actualoption_t, ledger::report_t::add_budgetoption_t, ledger::report_t::average_lot_pricesoption_t, ledger::report_t::averageoption_t, ledger::report_t::basisoption_t, ledger::report_t::budgetoption_t, ledger::report_t::clearedoption_t, ledger::report_t::collapse_if_zerooption_t, ledger::report_t::collapseoption_t, ledger::report_t::currentoption_t, ledger::report_t::dailyoption_t, ledger::report_t::dcoption_t, ledger::report_t::deviationoption_t, ledger::report_t::gainoption_t, ledger::report_t::historicaloption_t, ledger::report_t::invertoption_t, ledger::report_t::marketoption_t, ledger::report_t::monthlyoption_t, ledger::report_t::no_coloroption_t, ledger::report_t::no_pageroption_t, ledger::report_t::no_revaluedoption_t, ledger::report_t::pendingoption_t, ledger::report_t::percentoption_t, ledger::report_t::priceoption_t, ledger::report_t::quantityoption_t, ledger::report_t::quarterlyoption_t, ledger::report_t::realoption_t, ledger::report_t::related_alloption_t, ledger::report_t::time_reportoption_t, ledger::report_t::unbudgetedoption_t, ledger::report_t::unclearedoption_t, ledger::report_t::unroundoption_t, ledger::report_t::weeklyoption_t, ledger::report_t::wideoption_t, ledger::report_t::yearlyoption_t, ledger::session_t::decimal_commaoption_t, and ledger::session_t::time_colonoption_t.
Definition at line 168 of file option.h.
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 140 of file option.h.
References handled, handler_thunk(), and source.
|
inline |
|
inline |
|
inlinevirtual |
Definition at line 193 of file option.h.
References ledger::call_scope_t::empty(), handled, handler(), ledger::call_scope_t::push_front(), ledger::string_value(), value, and wants_arg.
|
protected |
|
inline |
|
inline |
|
protected |
Definition at line 60 of file option.h.
Referenced by desc(), option_t(), and option_t().
|
protected |
Definition at line 61 of file option.h.
Referenced by off(), on(), on(), operator bool(), operator()(), option_t(), option_t(), report(), and str().
|
protected |
Definition at line 58 of file option.h.
Referenced by desc(), option_t(), and option_t().
|
protected |
Definition at line 59 of file option.h.
Referenced by option_t(), and option_t().
T* ledger::option_t< T >::parent |
Definition at line 67 of file option.h.
Referenced by option_t(), and option_t().
|
protected |
string ledger::option_t< T >::value |
Definition at line 68 of file option.h.
Referenced by off(), on(), operator()(), option_t(), option_t(), report(), and str().
bool ledger::option_t< T >::wants_arg |
Definition at line 69 of file option.h.
Referenced by handler(), operator()(), option_t(), option_t(), and report().