An implementation of RFC-iCalendar CAL-QUERY.
More...
#include </home/doug/src/SoftwareAndServices/libSaSiCalendar/cal_query.hpp>
|
enum | quote_errors { NO_END_QUOTE_e = 1,
NO_DATA_PROVIDED_e,
UNKNOWN_BACKSLASH_ESCAPE_e,
NO_TERM_FOUND_e
} |
| These are C++ objects that can be thrown as errors. More...
|
|
An implementation of RFC-iCalendar CAL-QUERY.
Definition at line 78 of file cal_query.hpp.
◆ quote_errors
These are C++ objects that can be thrown as errors.
Definition at line 204 of file BaseValueType.hpp.
◆ cal_query() [1/2]
SoftwareAndServices::Library::iCalendar::cal_query::cal_query |
( |
| ) |
|
◆ cal_query() [2/2]
SoftwareAndServices::Library::iCalendar::cal_query::cal_query |
( |
const char * |
selectClause, |
|
|
const char * |
fromClause = NULL , |
|
|
const char * |
whereClause = NULL |
|
) |
| |
◆ ~cal_query()
virtual SoftwareAndServices::Library::iCalendar::cal_query::~cal_query |
( |
| ) |
|
|
virtual |
◆ addQuotes()
static char* SoftwareAndServices::Library::iCalendar::BaseValueType::addQuotes |
( |
const char * |
text | ) |
|
|
staticinherited |
Add quotes to the value.
Caller MUST free results.
- Parameters
-
text | The text to be de-quoted. |
- Returns
- The de-quoted data.
◆ decInstance()
◆ escape()
static char* SoftwareAndServices::Library::iCalendar::BaseValueType::escape |
( |
const char * |
text | ) |
|
|
staticinherited |
Escape a value and return an RFC-iCalendar value encoded.
Caller MUST free results.
- Parameters
-
- Returns
- The escaped string.
◆ From() [1/2]
const char* SoftwareAndServices::Library::iCalendar::cal_query::From |
( |
| ) |
const |
◆ From() [2/2]
bool SoftwareAndServices::Library::iCalendar::cal_query::From |
( |
const char * |
fromClause | ) |
|
- Parameters
-
fromClause | Set the FROM part of the cal_query. |
- Returns
- TRUE when set and parsed correctly.
◆ get()
const char* SoftwareAndServices::Library::iCalendar::cal_query::get |
( |
| ) |
const |
- Returns
- The cal_query string in RFC-iCalendar format.
◆ getData()
const value* SoftwareAndServices::Library::iCalendar::BaseValueType::getData |
( |
| ) |
const |
|
inherited |
Get the pointer to the data being stored.
- Returns
- Pointer to the data being stored.
◆ getInstance()
- Returns
- The current instance count.
Definition at line 118 of file instance.hpp.
◆ getType()
Tokens_t SoftwareAndServices::Library::iCalendar::BaseValueType::getType |
( |
| ) |
const |
|
inherited |
Get the type of data being stored.
If it returns Unknown_t, call getXType()
- Returns
- The type of data being stored.
- See also
- getXValueType()
◆ getXValueType()
const char* SoftwareAndServices::Library::iCalendar::BaseValueType::getXValueType |
( |
| ) |
const |
|
inherited |
Get the type of data being stored.
If it returns NULL, call getType()
- Returns
- The type of data being stored as a string.
- See also
- geXValueType()
◆ incInstance()
◆ operator delete()
void SoftwareAndServices::Library::iCalendar::BaseValueType::operator delete |
( |
void * |
data | ) |
|
|
inherited |
This class uses instance counting, this entry point overloads the default delete() operator in order to correctly track the instance.
◆ parse() [1/2]
bool SoftwareAndServices::Library::iCalendar::cal_query::parse |
( |
Parse & |
in, |
|
|
component * |
errors |
|
) |
| |
#Parse a cal_query
- Parameters
-
in | An open Parse object. |
errors | Were any errors may be saved. |
- Returns
- TRUE when parsed successfully.
◆ parse() [2/2]
bool SoftwareAndServices::Library::iCalendar::cal_query::parse |
( |
const char * |
in, |
|
|
component * |
errors |
|
) |
| |
#Parse a cal_query
- Parameters
-
in | A pointer to a cal_query string. |
errors | Were any errors may be saved. |
- Returns
- TRUE when parsed successfully.
◆ removeQuotes()
static char* SoftwareAndServices::Library::iCalendar::BaseValueType::removeQuotes |
( |
const char * |
text | ) |
|
|
staticinherited |
Remove quotes from a user supplied value so that the raw data can be stored.
Caller MUST free results.
- Parameters
-
text | The text to be de-quoted. No harm if it does not already contain quotes. |
- Returns
- The de-quoted data.
◆ Select() [1/2]
const char* SoftwareAndServices::Library::iCalendar::cal_query::Select |
( |
| ) |
const |
◆ Select() [2/2]
bool SoftwareAndServices::Library::iCalendar::cal_query::Select |
( |
const char * |
selectClause | ) |
|
- Parameters
-
selectClause | Set the SELECT part of the cal_query. |
- Returns
- TRUE when set and parsed correctly.
◆ setData()
void SoftwareAndServices::Library::iCalendar::BaseValueType::setData |
( |
void * |
DataPtr | ) |
|
|
inherited |
Set the data to the data being stored.
- Parameters
-
DataPtr | Pointer to the data. |
◆ setType()
void SoftwareAndServices::Library::iCalendar::BaseValueType::setType |
( |
Tokens_t |
Token | ) |
|
|
inherited |
Set the type of data being stored.
If the type is not a predefined one, call setXValueType()
- Parameters
-
Token | The type of data being stored. |
- See also
- setXValueType()
◆ setXValueType()
void SoftwareAndServices::Library::iCalendar::BaseValueType::setXValueType |
( |
const char * |
xValType | ) |
|
|
inherited |
Set the type of data being stored - non-standard types only.
If the type is a predefined one, call setValueType()
- Parameters
-
xValType | The type of data being stored as a string. |
- See also
- setValueType()
◆ sprint()
virtual bool SoftwareAndServices::Library::iCalendar::cal_query::sprint |
( |
String * |
Results | ) |
const |
|
virtual |
◆ sprintTokensAsText()
static bool SoftwareAndServices::Library::iCalendar::BaseValueType::sprintTokensAsText |
( |
String * |
Results, |
|
|
Tokens_t |
token |
|
) |
| |
|
staticinherited |
Called by text2token() to get the token name as a String.
- Parameters
-
Results | The token name as a String. |
token | The token to convert to a string. |
- Returns
- TRUE when something appended to Results.
◆ unescape()
static char* SoftwareAndServices::Library::iCalendar::BaseValueType::unescape |
( |
const char * |
text, |
|
|
const char * |
term |
|
) |
| |
|
staticinherited |
Un-escape a value and return what a user originally entered.
Caller MUST delete results when done. The string would have been encoded as an RFC-iCalendar value encoding.
- Parameters
-
text | the text to un-escape. |
term | A string to be used as the data separator. This value is passed to strpbrk(). |
- Returns
- The un-escaped string.
◆ Where() [1/2]
const char* SoftwareAndServices::Library::iCalendar::cal_query::Where |
( |
| ) |
const |
◆ Where() [2/2]
bool SoftwareAndServices::Library::iCalendar::cal_query::Where |
( |
const char * |
whereClause | ) |
|
- Parameters
-
whereClause | Set the WHERE part of the cal_query. |
- Returns
- TRUE when set and parsed correctly.
◆ tokenStrings
const char** SoftwareAndServices::Library::iCalendar::BaseValueType::tokenStrings |
|
staticinherited |
A list of strings for the names of tokens.
The token value used as an offset into this array is the name of the token as a string.
The strings "X_COMP", "X_PROP", and "XPARAM" ARE included. Strings matching X_COMP, X_PROP, and XPARAM values are not included.
Definition at line 144 of file BaseValueType.hpp.
The documentation for this class was generated from the following file: