Main Page | Class Hierarchy | Class List | File List | Class Members | Related Pages

glite::rgma::Storage Class Reference

#include <Storage.h>

List of all members.

Public Member Functions

 Storage (const Storage &storage)
Storageoperator= (const Storage &storage)
bool isDatabase ()
bool isFile ()
bool isMemory ()
std::string getPassword ()
std::string getLocation ()
std::string getUserName ()
std::string getLogicalName ()
bool hasDetails ()
int hashCode ()
bool operator== (const Storage storage)
bool operator!= (const Storage storage)
bool equals (Storage Storage)
int getType ()

Static Public Member Functions

Storage getDatabase (const std::string location, const std::string userName, const std::string password)
Storage getDatabase (const std::string logicalName)

Static Public Attributes

const Storage MEMORY
const Storage DATABASE
const Storage FILE

Protected Member Functions

 Storage (int type)
 Storage (const int type, const std::string logicalName)
 Storage (const std::string location, const std::string userName, const std::string password)

Static Protected Attributes

const int M = 1
const int D = 2
const int F = 4


Detailed Description

The location where tuples will be stored. There are three options:


Constructor & Destructor Documentation

glite::rgma::Storage::Storage const Storage storage  ) 
 

copy constructor

glite::rgma::Storage::Storage int  type  )  [protected]
 

Creates a new Storage object.

Parameters:
location Storage.MEMORY or Storage.DATABASE

glite::rgma::Storage::Storage const int  type,
const std::string  logicalName
[protected]
 

Creates a new Storage object.

Parameters:
type Type of storage.
logicalName Logical name of storage medium.

glite::rgma::Storage::Storage const std::string  location,
const std::string  userName,
const std::string  password
[protected]
 

Creates a new DATABASE StorageLocation object.

Parameters:
location The URL of the storage system (e.g. dbms)
userName userName to access storage medium.
password password to access storage medium.


Member Function Documentation

bool glite::rgma::Storage::equals Storage  Storage  ) 
 

Compares this StorageLocation to the specified location.

Parameters:
storage Another Storage object.
Returns:
true if the specified storage location is identical to this one false otherwise.

Storage glite::rgma::Storage::getDatabase const std::string  logicalName  )  [static]
 

Gets a DATABASE Storage object for the specified database.

Parameters:
logicalName The logical name of the storage system
Returns:
A Storage object for the specified database.

Storage glite::rgma::Storage::getDatabase const std::string  location,
const std::string  userName,
const std::string  password
[static]
 

Gets a DATABASE StorageLocation object for the specified database.

Parameters:
url The URL of the storage system (e.g. dbms)
userName The user name for the storage system.
password The password for the storage system.
Deprecated:
Returns:
A StorageLocation object for the specified database.

std::string glite::rgma::Storage::getLocation  ) 
 

Gets the location for this storage system.

Returns:
location as a String

std::string glite::rgma::Storage::getLogicalName  ) 
 

Gets the user name for this storage system.

Returns:
User name as a String

std::string glite::rgma::Storage::getPassword  ) 
 

Gets the password for this storage system.

Returns:
Password as a String

std::string glite::rgma::Storage::getUserName  ) 
 

Gets the user name for this storage system.

Returns:
User name as a String

bool glite::rgma::Storage::hasDetails  ) 
 

Determines if this Storage contains storage details.

Returns:
true if it has storage details, otherwise false.

int glite::rgma::Storage::hashCode  ) 
 

Returns a hash code value for this Storage object.

Deprecated:
Returns:
Hash code value for this Storage object.

bool glite::rgma::Storage::isDatabase  ) 
 

Determines if this storage system is a database.

Returns:
True if the storage system is a database.

bool glite::rgma::Storage::isFile  ) 
 

Determines if this storage system is a file.

Deprecated:
Returns:
True if the storage system is a file.

bool glite::rgma::Storage::isMemory  ) 
 

Determines if this storage system is memory.

Returns:
True if the storage system is memory.

bool glite::rgma::Storage::operator!= const Storage  storage  ) 
 

Compares this StorageLocation to the specified location.

Parameters:
storage Another StorageLocation object.
Returns:
false if the specified storage location is identical to this one false otherwise.

Storage & glite::rgma::Storage::operator= const Storage storage  ) 
 

assignment operator

bool glite::rgma::Storage::operator== const Storage  storage  ) 
 

Compares this StorageLocation to the specified location.

Parameters:
storage Another Storage object.
Returns:
true if the specified storage location is identical to this one false otherwise.


Member Data Documentation

const int glite::rgma::Storage::D = 2 [static, protected]
 

The database storage location.

const Storage glite::rgma::Storage::DATABASE [static]
 

The default DATABASE storage location.

const int glite::rgma::Storage::F = 4 [static, protected]
 

The file storage location.

const Storage glite::rgma::Storage::FILE [static]
 

The default FILE storage location.

const int glite::rgma::Storage::M = 1 [static, protected]
 

The memory storage location.

const Storage glite::rgma::Storage::MEMORY [static]
 

The default MEMORY storage location.


The documentation for this class was generated from the following files:
Generated on Fri Mar 16 14:00:16 2007 for glite-rgma-api-cpp by doxygen 1.3.5