|
TECA
The Toolkit for Extreme Climate Analysis
|
Go to the documentation of this file. 1 #ifndef teca_system_util_h
2 #define teca_system_util_h
26 const char *tmp = getenv(var);
31 TECA_ERROR(
"Failed to convert " << var <<
" = \""
32 << tmp <<
"\" to a number")
45 const char *arg_name,
int require, std::string &arg_val);
51 const char *arg_name);
int get_environment_variable(const char *var, T &val)
Definition: teca_system_util.h:24
Codes for dealing with low level system API's.
Definition: teca_system_util.h:12
A traits class for conversion from text to numbers.
Definition: teca_string_util.h:122
int command_line_option_check(int argc, char **argv, const char *arg_name)
int get_command_line_option(int argc, char **argv, const char *arg_name, int require, std::string &arg_val)
#define TECA_ERROR(_msg)
Constructs an error message and sends it to the stderr stream.
Definition: teca_common.h:138