Public Types | Static Public Member Functions
Poco::Environment Class Reference

#include <Environment.h>

List of all members.

Public Types

typedef UInt8 NodeId [6]

Static Public Member Functions

static std::string get (const std::string &name)
 Ethernet address.
static std::string get (const std::string &name, const std::string &defaultValue)
static bool has (const std::string &name)
static void nodeId (NodeId &id)
 Returns the node (or host) name.
static std::string nodeId ()
static std::string nodeName ()
 Returns the operating system architecture.
static std::string osArchitecture ()
 Returns the operating system version.
static std::string osName ()
static std::string osVersion ()
 Returns the operating system name.
static void set (const std::string &name, const std::string &value)

Detailed Description

This class provides access to environment variables and some general system information.

Definition at line 49 of file Environment.h.


Member Typedef Documentation

typedef UInt8 Poco::Environment::NodeId[6]

Definition at line 54 of file Environment.h.


Member Function Documentation

std::string Poco::Environment::get ( const std::string &  name) [static]

Ethernet address.

Definition at line 56 of file Environment.cpp.

std::string Poco::Environment::get ( const std::string &  name,
const std::string &  defaultValue 
) [static]

Returns the value of the environment variable with the given name. Throws a NotFoundException if the variable does not exist.

Definition at line 62 of file Environment.cpp.

bool Poco::Environment::has ( const std::string &  name) [static]

Returns the value of the environment variable with the given name. If the environment variable is undefined, returns defaultValue instead.

Definition at line 71 of file Environment.cpp.

void Poco::Environment::nodeId ( NodeId id) [static]

Returns the node (or host) name.

Definition at line 123 of file Environment.cpp.

std::string Poco::Environment::nodeId ( ) [static]

Returns the Ethernet address of the first Ethernet adapter found on the system.

Throws a SystemException if no Ethernet adapter is available.

Definition at line 107 of file Environment.cpp.

std::string Poco::Environment::nodeName ( ) [static]

Returns the operating system architecture.

Definition at line 101 of file Environment.cpp.

std::string Poco::Environment::osArchitecture ( ) [static]

Returns the operating system version.

Definition at line 95 of file Environment.cpp.

std::string Poco::Environment::osName ( ) [static]

Sets the environment variable with the given name to the given value.

Definition at line 83 of file Environment.cpp.

std::string Poco::Environment::osVersion ( ) [static]

Returns the operating system name.

Definition at line 89 of file Environment.cpp.

void Poco::Environment::set ( const std::string &  name,
const std::string &  value 
) [static]

Returns true iff an environment variable with the given name is defined.

Definition at line 77 of file Environment.cpp.


The documentation for this class was generated from the following files:


pluginlib
Author(s): Tully Foote and Eitan Marder-Eppstein
autogenerated on Sat Dec 28 2013 17:20:20