1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*******************************************************/
/* "C" Language Integrated Production System */
/* */
/* CLIPS Version 6.40 05/05/19 */
/* */
/* */
/*******************************************************/
/*************************************************************/
/* Purpose: */
/* */
/* Principal Programmer(s): */
/* Brian L. Dantes */
/* Gary D. Riley */
/* */
/* Contributing Programmer(s): */
/* */
/* Revision History: */
/* */
/* 6.40: New file for save-facts and load-facts. */
/* */
/* Added bsave-facts and bload-facts. */
/* */
/*************************************************************/
#ifndef _H_factfile
#pragma once
#define _H_factfile
#include "expressn.h"
#if DEFTEMPLATE_CONSTRUCT
#endif /* DEFTEMPLATE_CONSTRUCT */
void FactFileCommandDefinitions(Environment *);
void SaveFactsCommand(Environment *,UDFContext *,UDFValue *);
void LoadFactsCommand(Environment *,UDFContext *,UDFValue *);
long SaveFacts(Environment *,const char *,SaveScope);
long SaveFactsDriver(Environment *,const char *,SaveScope,struct expr *);
long LoadFacts(Environment *,const char *);
long LoadFactsFromString(Environment *,const char *,size_t);
void BinarySaveFactsCommand(Environment *,UDFContext *,UDFValue *);
void BinaryLoadFactsCommand(Environment *,UDFContext *,UDFValue *);
long BinarySaveFacts(Environment *,const char *,SaveScope);
long BinarySaveFactsDriver(Environment *,const char *,SaveScope,Expression *);
long BinaryLoadFacts(Environment *,const char *);
#endif /* _H_factfile */