A query object that supports boolean operations.
More...
#include <query.h>
List of all members.
Public Member Functions |
void | to_string (std::string &query) |
| Q (std::string _key, Where *_w) |
| Q (std::string _key, std::string _value) |
| Q (std::string _key, const char *_value) |
| Q (std::string _key, int _ivalue) |
| Q (std::string _key, DateTime _dtvalue) |
| Q (std::string _key, bool _bvalue) |
| Q (Where *_w) |
Q & | operator|| (Q other) |
Q & | operator&& (Q other) |
SarVector< int > | test (std::string classname) |
void | dump () |
void | free () |
Public Attributes |
Where * | where |
Detailed Description
A query object that supports boolean operations.
- Author:
- bmuller <bmuller@butterfat.net>
Constructor & Destructor Documentation
stactiverecord::Q::Q |
( |
std::string |
_key, |
|
|
Where * |
_w |
|
) |
| [inline] |
Create query object
- Parameters:
-
_key | The key being queried |
_w | A Where object describing the limits of the query |
stactiverecord::Q::Q |
( |
std::string |
_key, |
|
|
std::string |
_value |
|
) |
| [inline] |
Create query object
- Parameters:
-
_key | The key being queried |
_value | The exact value to match for the given key. |
stactiverecord::Q::Q |
( |
std::string |
_key, |
|
|
int |
_ivalue |
|
) |
| [inline] |
Create query object
- Parameters:
-
_key | The key being queried |
_ivalue | The exact value to match for the given key. |
stactiverecord::Q::Q |
( |
std::string |
_key, |
|
|
DateTime |
_dtvalue |
|
) |
| [inline] |
Create query object
- Parameters:
-
_key | The key being queried |
_dtvalue | The exact value to match for the given key. |
stactiverecord::Q::Q |
( |
std::string |
_key, |
|
|
bool |
_bvalue |
|
) |
| [inline] |
Create query object.
- Parameters:
-
_key | The key being queried |
_bvalue | The exact value to match for the given key. |
Member Function Documentation
void stactiverecord::Q::dump |
( |
) |
|
Print out all the other Q objects anded and ored
void stactiverecord::Q::free |
( |
) |
|
Free the memory used by the internal where instance var and the ones in the ored and anded objects.
Q & stactiverecord::Q::operator&& |
( |
Q |
other ) |
|
Q & stactiverecord::Q::operator|| |
( |
Q |
other ) |
|
SarVector< int > stactiverecord::Q::test |
( |
std::string |
classname ) |
|
using the db, find all records that match
- Parameters:
-
classname | The classname to test |
The documentation for this class was generated from the following files:
- stactiverecord/query.h
- stactiverecord/query.cpp