#include <Properties.h>
Inheritance diagram for glite::rgma::Properties:
Public Member Functions | |
Properties (std::string className="") throw (RGMAException) | |
virtual | ~Properties () |
virtual void | load (std::string filename) throw (RGMAException) |
std::string | getProperty (std::string key) throw (RGMAException) |
std::string | getProperty (std::string key, std::string defaultValue) |
bool | Properties::present (std::string key) |
Protected Types | |
typedef std::map< std::string, std::string > | Table |
Protected Member Functions | |
int | getLine (char **line, int *length, FILE *inStream) |
Protected Attributes | |
Table | table |
|
Constructor.
|
|
Destructor. |
|
Mimics the GNU getline function. It reads an entire line, storing the address of the buffer containing the text into *line. The buffer is null-terminated and includes the newline character, if a newline delimiter was found.
|
|
Gets a property with the specified key. This method returns the default value is the property is not found.
|
|
Gets a property with the specified key. This method throws an exception if the property is not found.
|
|
Loads properties from specified file. Run automatically by constructor if className is specified. Reimplemented in glite::rgma::SSLSigningPolicyProperties. |
|
Tests if the specified key is present in the table.
|