GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
application Class Referenceabstract

#include "octave.h"

Inheritance diagram for application:
cli_application

Public Member Functions

 application (const cmdline_options &opts=cmdline_options())
 
 application (int argc, char **argv)
 
virtual ~application ()
 
virtual interpretercreate_interpreter ()
 
virtual void delete_interpreter ()
 
virtual int execute ()=0
 
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
 

Static Public Member Functions

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

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 242 of file octave.h.

Constructor & Destructor Documentation

◆ application() [1/2]

application::application ( const cmdline_options opts = cmdline_options ())

Definition at line 287 of file octave.cc.

◆ application() [2/2]

application::application ( int  argc,
char **  argv 
)

Definition at line 281 of file octave.cc.

◆ ~application()

application::~application ( )
virtual

Definition at line 299 of file octave.cc.

Member Function Documentation

◆ app()

static application* application::app ( )
inlinestatic

Definition at line 301 of file octave.h.

Referenced by octave::Fcmdline_options().

◆ argv()

static string_vector application::argv ( )
inlinestatic

Definition at line 313 of file octave.h.

Referenced by octave::Fargv().

◆ create_interpreter()

interpreter & application::create_interpreter ( )
virtual

Definition at line 350 of file octave.cc.

References m_interpreter.

Referenced by cli_application::execute().

◆ delete_interpreter()

void application::delete_interpreter ( )
virtual

Definition at line 372 of file octave.cc.

References m_interpreter.

◆ execute()

virtual int application::execute ( )
pure virtual

Implemented in cli_application.

◆ execute_interpreter()

int application::execute_interpreter ( )
virtual

Definition at line 366 of file octave.cc.

References m_interpreter.

◆ experimental_terminal_widget()

bool application::experimental_terminal_widget ( ) const

Definition at line 337 of file octave.cc.

References cmdline_options::experimental_terminal_widget(), and m_options.

◆ forced_interactive() [1/2]

bool application::forced_interactive ( )
static

◆ forced_interactive() [2/2]

void application::forced_interactive ( bool  arg)
inline

Definition at line 295 of file octave.h.

◆ gui_running() [1/2]

virtual bool application::gui_running ( ) const
inlinevirtual

Definition at line 287 of file octave.h.

◆ gui_running() [2/2]

virtual void application::gui_running ( bool  )
inlinevirtual

Definition at line 288 of file octave.h.

◆ have_eval_option_code()

bool application::have_eval_option_code ( ) const
inline

Definition at line 263 of file octave.h.

Referenced by interpreter::execute().

◆ have_script_file()

bool application::have_script_file ( ) const
inline

Definition at line 265 of file octave.h.

Referenced by interpreter::execute().

◆ initialize_interpreter()

void application::initialize_interpreter ( )
virtual

Definition at line 359 of file octave.cc.

References m_interpreter.

◆ intern_argv()

void application::intern_argv ( const string_vector args)

Definition at line 312 of file octave.cc.

References m_argv, string_vector::numel(), and string_vector::resize().

◆ interpreter_initialized()

bool application::interpreter_initialized ( )
inline

Definition at line 272 of file octave.h.

◆ interpreter_is_initialized()

bool application::interpreter_is_initialized ( ) const

Definition at line 344 of file octave.cc.

References m_interpreter.

◆ is_gui_running()

◆ is_octave_program()

bool application::is_octave_program ( ) const
inline

Definition at line 267 of file octave.h.

◆ options()

◆ program_invocation_name() [1/2]

static std::string application::program_invocation_name ( )
inlinestatic

Definition at line 303 of file octave.h.

Referenced by octave::Fprogram_invocation_name().

◆ program_invocation_name() [2/2]

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

Definition at line 290 of file octave.h.

◆ program_name() [1/2]

static std::string application::program_name ( )
inlinestatic

Definition at line 308 of file octave.h.

Referenced by octave::Fprogram_name().

◆ program_name() [2/2]

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

Definition at line 293 of file octave.h.

◆ set_program_names()

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

Definition at line 302 of file octave.cc.

References dir_sep_chars(), m_program_invocation_name, and m_program_name.

◆ sys_argc()

int application::sys_argc ( ) const
inline

Definition at line 254 of file octave.h.

◆ sys_argv()

char** application::sys_argv ( ) const
inline

Definition at line 255 of file octave.h.

Member Data Documentation

◆ m_argv

string_vector application::m_argv
protected

Definition at line 346 of file octave.h.

Referenced by intern_argv().

◆ m_have_eval_option_code

bool application::m_have_eval_option_code = false
protected

Definition at line 351 of file octave.h.

◆ m_have_script_file

bool application::m_have_script_file = false
protected

Definition at line 355 of file octave.h.

◆ m_interpreter

std::unique_ptr<interpreter> application::m_interpreter
protected

◆ m_is_octave_program

bool application::m_is_octave_program = false
protected

Definition at line 360 of file octave.h.

◆ m_options

cmdline_options application::m_options
protected

Definition at line 348 of file octave.h.

Referenced by experimental_terminal_widget(), and forced_interactive().

◆ m_program_invocation_name

std::string application::m_program_invocation_name
protected

Definition at line 337 of file octave.h.

Referenced by set_program_names().

◆ m_program_name

std::string application::m_program_name
protected

Definition at line 340 of file octave.h.

Referenced by set_program_names().


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