32 #ifndef QOF_QUERYCORE_H 33 #define QOF_QUERYCORE_H 72 QOF_STRING_MATCH_NORMAL = 1,
73 QOF_STRING_MATCH_CASEINSENSITIVE
85 QOF_DATE_MATCH_NORMAL = 1,
103 QOF_NUMERIC_MATCH_DEBIT = 1,
104 QOF_NUMERIC_MATCH_CREDIT,
105 QOF_NUMERIC_MATCH_ANY
134 QOF_CHAR_MATCH_ANY = 1,
168 QofQueryPredData *qof_query_guid_predicate (
QofGuidMatch options, GList *guids);
169 QofQueryPredData *qof_query_int32_predicate (
QofQueryCompare how, gint32 val);
170 QofQueryPredData *qof_query_int64_predicate (
QofQueryCompare how, gint64 val);
171 QofQueryPredData *qof_query_double_predicate (
QofQueryCompare how,
double val);
172 QofQueryPredData *qof_query_boolean_predicate (
QofQueryCompare how, gboolean val);
173 QofQueryPredData *qof_query_char_predicate (
QofCharMatch options,
175 QofQueryPredData *qof_query_collect_predicate (
QofGuidMatch options,
176 QofCollection *coll);
177 QofQueryPredData *qof_query_choice_predicate (
QofGuidMatch options, GList *guids);
187 gboolean qof_query_char_predicate_get_char (
const QofQueryPredData *pd,
char **chars);
199 QofParam *this_param);
Date and Time handling routines.
void qof_query_core_predicate_free(QofQueryPredData *pdata)
Destroy a predicate.
const char * QofType
Type of Parameters (String, Date, Numeric, GncGUID, etc.)
An exact-rational-number library for gnucash.
QofStringMatch
List of known core query data-types...
These expect a single object and expect the QofAccessFunc returns GncGUID*.
GSList QofQueryParamList
A list of parameters (QofIdType) used to describe a parameter to use in a predicate or when sorting...
gboolean qof_query_date_predicate_get_date(const QofQueryPredData *pd, time64 *date)
Retrieve a predicate.
char * qof_query_core_to_string(QofType, gpointer object, QofParam *getter)
Return a printable string for a core data object.
QofQueryCompare
Standard Query comparators, for how to compare objects in a predicate.
QofCharMatch
A CHAR type is for a RECNCell, Comparisons for QOF_TYPE_CHAR 'ANY' will match any character in the st...
These expect a single object and expect the QofAccessFunc function to return a GList* of GncGUID* (th...
These expect a GList* of objects and calls the QofAccessFunc routine on each item in the list to obta...
API for registering parameters on objects.
No extended comparisons for QOF_TYPE_INT32, QOF_TYPE_INT64, QOF_TYPE_DOUBLE, QOF_TYPE_BOOLEAN.
int qof_string_number_compare_func(gpointer a, gpointer b, gint options, QofParam *this_param)
Compare two parameter(strings) as if they are numbers! the two objects, a and b, are the objects bein...
QofDateMatch
Comparisons for QOF_TYPE_DATE The QOF_DATE_MATCH_DAY comparison rounds the two time values to mid-day...
gint64 time64
Most systems that are currently maintained, including Microsoft Windows, BSD-derived Unixes and Linux...
QofQueryPredData * qof_query_core_predicate_copy(const QofQueryPredData *pdata)
Copy a predicate.
QofNumericMatch
Comparisons for QOF_TYPE_NUMERIC, QOF_TYPE_DEBCRED.