00001 /*******************************************************/ 00002 /* "C" Language Integrated Production System */ 00003 /* */ 00004 /* CLIPS Version 6.20 01/31/02 */ 00005 /* */ 00006 /* DEFTEMPLATE BSAVE/BLOAD HEADER FILE */ 00007 /*******************************************************/ 00008 00009 /*************************************************************/ 00010 /* Purpose: */ 00011 /* */ 00012 /* Principal Programmer(s): */ 00013 /* Gary D. Riley */ 00014 /* */ 00015 /* Contributing Programmer(s): */ 00016 /* Brian L. Dantes */ 00017 /* */ 00018 /* Revision History: */ 00019 /* */ 00020 /*************************************************************/ 00021 00022 #if (! RUN_TIME) 00023 #ifndef _H_tmpltbin 00024 00025 #define _H_tmpltbin 00026 00027 struct bsaveTemplateSlot 00028 { 00029 unsigned long slotName; 00030 unsigned int multislot : 1; 00031 unsigned int noDefault : 1; 00032 unsigned int defaultPresent : 1; 00033 unsigned int defaultDynamic : 1; 00034 long constraints; 00035 long defaultList; 00036 long facetList; 00037 long next; 00038 }; 00039 00040 struct bsaveDeftemplate; 00041 struct bsaveDeftemplateModule; 00042 00043 #include "cstrcbin.h" 00044 00045 struct bsaveDeftemplate 00046 { 00047 struct bsaveConstructHeader header; 00048 long slotList; 00049 unsigned int implied : 1; 00050 unsigned int numberOfSlots : 15; 00051 long patternNetwork; 00052 }; 00053 00054 #include "modulbin.h" 00055 00056 struct bsaveDeftemplateModule 00057 { 00058 struct bsaveDefmoduleItemHeader header; 00059 }; 00060 00061 #define TMPLTBIN_DATA 61 00062 00063 struct deftemplateBinaryData 00064 { 00065 struct deftemplate *DeftemplateArray; 00066 long NumberOfDeftemplates; 00067 long NumberOfTemplateSlots; 00068 long NumberOfTemplateModules; 00069 struct templateSlot *SlotArray; 00070 struct deftemplateModule *ModuleArray; 00071 }; 00072 00073 #define DeftemplateBinaryData(theEnv) ((struct deftemplateBinaryData *) GetEnvironmentData(theEnv,TMPLTBIN_DATA)) 00074 00075 #define DeftemplatePointer(i) ((struct deftemplate *) (&DeftemplateBinaryData(theEnv)->DeftemplateArray[i])) 00076 00077 #ifndef _H_tmpltdef 00078 #include "tmpltdef.h" 00079 #endif 00080 00081 #ifdef LOCALE 00082 #undef LOCALE 00083 #endif 00084 00085 #ifdef _TMPLTBIN_SOURCE_ 00086 #define LOCALE 00087 #else 00088 #define LOCALE extern 00089 #endif 00090 00091 LOCALE void DeftemplateBinarySetup(void *); 00092 LOCALE void *BloadDeftemplateModuleReference(void *,int); 00093 00094 #endif 00095 #endif 00096 00097 00098
1.5.6