Public Member Functions | Public Attributes

stactiverecord::Q Class Reference

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)
Qoperator|| (Q other)
Qoperator&& (Q other)
SarVector< int > test (std::string classname)
void dump ()
void free ()

Public Attributes

Wherewhere

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:
_keyThe key being queried
_wA Where object describing the limits of the query
stactiverecord::Q::Q ( std::string  _key,
std::string  _value 
) [inline]

Create query object

Parameters:
_keyThe key being queried
_valueThe exact value to match for the given key.
stactiverecord::Q::Q ( std::string  _key,
int  _ivalue 
) [inline]

Create query object

Parameters:
_keyThe key being queried
_ivalueThe exact value to match for the given key.
stactiverecord::Q::Q ( std::string  _key,
DateTime  _dtvalue 
) [inline]

Create query object

Parameters:
_keyThe key being queried
_dtvalueThe exact value to match for the given key.
stactiverecord::Q::Q ( std::string  _key,
bool  _bvalue 
) [inline]

Create query object.

Parameters:
_keyThe key being queried
_bvalueThe 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 )

Boolean and operator

Q & stactiverecord::Q::operator|| ( Q  other )

Boolean or operator

SarVector< int > stactiverecord::Q::test ( std::string  classname )

using the db, find all records that match

Parameters:
classnameThe classname to test

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Enumerations