26 #if ! defined (octave_octave_h)
27 #define octave_octave_h 1
29 #include "octave-config.h"
52 int sys_argc (
void)
const {
return m_all_args.numel (); }
53 char **
sys_argv (
void)
const {
return m_all_args.c_str_vec (); }
60 bool gui (
void)
const {
return m_gui; }
66 bool persist (
void)
const {
return m_persist; }
77 std::string
exec_path (
void)
const {
return m_exec_path; }
78 std::string
image_path (
void)
const {
return m_image_path; }
79 std::string
info_file (
void)
const {
return m_info_file; }
90 void gui (
bool arg) { m_gui = arg; }
96 void persist (
bool arg) { m_persist = arg; }
107 void exec_path (
const std::string& arg) { m_exec_path = arg; }
108 void image_path (
const std::string& arg) { m_image_path = arg; }
109 void info_file (
const std::string& arg) { m_info_file = arg; }
119 bool m_debug_jit =
false;
123 bool m_echo_commands =
false;
131 bool m_forced_interactive =
false;
135 bool m_forced_line_editing =
false;
139 bool m_inhibit_startup_message =
false;
143 bool m_jit_compiler =
false;
147 bool m_line_editing =
true;
151 bool m_no_window_system =
false;
155 bool m_persist =
false;
159 bool m_read_history_file =
true;
163 bool m_read_init_files =
true;
167 bool m_read_site_files =
true;
171 bool m_set_initial_path =
true;
175 bool m_traditional =
false;
179 bool m_verbose_flag =
false;
250 int sys_argc (
void)
const {
return m_options.sys_argc (); }
251 char **
sys_argv (
void)
const {
return m_options.sys_argv (); }
253 void set_program_names (
const std::string& pname);
265 bool interpreter_initialized (
void);
269 virtual void initialize_interpreter (
void);
271 virtual int execute_interpreter (
void);
273 virtual void delete_interpreter (
void);
290 return instance ? instance->m_program_invocation_name :
"";
295 return instance ? instance->m_program_name :
"";
305 return instance ? instance->gui_running () :
false;
310 static bool forced_interactive (
void);
336 bool m_have_eval_option_code =
false;
340 bool m_have_script_file =
false;
345 bool m_is_octave_program =
false;
bool have_script_file(void) const
bool is_octave_program(void) const
void program_name(const std::string &nm)
static bool is_gui_running(void)
static std::string program_name(void)
void forced_interactive(bool arg)
void program_invocation_name(const std::string &nm)
virtual bool gui_running(void) const
bool have_eval_option_code(void) const
static std::string program_invocation_name(void)
std::string m_program_name
virtual int execute(void)=0
static application * app(void)
static application * instance
cmdline_options options(void) const
cmdline_options m_options
application(const application &)=delete
static string_vector argv(void)
virtual void gui_running(bool)
std::string m_program_invocation_name
char ** sys_argv(void) const
cli_application(const cmdline_options &opts=cmdline_options())
cli_application(int argc, char **argv)
~cli_application(void)=default
cli_application(const cli_application &)=delete
bool read_site_files(void) const
std::string info_program(void) const
void echo_commands(bool arg)
std::string m_doc_cache_file
std::list< std::string > command_line_path(void) const
void forced_line_editing(bool arg)
void command_line_path(const std::list< std::string > &arg)
bool line_editing(void) const
void remaining_args(const string_vector &arg)
bool traditional(void) const
bool inhibit_startup_message(void) const
void read_site_files(bool arg)
void read_history_file(bool arg)
std::string image_path(void) const
std::list< std::string > m_command_line_path
void inhibit_startup_message(bool arg)
std::string m_texi_macros_file
void info_program(const std::string &arg)
std::string m_info_program
bool forced_line_editing(void) const
std::string doc_cache_file(void) const
std::string texi_macros_file(void) const
void set_initial_path(bool arg)
bool forced_interactive(void) const
void image_path(const std::string &arg)
void jit_compiler(bool arg)
void line_editing(bool arg)
std::string docstrings_file(void) const
bool read_init_files(void) const
char ** sys_argv(void) const
std::string m_docstrings_file
string_vector remaining_args(void) const
string_vector m_remaining_args
std::string m_code_to_eval
void all_args(const string_vector &arg)
bool debug_jit(void) const
void no_window_system(bool arg)
void read_init_files(bool arg)
bool read_history_file(void) const
cmdline_options(const cmdline_options &)=default
void verbose_flag(bool arg)
bool no_window_system(void) const
std::string code_to_eval(void) const
void code_to_eval(const std::string &arg)
void info_file(const std::string &arg)
void forced_interactive(bool arg)
std::string info_file(void) const
void texi_macros_file(const std::string &arg)
bool jit_compiler(void) const
std::string exec_path(void) const
bool echo_commands(void) const
bool set_initial_path(void) const
bool verbose_flag(void) const
void doc_cache_file(const std::string &arg)
void traditional(bool arg)
string_vector all_args(void) const
void docstrings_file(const std::string &arg)
void exec_path(const std::string &arg)