#include <Metadata.hxx>
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. | |
Parameter * | getParameterAt (string name) |
Get a parameter in the set. | |
Parameter * | getParameterAt (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. | |
PropertySet & | operator= (const PropertySet &other) |
ParameterSet * | clone () |
Public Attributes | |
vector< DefaultProperty > | paramVec |
A vector of parameters. |
A PropertySet object contains a set of distinct DefaultPropertys.
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 | ( | ) |
string cqosdb::PropertySet::getClassName | ( | ) | [virtual] |
int cqosdb::PropertySet::getNumOfParameters | ( | ) | [virtual] |
string cqosdb::PropertySet::getTBName | ( | ) | [virtual] |
void cqosdb::PropertySet::addAParameter | ( | Parameter & | aParam | ) | [virtual] |
Parameter * cqosdb::PropertySet::getParameterAt | ( | string | name | ) | [virtual] |
Parameter * cqosdb::PropertySet::getParameterAt | ( | int | index | ) | [virtual] |
Get a parameter in the set.
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.
another | another parameter set | |
tMap | comparison tolerance values | |
rMap | comparison relations, which could be LT, LTEQ, GT, GTEQ, EQ, NEQ, BT |
Implements cqosdb::ParameterSet.
bool cqosdb::PropertySet::compareWith | ( | ParameterSet & | another, | |
map< string, int > | rMap | |||
) | [virtual] |
Compare with another parameter set of the same type.
another | another parameter set | |
rMap | comparison relations, which could be LT, LTEQ, GT, GTEQ, EQ, NEQ |
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.
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.
A vector of parameters.