clipsmm - C++ CLIPS Interface Library

clipsmm logo
module.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 CLIPSMODULE_H
20#define CLIPSMODULE_H
21
23
24namespace CLIPS {
25
30public:
31 typedef CLIPSPointer<Module> pointer;
32
33 Module( Environment& environment, void* cobj=NULL );
34
35 static Module::pointer create( Environment& environment, void* cobj=NULL );
36
37 ~Module();
38
39 std::string name();
40
41 std::string formatted();
42
44
45 // TODO add accessors for getting items associated with a module
46
49
50 void focus();
51
52};
53
54}
55
56#endif
Definition: environmentobject.h:32
Environment & environment() const
Definition: environmentobject.cpp:33
Definition: environment.h:57
Definition: module.h:29
Module::pointer next()
Definition: module.cpp:59
void focus()
Definition: module.cpp:83
static Module::pointer create(Environment &environment, void *cobj=NULL)
Definition: module.cpp:34
~Module()
Definition: module.cpp:39
std::string name()
Definition: module.cpp:43
CLIPSPointer< Module > pointer
Definition: module.h:31
std::string formatted()
Definition: module.cpp:51
Module::pointer set_current()
Sets the current module and returns the old module.
Definition: module.cpp:71
void * cobj() const
Returns a pointer to the underlying CLIPS C object.
Definition: object.cpp:33
Definition: activation.cpp:29

Generated on Thu Apr 13 2023 00:00:00 for clipsmm by doxygen 1.9.5