Lookup configuration strings from the process environment.
More...
#include <utils/pv/configuration.h>
|
virtual void | addKeys (keys_t &) const |
|
Lookup configuration strings from the process environment.
Definition at line 150 of file configuration.h.
bool epics::pvAccess::Configuration::getPropertyAsAddress |
( |
const std::string & |
name, |
|
|
osiSockAddr * |
addr |
|
) |
| const |
|
inherited |
Fetch and parse as a socket address and port number (address family set accordingly).
At present only numeric addresses are parsed (eg. "127.0.0.1:4242").
The storage pointed to be addr should be initialized with a default value, or zeroed.
- Parameters
-
name | name of the environment variable to return. addr pointer to the address struct to be filled in |
- Returns
- true if addr now contains an address, false otherwise
bool epics::pvAccess::Configuration::getPropertyAsBoolean |
( |
const std::string & |
name, |
|
|
const bool |
defaultValue |
|
) |
| const |
|
inherited |
Get the environment variable specified by name or return default value if it does not exist.
- Parameters
-
name | name of the environment variable to return. |
defualtValue | default value to return if environment variable does not exists. |
- Returns
- environment variable value as bool or default value if it does not exist.
double epics::pvAccess::Configuration::getPropertyAsDouble |
( |
const std::string & |
name, |
|
|
const double |
defaultValue |
|
) |
| const |
|
inherited |
Get the environment variable specified by name or return default value if it does not exist.
- Parameters
-
name | name of the environment variable to return. |
defualtValue | default value to return if environment variable does not exists. |
- Returns
- environment variable value as double or default value if it does not exist.
float epics::pvAccess::Configuration::getPropertyAsFloat |
( |
const std::string & |
name, |
|
|
const float |
defaultValue |
|
) |
| const |
|
inherited |
Get the environment variable specified by name or return default value if it does not exist.
- Parameters
-
name | name of the environment variable to return. |
defualtValue | default value to return if environment variable does not exists. |
- Returns
- environment variable value as float or default value if it does not exist.
epics::pvData::int32 epics::pvAccess::Configuration::getPropertyAsInteger |
( |
const std::string & |
name, |
|
|
const epics::pvData::int32 |
defaultValue |
|
) |
| const |
|
inherited |
Get the environment variable specified by name or return default value if it does not exist.
- Parameters
-
name | name of the environment variable to return. |
defualtValue | default value to return if environment variable does not exists. |
- Returns
- environment variable value as int32 or default value if it does not exist.
Get the environment variable specified by name or return default value if it does not exist.
- Parameters
-
name | name of the environment variable to return. |
defualtValue | default value to return if environment variable does not exists. |
- Returns
- environment variable value as std::string or default value if it does not exist.
keys_t epics::pvAccess::Configuration::keys |
( |
| ) |
const |
|
inlineinherited |
The documentation for this class was generated from the following file: