mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
System Programming

Tools for system programming

Modules

 Interprocess Communication
 

Functions

std::string mx::sys::getEnv (const std::string &estr)
 Return the value of an environment variable. More...
 

Function Documentation

◆ getEnv()

std::string mx::sys::getEnv ( const std::string &  estr)

Return the value of an environment variable.

Call the standard getenv function, but handles the null pointer as an empty string.

Returns
the value of the environment varialbe, or empty string if it doesn't exist
Parameters
[in]estris the name of the environment variable to query

Definition at line 33 of file environment.cpp.

Referenced by mx::AO::sim::simulatedAOSystem< _realT, _wfsT, _reconT, _filterT, _dmT, _turbSeqT, _coronT >::simulatedAOSystem(), mx::math::fft::fftw_wisdom_filename(), mx::AO::path::basis::root(), mx::AO::path::dm::root(), mx::AO::path::pupil::root(), mx::AO::path::sys::root(), mx::app::application::setDefaults(), and mx::astro::astroSpectrum< _spectrumT, freq >::setParameters().