#include "octave.h"
Public Member Functions | |
cli_application (const cli_application &)=delete | |
cli_application (const cmdline_options &opts=cmdline_options()) | |
cli_application (int argc, char **argv) | |
~cli_application (void)=default | |
virtual interpreter & | create_interpreter (void) |
virtual void | delete_interpreter (void) |
int | execute (void) |
virtual int | execute_interpreter (void) |
bool | experimental_terminal_widget (void) const |
void | forced_interactive (bool arg) |
virtual void | gui_running (bool) |
virtual bool | gui_running (void) const |
bool | have_eval_option_code (void) const |
bool | have_script_file (void) const |
virtual void | initialize_interpreter (void) |
void | intern_argv (const string_vector &args) |
bool | interpreter_initialized (void) |
bool | is_octave_program (void) const |
cli_application & | operator= (const cli_application &)=delete |
cmdline_options | options (void) const |
void | program_invocation_name (const std::string &nm) |
void | program_name (const std::string &nm) |
void | set_program_names (const std::string &pname) |
int | sys_argc (void) const |
char ** | sys_argv (void) const |
Static Public Member Functions | |
static application * | app (void) |
static string_vector | argv (void) |
static bool | forced_interactive (void) |
static bool | is_gui_running (void) |
static std::string | program_invocation_name (void) |
static std::string | program_name (void) |
Protected Attributes | |
string_vector | m_argv |
bool | m_have_eval_option_code = false |
bool | m_have_script_file = false |
std::unique_ptr< interpreter > | m_interpreter |
bool | m_is_octave_program = false |
cmdline_options | m_options |
std::string | m_program_invocation_name |
std::string | m_program_name |
Private Member Functions | |
void | init (void) |
Static Private Attributes | |
static application * | s_instance = nullptr |
|
inline |
|
inline |
|
delete |
|
default |
|
inlinestaticinherited |
Definition at line 301 of file octave.h.
Referenced by Fcmdline_options(), and debugger::repl().
|
inlinestaticinherited |
|
virtualinherited |
Definition at line 345 of file octave.cc.
References application::m_interpreter.
Referenced by interpreter_qobject::execute(), and execute().
|
virtualinherited |
Definition at line 364 of file octave.cc.
References application::m_interpreter.
|
virtual |
Implements application.
Definition at line 423 of file octave.cc.
References application::create_interpreter(), and interpreter::execute().
|
virtualinherited |
Definition at line 359 of file octave.cc.
References application::m_interpreter.
|
inherited |
Definition at line 334 of file octave.cc.
References cmdline_options::experimental_terminal_widget(), application::m_options, and application::s_instance.
Referenced by base_qobject::base_qobject(), base_qobject::close_gui(), base_qobject::experimental_terminal_widget(), base_qobject::interpreter_pause(), base_qobject::interpreter_resume(), base_qobject::interpreter_stop(), base_qobject::start_gui(), and qt_application::start_gui_p().
|
inlineinherited |
Definition at line 295 of file octave.h.
Referenced by interpreter::interpreter(), and debugger::repl().
|
staticinherited |
Definition at line 327 of file octave.cc.
References cmdline_options::forced_interactive(), application::m_options, and application::s_instance.
Referenced by base_stream::do_oscanf(), base_stream::do_scanf(), Frmdir(), raw_mode(), debugger::repl(), output_system::sync(), tree_evaluator::visit_statement(), and error_system::vwarning().
|
inlinevirtualinherited |
Reimplemented in qt_application.
|
inlinevirtualinherited |
Reimplemented in qt_application.
|
inlineinherited |
Definition at line 269 of file octave.h.
Referenced by interpreter::execute().
|
inlineinherited |
Definition at line 271 of file octave.h.
Referenced by interpreter::execute().
|
privateinherited |
Definition at line 369 of file octave.cc.
References cmdline_options::all_args(), cmdline_options::code_to_eval(), string_vector::empty(), cmdline_options::gui(), cmdline_options::line_editing(), application::m_have_eval_option_code, application::m_have_script_file, application::m_is_octave_program, application::m_options, cmdline_options::no_window_system(), octave_print_terse_usage_and_exit(), cmdline_options::persist(), cmdline_options::remaining_args(), application::s_instance, cmdline_options::server(), application::set_program_names(), sysdep_init(), and cmdline_options::traditional().
Referenced by application::application().
|
virtualinherited |
Definition at line 353 of file octave.cc.
References application::m_interpreter.
|
inherited |
Definition at line 311 of file octave.cc.
References application::m_argv, string_vector::numel(), and string_vector::resize().
Referenced by interpreter::interpreter(), and interpreter::execute_command_line_file().
|
inherited |
Definition at line 340 of file octave.cc.
References application::m_interpreter.
|
inlinestaticinherited |
Definition at line 318 of file octave.h.
Referenced by F__event_manager_gui_preference__(), Fdesktop(), event_manager::file_remove(), event_manager::file_renamed(), Fisguirunning(), and event_manager::update_path_dialog().
|
inlineinherited |
Definition at line 273 of file octave.h.
Referenced by interpreter::interpreter().
|
delete |
|
inlineinherited |
Definition at line 267 of file octave.h.
Referenced by interpreter::interpreter(), base_qobject::close_gui(), interpreter::display_startup_message(), interpreter::execute(), interpreter::execute_command_line_file(), interpreter::execute_eval_option_code(), interpreter::execute_startup_files(), interpreter::experimental_terminal_widget(), Fcmdline_options(), interpreter::initialize(), interpreter::initialize_history(), and interpreter::initialize_load_path().
|
inlineinherited |
|
inlinestaticinherited |
Definition at line 303 of file octave.h.
Referenced by interpreter::execute_command_line_file(), and Fprogram_invocation_name().
|
inlineinherited |
|
inlinestaticinherited |
Definition at line 308 of file octave.h.
Referenced by interpreter::execute_command_line_file(), and Fprogram_name().
|
inherited |
Definition at line 301 of file octave.cc.
References dir_sep_chars, application::m_program_invocation_name, and application::m_program_name.
Referenced by interpreter::execute_command_line_file(), and application::init().
|
inlineinherited |
|
protectedinherited |
Definition at line 346 of file octave.h.
Referenced by application::intern_argv().
|
protectedinherited |
Definition at line 351 of file octave.h.
Referenced by application::init().
|
protectedinherited |
Definition at line 355 of file octave.h.
Referenced by application::init().
|
protectedinherited |
Definition at line 362 of file octave.h.
Referenced by application::create_interpreter(), application::delete_interpreter(), application::execute_interpreter(), application::initialize_interpreter(), and application::interpreter_initialized().
|
protectedinherited |
Definition at line 360 of file octave.h.
Referenced by application::init().
|
protectedinherited |
Definition at line 348 of file octave.h.
Referenced by application::experimental_terminal_widget(), application::forced_interactive(), application::init(), and qt_application::start_gui_p().
|
protectedinherited |
Definition at line 337 of file octave.h.
Referenced by application::set_program_names().
|
protectedinherited |
Definition at line 340 of file octave.h.
Referenced by application::set_program_names().
|
staticprivateinherited |
Definition at line 330 of file octave.h.
Referenced by application::experimental_terminal_widget(), application::forced_interactive(), and application::init().