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. <rvinyard@cs.nmsu.edu> *
3
* Copyright (C) 2013 by Tim Niemueller <tim@niemueller.de> *
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
static
Fact::pointer
create
(
Environment
&
environment
,
Template::pointer
temp );
42
43
~Fact
();
44
49
bool
assign_slot_defaults
();
50
52
Template::pointer
get_template
();
53
58
bool
exists
()
const
;
59
64
long
int
index
()
const
;
65
67
std::vector<std::string>
slot_names
();
68
70
Values
slot_value
(
const
std::string& slot_name);
71
73
Fact::pointer
next
();
74
76
bool
set_slot
(
const
std::string& slot_name,
const
Values
& values);
77
79
bool
set_slot
(
const
std::string& slot_name,
const
Value
& value);
80
82
bool
retract
();
83
84
bool
operator==
(
const
Fact
&other)
const
;
85
bool
operator==
(
const
Fact::pointer
&other)
const
;
86
87
unsigned
int
refcount
()
const
;
88
89
protected
:
90
91
};
92
93
}
94
95
#endif
Generated on Sat Apr 13 2013 10:04:52 for clipsmm by
1.8.1.1