#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) |
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 |
interpreter * | m_interpreter = nullptr |
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 * | instance = nullptr |
octave::application::application | ( | const cmdline_options & | opts = cmdline_options () | ) |
octave::application::application | ( | int | argc, |
char ** | argv | ||
) |
|
delete |
|
virtual |
Definition at line 285 of file octave.cc.
References instance, and m_interpreter.
|
inlinestatic |
Definition at line 286 of file octave.h.
Referenced by octave::debugger::repl().
|
inlinestatic |
|
virtual |
Definition at line 299 of file octave.cc.
References m_interpreter.
Referenced by octave::interpreter_qobject::execute(), and octave::cli_application::execute().
|
virtual |
Definition at line 318 of file octave.cc.
References m_interpreter.
|
pure virtual |
Implemented in octave::cli_application, and octave::qt_application.
|
virtual |
Definition at line 313 of file octave.cc.
References octave::interpreter::execute(), and m_interpreter.
|
inline |
Definition at line 284 of file octave.h.
Referenced by octave::debugger::repl().
|
static |
Definition at line 280 of file octave.cc.
References octave::cmdline_options::forced_interactive(), instance, and m_options.
Referenced by octave::base_stream::do_oscanf(), octave::base_stream::do_scanf(), Frmdir(), octave::raw_mode(), octave::debugger::repl(), octave::output_system::sync(), octave::tree_evaluator::visit_statement(), and octave::error_system::vwarning().
|
inlinevirtual |
Reimplemented in octave::qt_application.
|
inlinevirtual |
Reimplemented in octave::qt_application.
|
inline |
Definition at line 259 of file octave.h.
Referenced by octave::interpreter::execute().
|
inline |
Definition at line 261 of file octave.h.
Referenced by octave::interpreter::execute().
|
private |
Definition at line 325 of file octave.cc.
References octave::cmdline_options::all_args(), octave::cmdline_options::code_to_eval(), string_vector::empty(), octave::cmdline_options::gui(), instance, octave::cmdline_options::line_editing(), m_have_eval_option_code, m_have_script_file, m_is_octave_program, m_options, octave::cmdline_options::no_window_system(), octave_print_terse_usage_and_exit(), octave::cmdline_options::persist(), octave::cmdline_options::remaining_args(), set_program_names(), octave::sysdep_init(), and octave::cmdline_options::traditional().
Referenced by application().
|
virtual |
Definition at line 307 of file octave.cc.
References octave::interpreter::initialize(), and m_interpreter.
void octave::application::intern_argv | ( | const string_vector & | args | ) |
Definition at line 264 of file octave.cc.
References m_argv, string_vector::numel(), and string_vector::resize().
Referenced by octave::interpreter::interpreter(), and octave::interpreter::execute_command_line_file().
bool octave::application::interpreter_initialized | ( | void | ) |
Definition at line 294 of file octave.cc.
References octave::interpreter::initialized(), and m_interpreter.
|
inlinestatic |
Definition at line 303 of file octave.h.
Referenced by F__event_manager_gui_preference__(), octave::event_manager::file_remove(), octave::event_manager::file_renamed(), Fisguirunning(), and octave::event_manager::update_path_dialog().
|
inline |
Definition at line 263 of file octave.h.
Referenced by octave::interpreter::interpreter().
|
delete |
|
inline |
Definition at line 257 of file octave.h.
Referenced by octave::interpreter::interpreter(), octave::interpreter::display_startup_message(), octave::interpreter::execute(), octave::interpreter::execute_command_line_file(), octave::interpreter::execute_eval_option_code(), octave::interpreter::execute_startup_files(), octave::interpreter::initialize_history(), and octave::interpreter::initialize_load_path().
|
inline |
|
inlinestatic |
Definition at line 288 of file octave.h.
Referenced by octave::interpreter::execute_command_line_file(), and Fprogram_invocation_name().
|
inline |
|
inlinestatic |
Definition at line 293 of file octave.h.
Referenced by octave::interpreter::execute_command_line_file(), and Fprogram_name().
void octave::application::set_program_names | ( | const std::string & | pname | ) |
Definition at line 254 of file octave.cc.
References octave::sys::file_ops::dir_sep_chars(), m_program_invocation_name, and m_program_name.
Referenced by octave::interpreter::execute_command_line_file(), and init().
|
staticprivate |
Definition at line 315 of file octave.h.
Referenced by ~application(), forced_interactive(), and init().
|
protected |
Definition at line 331 of file octave.h.
Referenced by intern_argv().
|
protected |
|
protected |
|
protected |
Definition at line 347 of file octave.h.
Referenced by ~application(), create_interpreter(), delete_interpreter(), execute_interpreter(), initialize_interpreter(), and interpreter_initialized().
|
protected |
|
protected |
Definition at line 333 of file octave.h.
Referenced by forced_interactive(), init(), and octave::qt_application::start_gui_p().
|
protected |
Definition at line 322 of file octave.h.
Referenced by set_program_names().
|
protected |
Definition at line 325 of file octave.h.
Referenced by set_program_names().