GNU Octave  9.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:
application

Public Member Functions

 cli_application (const cmdline_options &opts=cmdline_options())
 
 cli_application (int argc, char **argv)
 
 ~cli_application ()=default
 
int execute ()
 
- Public Member Functions inherited from application
 application (const cmdline_options &opts=cmdline_options())
 
 application (int argc, char **argv)
 
virtual ~application ()
 
virtual interpretercreate_interpreter ()
 
virtual void delete_interpreter ()
 
virtual int execute_interpreter ()
 
bool experimental_terminal_widget () const
 
void forced_interactive (bool arg)
 
virtual bool gui_running () const
 
virtual void gui_running (bool)
 
bool have_eval_option_code () const
 
bool have_script_file () const
 
virtual void initialize_interpreter ()
 
void intern_argv (const string_vector &args)
 
bool interpreter_initialized ()
 
bool interpreter_is_initialized () const
 
bool is_octave_program () const
 
cmdline_options options () 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 () const
 
char ** sys_argv () const
 

Additional Inherited Members

- Static Public Member Functions inherited from application
static applicationapp ()
 
static string_vector argv ()
 
static bool forced_interactive ()
 
static bool is_gui_running ()
 
static std::string program_invocation_name ()
 
static std::string program_name ()
 
- Protected Attributes inherited from application
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
 

Detailed Description

Definition at line 365 of file octave.h.

Constructor & Destructor Documentation

◆ cli_application() [1/2]

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

Definition at line 369 of file octave.h.

◆ cli_application() [2/2]

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

Definition at line 373 of file octave.h.

◆ ~cli_application()

cli_application::~cli_application ( )
default

Member Function Documentation

◆ execute()

int cli_application::execute ( )
virtual

Implements application.

Definition at line 433 of file octave.cc.

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


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