Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

qofid.h File Reference


Detailed Description

QOF entity type identification system.

Author:
Copyright (C) 2000 Dave Peticolas <peticola@cs.ucdavis.edu>

Copyright (C) 2003 Linas Vepstas <linas@linas.org>

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

Data Structures

struct  QofEntity_s

Collections of Entities

typedef void(* QofEntityForeachCB )(QofEntity *, gpointer user_data)
QofCollection * qof_collection_new (QofIdType type)
void qof_collection_destroy (QofCollection *col)
QofIdType qof_collection_get_type (QofCollection *)
QofEntity * qof_collection_lookup_entity (QofCollection *, const GUID *)
void qof_collection_foreach (QofCollection *, QofEntityForeachCB, gpointer user_data)
gpointer qof_collection_get_data (QofCollection *col)
void qof_collection_set_data (QofCollection *col, gpointer user_data)
gboolean qof_collection_is_dirty (QofCollection *col)

QOF Entity Initialization & Shutdown

void qof_entity_init (QofEntity *, QofIdType, QofCollection *)
void qof_entity_release (QofEntity *)

Defines

#define QOF_ID_NONE   NULL
#define QOF_ID_NULL   "null"
#define QOF_ID_BOOK   "Book"
#define QOF_ID_FREQSPEC   "FreqSpec"
#define QOF_ID_SESSION   "Session"
#define QOF_ENTITY(object)   ((QofEntity *)(object))
#define QSTRCMP(da, db)
#define QOF_CHECK_TYPE(obj, type)   (0 == QSTRCMP((type),(((QofEntity *)(obj))->e_type)))
#define QOF_CHECK_CAST(obj, e_type, c_type)

Typedefs

typedef const char * QofIdType
typedef const char * QofIdTypeConst
typedef QofEntity_s QofEntity
typedef QofCollection_s QofCollection

Functions

const GUIDqof_entity_get_guid (QofEntity *)


Generated on Sun May 23 15:41:46 2004 for QOF by doxygen 1.3.6-20040222