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

#include <global.h>

+ Inheritance diagram for ledger::global_scope_t:
+ Collaboration diagram for ledger::global_scope_t:

Classes

struct  args_onlyoption_t
 
struct  debug_option_t
 
struct  helpoption_t
 
struct  init_file_option_t
 
struct  optionsoption_t
 
struct  script_option_t
 
struct  trace_option_t
 
struct  verboseoption_t
 
struct  verify_memoryoption_t
 
struct  verifyoption_t
 
struct  versionoption_t
 

Public Member Functions

virtual void define (const symbol_t::kind_t, const string &, expr_t::ptr_op_t)
 
virtual string description ()
 
void execute_command (strings_list args, bool at_repl)
 
int execute_command_wrapper (strings_list args, bool at_repl)
 
 global_scope_t (char **envp)
 
expr_t::func_t look_for_command (scope_t &scope, const string &verb)
 
expr_t::func_t look_for_precommand (scope_t &scope, const string &verb)
 
virtual expr_t::ptr_op_t lookup (const symbol_t::kind_t kind, const string &name)
 
option_t< global_scope_t > * lookup_option (const char *p)
 
void normalize_session_options ()
 
void parse_init (path init_file)
 
value_t pop_command (call_scope_t &)
 
void pop_report ()
 
charprompt_string ()
 
value_t push_command (call_scope_t &)
 
void push_report ()
 
void quick_close ()
 
strings_list read_command_arguments (scope_t &scope, strings_list args)
 
void read_environment_settings (char *envp[])
 
void read_init ()
 
report_treport ()
 
void report_error (const std::exception &err)
 
void report_options (report_t &report, std::ostream &out)
 
session_tsession ()
 
void show_version_info (std::ostream &out)
 
virtual value_t::type_t type_context () const
 
virtual bool type_required () const
 
void visit_man_page () const
 
 ~global_scope_t ()
 

Public Attributes

ledger::global_scope_t::args_onlyoption_t args_onlyhandler
 
ledger::global_scope_t::debug_option_t debug_handler
 
ledger::global_scope_t::helpoption_t helphandler
 
ledger::global_scope_t::init_file_option_t init_file_handler
 
ledger::global_scope_t::optionsoption_t optionshandler
 
ledger::global_scope_t::script_option_t script_handler
 
ledger::global_scope_t::trace_option_t trace_handler
 
ledger::global_scope_t::verboseoption_t verbosehandler
 
ledger::global_scope_t::verify_memoryoption_t verify_memoryhandler
 
ledger::global_scope_t::verifyoption_t verifyhandler
 
ledger::global_scope_t::versionoption_t versionhandler
 

Static Public Attributes

static scope_tdefault_scope
 

Detailed Description

Definition at line 51 of file global.h.

Constructor & Destructor Documentation

◆ global_scope_t()

ledger::global_scope_t::global_scope_t ( char ** envp)

◆ ~global_scope_t()

ledger::global_scope_t::~global_scope_t ( )

Member Function Documentation

◆ define()

virtual void ledger::scope_t::define ( const symbol_t::kind_t ,
const string & ,
expr_t::ptr_op_t  )
inlinevirtualinherited

Reimplemented in ledger::report_t, ledger::child_scope_t, ledger::bind_scope_t, ledger::symbol_scope_t, and ledger::item_t.

Definition at line 104 of file scope.h.

Referenced by ledger::child_scope_t::define(), and ledger::bind_scope_t::define().

+ Here is the caller graph for this function:

◆ description()

virtual string ledger::global_scope_t::description ( )
inlinevirtual

Implements ledger::scope_t.

Definition at line 66 of file global.h.

References ledger::downcast().

+ Here is the call graph for this function:

◆ execute_command()

void ledger::global_scope_t::execute_command ( strings_list args,
bool at_repl )

◆ execute_command_wrapper()

int ledger::global_scope_t::execute_command_wrapper ( strings_list args,
bool at_repl )
Returns
true if a command was actually executed; otherwise, it probably just resulted in setting some options.

◆ look_for_command()

expr_t::func_t ledger::global_scope_t::look_for_command ( scope_t & scope,
const string & verb )

◆ look_for_precommand()

expr_t::func_t ledger::global_scope_t::look_for_precommand ( scope_t & scope,
const string & verb )

◆ lookup()

virtual expr_t::ptr_op_t ledger::global_scope_t::lookup ( const symbol_t::kind_t kind,
const string & name )
virtual

