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

#include "oct-env.h"

Public Member Functions

 ~env ()=default
 

Static Public Member Functions

static bool absolute_pathname (const std::string &s)
 
static std::string base_pathname (const std::string &s)
 
static bool chdir (const std::string &newdir)
 
static std::string get_current_directory ()
 
static std::string get_home_directory ()
 
static std::string get_host_name ()
 
static std::string get_program_invocation_name ()
 
static std::string get_program_name ()
 
static std::string get_temp_directory ()
 
static std::string get_user_config_directory ()
 
static std::string get_user_data_directory ()
 
static std::string get_user_name ()
 
static std::string getenv (const std::string &name)
 
static bool have_x11_display ()
 
static bool isenv (const std::string &name)
 
static std::string make_absolute (const std::string &s, const std::string &dot_path=get_current_directory())
 
static std::string polite_directory_format (const std::string &name)
 
static void putenv (const std::string &name, const std::string &value)
 
static bool rooted_relative_pathname (const std::string &s)
 
static void set_program_name (const std::string &s)
 

Protected Member Functions

 env ()
 

Detailed Description

Definition at line 37 of file oct-env.h.

Constructor & Destructor Documentation

◆ env()

env::env ( )
protected

Definition at line 72 of file oct-env.cc.

◆ ~env()

env::~env ( )
default

Member Function Documentation

◆ absolute_pathname()

bool env::absolute_pathname ( const std::string &  s)
static

Definition at line 110 of file oct-env.cc.

◆ base_pathname()

std::string env::base_pathname ( const std::string &  s)
static

Definition at line 124 of file oct-env.cc.

◆ chdir()

bool env::chdir ( const std::string &  newdir)
static

Definition at line 323 of file oct-env.cc.

◆ get_current_directory()

std::string env::get_current_directory ( )
static

Definition at line 138 of file oct-env.cc.

◆ get_home_directory()

std::string env::get_home_directory ( )
static

Definition at line 145 of file oct-env.cc.

◆ get_host_name()

std::string env::get_host_name ( )
static

Definition at line 201 of file oct-env.cc.

◆ get_program_invocation_name()

std::string env::get_program_invocation_name ( )
static

Definition at line 180 of file oct-env.cc.

◆ get_program_name()

std::string env::get_program_name ( )
static

Definition at line 173 of file oct-env.cc.

◆ get_temp_directory()

std::string env::get_temp_directory ( )
static

Definition at line 152 of file oct-env.cc.

Referenced by octave::sys::tempnam().

◆ get_user_config_directory()

std::string env::get_user_config_directory ( )
static

Definition at line 159 of file oct-env.cc.

◆ get_user_data_directory()

std::string env::get_user_data_directory ( )
static

Definition at line 166 of file oct-env.cc.

◆ get_user_name()

std::string env::get_user_name ( )
static

Definition at line 194 of file oct-env.cc.

◆ getenv()

std::string env::getenv ( const std::string &  name)
static

Definition at line 296 of file oct-env.cc.

Referenced by have_x11_display().

◆ have_x11_display()

bool env::have_x11_display ( )
static

Definition at line 315 of file oct-env.cc.

References getenv().

◆ isenv()

bool env::isenv ( const std::string &  name)
static

Definition at line 303 of file oct-env.cc.

References isenv_wrapper().

◆ make_absolute()

std::string env::make_absolute ( const std::string &  s,
const std::string &  dot_path = get_current_directory () 
)
static

Definition at line 131 of file oct-env.cc.

◆ polite_directory_format()

std::string env::polite_directory_format ( const std::string &  name)
static

Definition at line 103 of file oct-env.cc.

◆ putenv()

void env::putenv ( const std::string &  name,
const std::string &  value 
)
static

Definition at line 309 of file oct-env.cc.

References putenv_wrapper().

◆ rooted_relative_pathname()

bool env::rooted_relative_pathname ( const std::string &  s)
static

Definition at line 117 of file oct-env.cc.

◆ set_program_name()

void env::set_program_name ( const std::string &  s)
static

Definition at line 187 of file oct-env.cc.


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