GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
cli_application Class Reference

#include "octave.h"

Inheritance diagram for cli_application:
Collaboration diagram for cli_application:

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 interpretercreate_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_applicationoperator= (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 applicationapp (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< interpreterm_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 applications_instance = nullptr
 

Detailed Description

Definition at line 365 of file octave.h.

Constructor & Destructor Documentation

◆ cli_application() [1/3]

cli_application::cli_application ( const cmdline_options opts = cmdline_options ())
inline

Definition at line 369 of file octave.h.

◆ cli_application() [2/3]

cli_application::cli_application ( int  argc,
char **  argv 
)
inline

Definition at line 373 of file octave.h.

◆ cli_application() [3/3]

cli_application::cli_application ( const cli_application )
delete

◆ ~cli_application()

cli_application::~cli_application ( void  )
default

Member Function Documentation

◆ app()

static application* application::app ( void  )
inlinestaticinherited

Definition at line 301 of file octave.h.

Referenced by Fcmdline_options(), and debugger::repl().

◆ argv()

static string_vector application::argv ( void  )
inlinestaticinherited

Definition at line 313 of file octave.h.

Referenced by Fargv().

◆ create_interpreter()

interpreter & application::create_interpreter ( void  )
virtualinherited

Definition at line 345 of file octave.cc.

References application::m_interpreter.

Referenced by interpreter_qobject::execute(), and execute().

◆ delete_interpreter()

void application::delete_interpreter ( void  )
virtualinherited

Definition at line 364 of file octave.cc.

References application::m_interpreter.

◆ execute()

int cli_application::execute ( void  )
virtual

Implements application.

Definition at line 423 of file octave.cc.

References application::create_interpreter(), and interpreter::execute().

◆ execute_interpreter()

int application::execute_interpreter ( void  )
virtualinherited

Definition at line 359 of file octave.cc.

References application::m_interpreter.

◆ experimental_terminal_widget()

◆ forced_interactive() [1/2]

void application::forced_interactive ( bool  arg)
inlineinherited

Definition at line 295 of file octave.h.

Referenced by interpreter::interpreter(), and debugger::repl().

◆ forced_interactive() [2/2]

◆ gui_running() [1/2]

virtual void application::gui_running ( bool  )
inlinevirtualinherited

Reimplemented in qt_application.

Definition at line 288 of file octave.h.

◆ gui_running() [2/2]

virtual bool application::gui_running ( void  ) const
inlinevirtualinherited

Reimplemented in qt_application.

Definition at line 287 of file octave.h.

◆ have_eval_option_code()

bool application::have_eval_option_code ( void  ) const
inlineinherited

Definition at line 269 of file octave.h.

Referenced by interpreter::execute().

◆ have_script_file()

bool application::have_script_file ( void  ) const
inlineinherited

Definition at line 271 of file octave.h.

Referenced by interpreter::execute().

◆ init()

◆ initialize_interpreter()

void application::initialize_interpreter ( void  )
virtualinherited

Definition at line 353 of file octave.cc.

References application::m_interpreter.

◆ intern_argv()

void application::intern_argv ( const string_vector args)
inherited

◆ interpreter_initialized()

bool application::interpreter_initialized ( void  )
inherited

Definition at line 340 of file octave.cc.

References application::m_interpreter.

◆ is_gui_running()

static bool application::is_gui_running ( void  )
inlinestaticinherited

◆ is_octave_program()

bool application::is_octave_program ( void  ) const
inlineinherited

Definition at line 273 of file octave.h.

Referenced by interpreter::interpreter().

◆ operator=()

cli_application& cli_application::operator= ( const cli_application )
delete

◆ options()

◆ program_invocation_name() [1/2]

void application::program_invocation_name ( const std::string &  nm)
inlineinherited

Definition at line 290 of file octave.h.

◆ program_invocation_name() [2/2]

static std::string application::program_invocation_name ( void  )
inlinestaticinherited

Definition at line 303 of file octave.h.

Referenced by interpreter::execute_command_line_file(), and Fprogram_invocation_name().

◆ program_name() [1/2]

void application::program_name ( const std::string &  nm)
inlineinherited

Definition at line 293 of file octave.h.

◆ program_name() [2/2]

static std::string application::program_name ( void  )
inlinestaticinherited

Definition at line 308 of file octave.h.

Referenced by interpreter::execute_command_line_file(), and Fprogram_name().

◆ set_program_names()

void application::set_program_names ( const std::string &  pname)
inherited

◆ sys_argc()

int application::sys_argc ( void  ) const
inlineinherited

Definition at line 260 of file octave.h.

◆ sys_argv()

char** application::sys_argv ( void  ) const
inlineinherited

Definition at line 261 of file octave.h.

Member Data Documentation

◆ m_argv

string_vector application::m_argv
protectedinherited

Definition at line 346 of file octave.h.

Referenced by application::intern_argv().

◆ m_have_eval_option_code

bool application::m_have_eval_option_code = false
protectedinherited

Definition at line 351 of file octave.h.

Referenced by application::init().

◆ m_have_script_file

bool application::m_have_script_file = false
protectedinherited

Definition at line 355 of file octave.h.

Referenced by application::init().

◆ m_interpreter

◆ m_is_octave_program

bool application::m_is_octave_program = false
protectedinherited

Definition at line 360 of file octave.h.

Referenced by application::init().

◆ m_options

cmdline_options application::m_options
protectedinherited

◆ m_program_invocation_name

std::string application::m_program_invocation_name
protectedinherited

Definition at line 337 of file octave.h.

Referenced by application::set_program_names().

◆ m_program_name

std::string application::m_program_name
protectedinherited

Definition at line 340 of file octave.h.

Referenced by application::set_program_names().

◆ s_instance

application * application::s_instance = nullptr
staticprivateinherited

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