Implements ledger::scope_t.

◆ lookup_option()

option_t< global_scope_t > * ledger::global_scope_t::lookup_option ( const char * p)

◆ normalize_session_options()

void ledger::global_scope_t::normalize_session_options ( )

◆ parse_init()

void ledger::global_scope_t::parse_init ( path init_file)

◆ pop_command()

value_t ledger::global_scope_t::pop_command ( call_scope_t & )
inline

Definition at line 117 of file global.h.

References pop_report().

+ Here is the call graph for this function:

◆ pop_report()

void ledger::global_scope_t::pop_report ( )
inline

Definition at line 91 of file global.h.

References assert, ledger::scope_t::default_scope, and report().

Referenced by pop_command().

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

◆ prompt_string()

char * ledger::global_scope_t::prompt_string ( )

◆ push_command()

value_t ledger::global_scope_t::push_command ( call_scope_t & )
inline

Definition at line 109 of file global.h.

◆ push_report()

void ledger::global_scope_t::push_report ( )
inline

Definition at line 87 of file global.h.

References ledger::scope_t::default_scope, and report().

+ Here is the call graph for this function:

◆ quick_close()

void ledger::global_scope_t::quick_close ( )
inline

Definition at line 61 of file global.h.

◆ read_command_arguments()

strings_list ledger::global_scope_t::read_command_arguments ( scope_t & scope,
strings_list args )

◆ read_environment_settings()

void ledger::global_scope_t::read_environment_settings ( char * envp[])

◆ read_init()

void ledger::global_scope_t::read_init ( )

◆ report()

report_t & ledger::global_scope_t::report ( )
inline

Definition at line 83 of file global.h.

Referenced by pop_report(), and push_report().

+ Here is the caller graph for this function:

◆ report_error()

void ledger::global_scope_t::report_error ( const std::exception & err)

◆ report_options()

void ledger::global_scope_t::report_options ( report_t & report,
std::ostream & out )

◆ session()

session_t & ledger::global_scope_t::session ( )
inline

Definition at line 80 of file global.h.

◆ show_version_info()

void ledger::global_scope_t::show_version_info ( std::ostream & out)
inline

Definition at line 122 of file global.h.

References ledger::downcast().

+ Here is the call graph for this function:

◆ type_context()

virtual value_t::type_t ledger::scope_t::type_context ( ) const
inlinevirtualinherited

Reimplemented in ledger::context_scope_t.

Definition at line 109 of file scope.h.

References ledger::value_t::VOID.

◆ type_required()

virtual bool ledger::scope_t::type_required ( ) const
inlinevirtualinherited

Reimplemented in ledger::context_scope_t.

Definition at line 112 of file scope.h.

◆ visit_man_page()

void ledger::global_scope_t::visit_man_page ( ) const

Referenced by ledger::global_scope_t::helpoption_t::handler_thunk().

+ Here is the caller graph for this function:

Member Data Documentation

◆ args_onlyhandler

ledger::global_scope_t::args_onlyoption_t ledger::global_scope_t::args_onlyhandler

◆ debug_handler

ledger::global_scope_t::debug_option_t ledger::global_scope_t::debug_handler

◆ default_scope

scope_t* ledger::scope_t::default_scope
staticinherited

Definition at line 92 of file scope.h.

Referenced by pop_report(), and push_report().

◆ helphandler

ledger::global_scope_t::helpoption_t ledger::global_scope_t::helphandler

◆ init_file_handler

ledger::global_scope_t::init_file_option_t ledger::global_scope_t::init_file_handler

◆ optionshandler

ledger::global_scope_t::optionsoption_t ledger::global_scope_t::optionshandler

◆ script_handler

ledger::global_scope_t::script_option_t ledger::global_scope_t::script_handler

◆ trace_handler

ledger::global_scope_t::trace_option_t ledger::global_scope_t::trace_handler

◆ verbosehandler

ledger::global_scope_t::verboseoption_t ledger::global_scope_t::verbosehandler

◆ verify_memoryhandler

ledger::global_scope_t::verify_memoryoption_t ledger::global_scope_t::verify_memoryhandler

◆ verifyhandler

ledger::global_scope_t::verifyoption_t ledger::global_scope_t::verifyhandler

◆ versionhandler

ledger::global_scope_t::versionoption_t ledger::global_scope_t::versionhandler

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