GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Functions
qofid.h File Reference

QOF entity type identification system. More...

#include <string.h>
#include "guid.h"
#include "qofinstance.h"

Go to the source code of this file.

Macros

#define QOF_ID_NONE   NULL
 
#define QOF_ID_NULL   "null"
 
#define QOF_ID_BOOK   "Book"
 
#define QOF_ID_SESSION   "Session"
 
#define QSTRCMP(da, db)
 
#define QOF_CHECK_TYPE(obj, type)
 
#define QOF_CHECK_CAST(obj, e_type, c_type)
 

Typedefs

typedef const gchar * QofIdType
 
typedef const gchar * QofIdTypeConst
 
typedef const gchar * QofLogModule
 
typedef struct QofCollection_s QofCollection
 

Functions

gboolean qof_get_alt_dirty_mode (void)
 
void qof_set_alt_dirty_mode (gboolean enabled)
 
QOF_TYPE_COLLECT: Linking one entity to many of one type
Note
These are NOT the same as the main collections in the book.

QOF_TYPE_COLLECT is a secondary collection, used to select entities of one object type as references of another entity.

See Also
QOF_TYPE_CHOICE.
gboolean qof_collection_add_entity (QofCollection *coll, QofInstance *ent)
 Add an entity to a QOF_TYPE_COLLECT. More...
 
void qof_collection_remove_entity (QofInstance *ent)
 
gint qof_collection_compare (QofCollection *target, QofCollection *merge)
 Compare two secondary collections. More...
 
QofCollection * qof_collection_from_glist (QofIdType type, const GList *glist)
 Create a secondary collection from a GList. More...
 

Collections of Entities

typedef void(* QofInstanceForeachCB )(QofInstance *, gpointer user_data)
 
QofCollection * qof_collection_new (QofIdType type)
 
guint qof_collection_count (const QofCollection *col)
 
void qof_collection_destroy (QofCollection *col)
 
QofIdType qof_collection_get_type (const QofCollection *)
 
QofInstanceqof_collection_lookup_entity (const QofCollection *, const GncGUID *)
 
void qof_collection_foreach (const QofCollection *, QofInstanceForeachCB, gpointer user_data)
 
gpointer qof_collection_get_data (const QofCollection *col)
 
void qof_collection_set_data (QofCollection *col, gpointer user_data)
 
gboolean qof_collection_is_dirty (const QofCollection *col)
 

Detailed Description

QOF entity type identification system.

Author
Copyright (C) 2000 Dave Peticolas petic.nosp@m.ola@.nosp@m.cs.uc.nosp@m.davi.nosp@m.s.edu
Copyright (C) 2003 Linas Vepstas linas.nosp@m.@lin.nosp@m.as.or.nosp@m.g

Definition in file qofid.h.