#include "octave.h"
Public Member Functions | |
application (const application &)=delete | |
application (const cmdline_options &opts=cmdline_options()) | |
application (int argc, char **argv) | |
virtual | ~application (void) |
virtual interpreter & | create_interpreter (void) |
virtual void | delete_interpreter (void) |
virtual int | execute (void)=0 |
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 |
application & | operator= (const 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 |
application::application | ( | const cmdline_options & | opts = cmdline_options () | ) |
application::application | ( | int | argc, |
char ** | argv | ||
) |
|
delete |
|
inlinestatic |
Definition at line 301 of file octave.h.
Referenced by Fcmdline_options(), and debugger::repl().
|
inlinestatic |
|
virtual |
Definition at line 345 of file octave.cc.
References m_interpreter.
Referenced by interpreter_qobject::execute(), and cli_application::execute().
|
virtual |
Definition at line 364 of file octave.cc.
References m_interpreter.
|
pure virtual |
Implemented in cli_application, and qt_application.
|
virtual |
Definition at line 359 of file octave.cc.
References m_interpreter.
bool application::experimental_terminal_widget | ( | void | ) | const |
Definition at line 334 of file octave.cc.
References cmdline_options::experimental_terminal_widget(), m_options, and 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().
|
inline |
Definition at line 295 of file octave.h.
Referenced by interpreter::interpreter(), and debugger::repl().
|
static |
Definition at line 327 of file octave.cc.
References cmdline_options::forced_interactive(), m_options, and 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().
|
inlinevirtual |
Reimplemented in qt_application.
|
inlinevirtual |
Reimplemented in qt_application.
|
inline |
Definition at line 269 of file octave.h.
Referenced by interpreter::execute().
|
inline |
Definition at line 271 of file octave.h.
Referenced by interpreter::execute().
|
private |
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(), m_have_eval_option_code, m_have_script_file, m_is_octave_program, m_options, cmdline_options::no_window_system(), octave_print_terse_usage_and_exit(), cmdline_options::persist(), cmdline_options::remaining_args(), s_instance, cmdline_options::server(), set_program_names(), sysdep_init(), and cmdline_options::traditional().
Referenced by application().
|
virtual |
Definition at line 353 of file octave.cc.
References m_interpreter.
void application::intern_argv | ( | const string_vector & | args | ) |
Definition at line 311 of file octave.cc.
References m_argv, string_vector::numel(), and string_vector::resize().
Referenced by interpreter::interpreter(), and interpreter::execute_command_line_file().
bool application::interpreter_initialized | ( | void | ) |
Definition at line 340 of file octave.cc.
References m_interpreter.
|
inlinestatic |
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().
|
inline |
Definition at line 273 of file octave.h.
Referenced by interpreter::interpreter().
|
delete |
|
inline |
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().
|
inline |
|
inlinestatic |
Definition at line 303 of file octave.h.
Referenced by interpreter::execute_command_line_file(), and Fprogram_invocation_name().
|
inline |
|
inlinestatic |
Definition at line 308 of file octave.h.
Referenced by interpreter::execute_command_line_file(), and Fprogram_name().
void application::set_program_names | ( | const std::string & | pname | ) |
Definition at line 301 of file octave.cc.
References dir_sep_chars, m_program_invocation_name, and m_program_name.
Referenced by interpreter::execute_command_line_file(), and init().
|
protected |
Definition at line 346 of file octave.h.
Referenced by intern_argv().
|
protected |
|
protected |
|
protected |
Definition at line 362 of file octave.h.
Referenced by create_interpreter(), delete_interpreter(), execute_interpreter(), initialize_interpreter(), and interpreter_initialized().
|
protected |
|
protected |
Definition at line 348 of file octave.h.
Referenced by experimental_terminal_widget(), forced_interactive(), init(), and qt_application::start_gui_p().
|
protected |
Definition at line 337 of file octave.h.
Referenced by set_program_names().
|
protected |
Definition at line 340 of file octave.h.
Referenced by set_program_names().
|
staticprivate |
Definition at line 330 of file octave.h.
Referenced by experimental_terminal_widget(), forced_interactive(), and init().