made SearchConditionType public
This commit is contained in:
parent
de3c9925c1
commit
3b2b457e3f
1 changed files with 27 additions and 11 deletions
|
@ -22,7 +22,7 @@
|
|||
|
||||
|
||||
Author : $Author: fgerlits $
|
||||
Version : $Revision: 1.1 $
|
||||
Version : $Revision: 1.2 $
|
||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/core/include/LiveSupport/Core/SearchCriteria.h,v $
|
||||
|
||||
------------------------------------------------------------------------------*/
|
||||
|
@ -93,6 +93,18 @@ namespace Core {
|
|||
*/
|
||||
class SearchCriteria
|
||||
{
|
||||
public:
|
||||
|
||||
/**
|
||||
* A type to hold a single search condition.
|
||||
*/
|
||||
struct SearchConditionType
|
||||
{
|
||||
std::string key;
|
||||
std::string comparisonOperator;
|
||||
std::string value;
|
||||
};
|
||||
|
||||
private:
|
||||
|
||||
/**
|
||||
|
@ -105,16 +117,6 @@ class SearchCriteria
|
|||
*/
|
||||
std::string logicalOperator;
|
||||
|
||||
/**
|
||||
* A type to hold a single search condition.
|
||||
*/
|
||||
struct SearchConditionType
|
||||
{
|
||||
std::string key;
|
||||
std::string comparisonOperator;
|
||||
std::string value;
|
||||
};
|
||||
|
||||
/**
|
||||
* A type to hold the list of search conditions.
|
||||
*/
|
||||
|
@ -241,6 +243,20 @@ class SearchCriteria
|
|||
const std::string & value)
|
||||
throw(std::invalid_argument);
|
||||
|
||||
/**
|
||||
* Add a search condition.
|
||||
*
|
||||
* @param condition the search condition to add
|
||||
*/
|
||||
void
|
||||
addCondition(const SearchConditionType & condition)
|
||||
throw(std::invalid_argument)
|
||||
{
|
||||
addCondition(condition.key,
|
||||
condition.comparisonOperator,
|
||||
condition.value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the limit field.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue