GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
defaults.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 1993-2018 John W. Eaton
4 
5 This file is part of Octave.
6 
7 Octave is free software: you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with Octave; see the file COPYING. If not, see
19 <https://www.gnu.org/licenses/>.
20 
21 */
22 
23 #if ! defined (octave_defaults_h)
24 #define octave_defaults_h 1
25 
26 #include "octave-config.h"
27 
28 #include <string>
29 
30 #include "pathsearch.h"
31 
32 namespace octave
33 {
34  namespace config
35  {
36  extern OCTINTERP_API std::string
38 
39  extern OCTINTERP_API std::string
41 
42  // These could be defined as pure constants, but we'll use
43  // functions to be consistent with the values that require
44  // initialization.
45 
46  extern OCTINTERP_API std::string canonical_host_type (void);
47  extern OCTINTERP_API std::string release (void);
48  extern OCTINTERP_API std::string default_pager (void);
49 
50  // These require initialization, so can't be defined as pure
51  // constants. We use functions to access these values so that
52  // they can't be modified by users.
53 
54  extern OCTINTERP_API std::string octave_home (void);
55  extern OCTINTERP_API std::string octave_exec_home (void);
56 
57  extern OCTINTERP_API std::string bin_dir (void);
58  extern OCTINTERP_API std::string data_dir (void);
59  extern OCTINTERP_API std::string dataroot_dir (void);
60  extern OCTINTERP_API std::string include_dir (void);
61  extern OCTINTERP_API std::string lib_dir (void);
62  extern OCTINTERP_API std::string libexec_dir (void);
63 
64  extern OCTINTERP_API std::string local_ver_arch_lib_dir (void);
65  extern OCTINTERP_API std::string local_api_arch_lib_dir (void);
66  extern OCTINTERP_API std::string local_arch_lib_dir (void);
67  extern OCTINTERP_API std::string arch_lib_dir (void);
68 
69  extern OCTINTERP_API std::string local_ver_oct_file_dir (void);
70  extern OCTINTERP_API std::string local_api_oct_file_dir (void);
71  extern OCTINTERP_API std::string local_oct_file_dir (void);
72  extern OCTINTERP_API std::string oct_file_dir (void);
73 
74  extern OCTINTERP_API std::string local_ver_fcn_file_dir (void);
75  extern OCTINTERP_API std::string local_api_fcn_file_dir (void);
76  extern OCTINTERP_API std::string local_fcn_file_dir (void);
77  extern OCTINTERP_API std::string fcn_file_dir (void);
78 
79  extern OCTINTERP_API std::string oct_data_dir (void);
80  extern OCTINTERP_API std::string oct_doc_dir (void);
81  extern OCTINTERP_API std::string oct_etc_dir (void);
82  extern OCTINTERP_API std::string oct_fonts_dir (void);
83  extern OCTINTERP_API std::string oct_include_dir (void);
84  extern OCTINTERP_API std::string oct_lib_dir (void);
85  extern OCTINTERP_API std::string oct_locale_dir (void);
86  extern OCTINTERP_API std::string oct_tests_dir (void);
87 
88  extern OCTINTERP_API std::string info_dir (void);
89 
90  extern OCTINTERP_API std::string man_dir (void);
91  extern OCTINTERP_API std::string man1_dir (void);
92  extern OCTINTERP_API std::string man1_ext (void);
93 
94  extern OCTINTERP_API std::string image_dir (void);
95 
96  extern OCTINTERP_API std::string local_startupfile_dir (void);
97  extern OCTINTERP_API std::string startupfile_dir (void);
98 
99  extern OCTINTERP_API std::string local_site_defaults_file (void);
100  extern OCTINTERP_API std::string site_defaults_file (void);
101  }
102 }
103 
104 #endif
std::string local_fcn_file_dir(void)
Definition: defaults.cc:293
std::string oct_fonts_dir(void)
Definition: defaults.cc:299
std::string info_dir(void)
Definition: defaults.cc:280
std::string oct_doc_dir(void)
Definition: defaults.cc:297
std::string oct_etc_dir(void)
Definition: defaults.cc:298
std::string prepend_octave_exec_home(const std::string &s)
Definition: defaults.cc:259
std::string lib_dir(void)
Definition: defaults.cc:277
std::string oct_lib_dir(void)
Definition: defaults.cc:301
std::string man_dir(void)
Definition: defaults.cc:305
std::string octave_exec_home(void)
Definition: defaults.cc:271
std::string man1_dir(void)
Definition: defaults.cc:306
std::string data_dir(void)
Definition: defaults.cc:274
s
Definition: file-io.cc:2729
std::string fcn_file_dir(void)
Definition: defaults.cc:294
std::string man1_ext(void)
Definition: defaults.cc:307
std::string bin_dir(void)
Definition: defaults.cc:273
std::string startupfile_dir(void)
Definition: defaults.cc:312
std::string local_site_defaults_file(void)
Definition: defaults.cc:314
std::string dataroot_dir(void)
Definition: defaults.cc:275
std::string oct_locale_dir(void)
Definition: defaults.cc:302
std::string prepend_octave_home(const std::string &s)
Definition: defaults.cc:253
std::string local_ver_fcn_file_dir(void)
Definition: defaults.cc:291
std::string arch_lib_dir(void)
Definition: defaults.cc:279
std::string local_api_arch_lib_dir(void)
Definition: defaults.cc:283
std::string octave_home(void)
Definition: defaults.cc:270
std::string canonical_host_type(void)
Definition: defaults.cc:264
std::string default_pager(void)
Definition: defaults.cc:268
std::string local_api_fcn_file_dir(void)
Definition: defaults.cc:292
std::string local_oct_file_dir(void)
Definition: defaults.cc:288
std::string image_dir(void)
Definition: defaults.cc:309
std::string libexec_dir(void)
Definition: defaults.cc:278
std::string release(void)
Definition: defaults.cc:266
std::string oct_file_dir(void)
Definition: defaults.cc:289
std::string local_arch_lib_dir(void)
Definition: defaults.cc:284
std::string local_api_oct_file_dir(void)
Definition: defaults.cc:287
std::string local_ver_oct_file_dir(void)
Definition: defaults.cc:286
std::string include_dir(void)
Definition: defaults.cc:276
std::string oct_include_dir(void)
Definition: defaults.cc:300
std::string site_defaults_file(void)
Definition: defaults.cc:315
std::string oct_tests_dir(void)
Definition: defaults.cc:303
std::string local_ver_arch_lib_dir(void)
Definition: defaults.cc:282
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
Definition: utils.cc:888
std::string oct_data_dir(void)
Definition: defaults.cc:296
std::string local_startupfile_dir(void)
Definition: defaults.cc:311