clipsmm - C++ CLIPS Interface Library
Main Page
Namespaces
Classes
Files
File List
File Members
clipsmm
fact.h
Go to the documentation of this file.
1
/***************************************************************************
2
* Copyright (C) 2006 by Rick L. Vinyard, Jr. *
3
* rvinyard@cs.nmsu.edu *
4
* *
5
* This file is part of the clipsmm library. *
6
* *
7
* The clipsmm library is free software; you can redistribute it and/or *
8
* modify it under the terms of the GNU General Public License *
9
* version 3 as published by the Free Software Foundation. *
10
* *
11
* The clipsmm library is distributed in the hope that it will be *
12
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty *
13
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
14
* General Public License for more details. *
15
* *
16
* You should have received a copy of the GNU General Public License *
17
* along with this software. If not see <http://www.gnu.org/licenses/>. *
18
***************************************************************************/
19
#ifndef CLIPSFACT_H
20
#define CLIPSFACT_H
21
22
#include <string>
23
#include <vector>
24
25
#include <
clipsmm/environmentobject.h
>
26
#include <
clipsmm/template.h
>
27
#include <
clipsmm/factory.h
>
28
29
namespace
CLIPS {
30
34
class
Fact
:
public
EnvironmentObject
{
35
public
:
36
typedef
CLIPSPointer<Fact>
pointer
;
37
38
Fact
(
Environment
&
environment
,
void
*
cobj
=NULL );
39
40
static
Fact::pointer
create
(
Environment
&
environment
,
void
*
cobj
=NULL );
41
42
~Fact
();
43
48
bool
assign_slot_defaults
();
49
51
Template::pointer
get_template
();
52
57
bool
exists
();
58
63
long
int
index
();
64
66
std::vector<std::string>
slot_names
();
67
69
Values
slot_value
(
const
std::string& slot_name);
70
72
Fact::pointer
next
();
73
75
bool
set_slot
(
const
std::string& slot_name,
const
Values
& values);
76
78
bool
set_slot
(
const
std::string& slot_name,
const
Value
& value);
79
81
bool
retract
();
82
83
protected
:
84
85
};
86
87
}
88
89
#endif
Generated on Thu Sep 27 2012 17:57:05 for clipsmm by
1.8.1.2