#include <YEnvVar.h>
|
| YEnvVar (const std::string &name=std::string()) |
|
std::string | name () const |
|
bool | isSet () const |
|
std::string | value () const |
|
bool | isEqual (const std::string &str, bool caseSensitive=false) const |
|
bool | operator== (const std::string &str) const |
|
bool | contains (const std::string &str, bool caseSensitive=false) const |
|
Helper class to represent an environment variable and its value.
Definition at line 36 of file YEnvVar.h.
YEnvVar::YEnvVar |
( |
const std::string & |
name = std::string() | ) |
|
Constructor: Retrieve the environment variable 'name' and store the value (unless 'name' is empty).
Definition at line 36 of file YEnvVar.cc.
bool YEnvVar::contains |
( |
const std::string & |
str, |
|
|
bool |
caseSensitive = false |
|
) |
| const |
Return 'true' if the environment variable is set and the value contains 'str'.
Definition at line 66 of file YEnvVar.cc.
bool YEnvVar::isEqual |
( |
const std::string & |
str, |
|
|
bool |
caseSensitive = false |
|
) |
| const |
Return 'true' if the environment variable is set and the value is 'str'.
Definition at line 54 of file YEnvVar.cc.
bool YEnvVar::isSet |
( |
| ) |
const |
|
inline |
Return 'true' if the environment variable is set.
Definition at line 54 of file YEnvVar.h.
std::string YEnvVar::name |
( |
| ) |
const |
|
inline |
Return the name of the environment variable.
Definition at line 49 of file YEnvVar.h.
bool YEnvVar::operator== |
( |
const std::string & |
str | ) |
const |
|
inline |
Case-insensitive comparison (shortcut for isEqual() ): Return 'true' if the environment variable is set and the value is 'str'.
Definition at line 72 of file YEnvVar.h.
std::string YEnvVar::value |
( |
| ) |
const |
|
inline |
Return the value of the environment variable.
Definition at line 59 of file YEnvVar.h.
The documentation for this class was generated from the following files:
- /home/abuild/rpmbuild/BUILD/libyui-3.0.10/src/YEnvVar.h
- /home/abuild/rpmbuild/BUILD/libyui-3.0.10/src/YEnvVar.cc