Class lib_settings_class (o2scl)¶
-
class o2scl::lib_settings_class¶
A class to manage global library settings.
This class reports global settings such as the current version, whether or not sub-libraries were installed and what the current parent directory for data files is.
A global object of this type is defined in
lib_settings.h
named o2scl_settings .Miscellaneous config.h string properties
-
convert_units<double> def_cu¶
Default convert_units object.
-
std::string data_dir¶
The present data directory.
-
std::string doc_dir¶
The present documentation directory.
-
convert_units<double> *cup¶
Pointer to current convert_units object.
-
find_constants *fcp¶
Pointer to current find_constants object.
-
std::string o2scl_name()¶
-
std::string o2scl_package()¶
-
std::string o2scl_bugreport()¶
-
std::string o2scl_string()¶
-
std::string o2scl_tarname()¶
-
inline convert_units<double> &get_convert_units()¶
Get the global convert_units object.
-
inline find_constants &get_find_constants()¶
Get the global convert_units object.
-
inline void set_convert_units(convert_units<double> &cu)¶
Set the global convert_units and find_constants objects.
Public Functions
-
lib_settings_class()¶
-
~lib_settings_class()¶
-
inline std::string get_data_dir()¶
Return the data directory.
-
inline int set_data_dir(std::string dir)¶
Set the data directory.
-
inline std::string get_doc_dir()¶
Return the doc directory.
-
inline int set_doc_dir(std::string dir)¶
Set the doc directory.
-
bool eos_installed()¶
Return true if the EOS library was installed.
-
bool part_installed()¶
Return true if the particle library was installed.
-
bool hdf_support()¶
Return true if was installed with HDF support.
-
bool openmp_support()¶
Return true if was installed with OpenMP support.
-
bool readline_support()¶
Return true if was installed with readline support.
-
bool ncurses_support()¶
Return true if was installed with ncurses support.
-
bool gsl2_support()¶
Return true if was installed with support for GSL V2.0+.
-
bool armadillo_support()¶
Return true if was installed with Armadillo support.
-
bool eigen_support()¶
Return true if was installed with Eigen support.
-
bool fftw_support()¶
Return true if was installed with FFTW support.
-
bool hdf5_compression_support()¶
Return true if was installed with HDF5 compression support.
-
std::string system_type()¶
Return system type determined by autoconf.
Returns either “OSX”, “Linux” or “unknown”.
-
bool range_check()¶
Return true if range checking was turned on during installation (default true)
-
std::string time_compiled()¶
Return the time was compiled.
-
std::string date_compiled()¶
Return the date was compiled.
-
std::string o2scl_version()¶
Return the library version.
-
void config_h_report()¶
Report some of the settings from config.h.
-
void hdf5_lib_version(unsigned &maj, unsigned &min, unsigned &rel)¶
Obtain HDF5 version.
-
void hdf5_header_version(unsigned &maj, unsigned &min, unsigned &rel)¶
Obtain HDF5 version.
-
convert_units<double> def_cu¶