/* * $Id: tmresult.h,v 1.1.1.1 2004/08/25 19:21:34 jan Exp $ * * Copyright (c) 2002 Jan Algermissen * See the file "COPYING" for copying permission. * */ #ifndef TM_RESULT_H #define TM_RESULT_H typedef struct TMResult *TMResult; #include #include #include #include #include #include #include #ifdef __cplusplus extern "C" { #endif typedef enum TMResultType { TM_RESULT_TABLE, TM_RESULT_TOPICMAP, TM_RESULT_SUBJECTS } TMResultType; struct TMResult { TM tm; /**< TM Handle */ TMPool pool; TMResultType type; /* TM_RESULT_TABLE */ TMProperty *prop_heading; int nrows; int ncols; void **vtable; /* TM_RESULT_TOPICMAP */ TMTopicMap topicmap; /* TM_RESULT_SUBJECTS */ int nsubjects; struct TMSubject *subjects; TMTopic *topics; }; TM_API(void) tm_result_delete(TMResult *pself); #ifdef __cplusplus } // extern "C" #endif #endif