cqosdb::PropertySet Class Reference

An implementation of ParameterSet. More...

#include <Metadata.hxx>

Inheritance diagram for cqosdb::PropertySet:

cqosdb::ParameterSet

List of all members.

Public Member Functions

 PropertySet (vector< DefaultProperty > &pVec)
 Constructor: initialize with a vector of Parameters.
 PropertySet ()
 PropertySet (const PropertySet &other)
 ~PropertySet ()
string getClassName ()
 Return class name.
int getNumOfParameters ()
 Get count of parameters in the set.
string getTBName ()
 Get table where the set is store in database.
void addAParameter (Parameter &aParam)
 Add a parameter to the set.
ParametergetParameterAt (string name)
 Get a parameter in the set.
ParametergetParameterAt (int index)
 Get a parameter in the set.
bool compareWith (ParameterSet &another, map< string, double > tMap, map< string, int > rMap)
 Compare with another parameter set of the same type.
bool compareWith (ParameterSet &another, map< string, int > rMap)
 Compare with another parameter set of the same type.
string getDBConditions (int *tbIndices, map< string, double > tMap, map< string, int > rMap)
 Produce a SQL string text that specifies conditions related to the parameter set, which can be used in 'where' clause in a SQL command.
PropertySetoperator= (const PropertySet &other)
ParameterSetclone ()

Public Attributes

vector< DefaultPropertyparamVec
 A vector of parameters.


Detailed Description

An implementation of ParameterSet.

A PropertySet object contains a set of distinct DefaultPropertys.


Constructor & Destructor Documentation

cqosdb::PropertySet::PropertySet ( vector< DefaultProperty > &  pVec  ) 

Constructor: initialize with a vector of Parameters.

cqosdb::PropertySet::PropertySet (  )  [inline]

cqosdb::PropertySet::PropertySet ( const PropertySet other  ) 

cqosdb::PropertySet::~PropertySet (  ) 


Member Function Documentation

string cqosdb::PropertySet::getClassName (  )  [virtual]

Return class name.

Implements cqosdb::ParameterSet.

int cqosdb::PropertySet::getNumOfParameters (  )  [virtual]

Get count of parameters in the set.

Implements cqosdb::ParameterSet.

string cqosdb::PropertySet::getTBName (  )  [virtual]

Get table where the set is store in database.

Implements cqosdb::ParameterSet.

void cqosdb::PropertySet::addAParameter ( Parameter aParam  )  [virtual]

Add a parameter to the set.

Implements cqosdb::ParameterSet.

Parameter * cqosdb::PropertySet::getParameterAt ( string  name  )  [virtual]

Get a parameter in the set.

Parameters:
name Parameter name

Implements cqosdb::ParameterSet.

Parameter * cqosdb::PropertySet::getParameterAt ( int  index  )  [virtual]

Get a parameter in the set.

Parameters:
index Parameter index in the set

Implements cqosdb::ParameterSet.

bool cqosdb::PropertySet::compareWith ( ParameterSet another,
map< string, double >  tMap,
map< string, int >  rMap 
) [virtual]

Compare with another parameter set of the same type.

Parameters:
another another parameter set
tMap comparison tolerance values
rMap comparison relations, which could be LT, LTEQ, GT, GTEQ, EQ, NEQ, BT
Returns:
true if every pair of parameters comparison is true false otherwise

Implements cqosdb::ParameterSet.

bool cqosdb::PropertySet::compareWith ( ParameterSet another,
map< string, int >  rMap 
) [virtual]

Compare with another parameter set of the same type.

Parameters:
another another parameter set
rMap comparison relations, which could be LT, LTEQ, GT, GTEQ, EQ, NEQ
Returns:
true if every pair of parameters comparison is true false otherwise

Implements cqosdb::ParameterSet.

string cqosdb::PropertySet::getDBConditions ( int *  tbIndices,
map< string, double >  tMap,
map< string, int >  rMap 
) [virtual]

Produce a SQL string text that specifies conditions related to the parameter set, which can be used in 'where' clause in a SQL command.

Parameters:
tbIndices indices of tables storing the parameter set
tMap comparison tolerance values
rMap comparison relations, either L, LTEQ, EQ, NEQ, GT, GTEQ, or BT

Implements cqosdb::ParameterSet.

PropertySet & cqosdb::PropertySet::operator= ( const PropertySet other  ) 

ParameterSet * cqosdb::PropertySet::clone (  )  [virtual]

Implements cqosdb::ParameterSet.


Member Data Documentation

A vector of parameters.


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

Generated on Tue Sep 23 19:59:06 2008 for CQoS Database Library by  doxygen 1.5.5