kbase.c File Reference

Implementations of Gabbie Knowledge Base. More...

#include <cassert>
#include <cstdio>
#include <cstring>
#include "hash.h"
#include "id.h"
#include "data.h"
#include "trace.h"
#include "kbase.h"
#include "dictionary.h"
#include "util.h"
#include "gabbie.h"
#include "tv.h"
#include "time.h"

Defines

#define MAX_LINE_SIZE   256
#define MAX_BEST   100

Functions

void AddInstToTable (Id tableId, Id keyId, Data *pData)
void ScanData (Data *pInst, Data *pData)
DataFindName (Id nameId)
DataFindClass (Id id)
DataFindInst (Id inst)
void AddToInstTable (Id inst, Data *p)
void * ValidateInst (Id idInst, Data *pData)
void MakeInst ()
void ReadKBaseFile (char *fileName)
DataQueryClassProp (Context *p)
DataDoCalc (Context *p)
DataQueryInstProp (Data *pInst, Id prop, Context *p)
DataHelpQueryInstProp (Data *pInstList, Data *pPropList, Context *p)
DataDoQuery (Context *p)
DataTraverse (Data *pData, Id parentAttr, Context *&pContext)
DataProcessData (Data *pData)


Detailed Description

Implementations of Gabbie Knowledge Base.

Author:
Bryan Jacobson, 2006.

Define Documentation

#define MAX_BEST   100
 

#define MAX_LINE_SIZE   256
 


Function Documentation

void AddInstToTable Id  tableId,
Id  keyId,
Data pData
 

void AddToInstTable Id  inst,
Data p
 

Data* DoCalc Context p  ) 
 

Data* DoQuery Context p  ) 
 

Data* FindClass Id  id  ) 
 

Data* FindInst Id  inst  ) 
 

Data* FindName Id  nameId  ) 
 

Data* HelpQueryInstProp Data pInstList,
Data pPropList,
Context p
 

void MakeInst  ) 
 

Data* ProcessData Data pData  ) 
 

Data* QueryClassProp Context p  ) 
 

Data* QueryInstProp Data pInst,
Id  prop,
Context p
 

void ReadKBaseFile char *  fileName  ) 
 

void ScanData Data pInst,
Data pData
 

Data* Traverse Data pData,
Id  parentAttr,
Context *&  pContext
 

Pointer to reference allows Push and Pop to treat pContext like a stack.

void* ValidateInst Id  idInst,
Data pData
 


Generated on Sun Oct 8 09:32:09 2006 for gabbie by  doxygen 1.4.6