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 
24 namespace CLIPS {
25 
29 class Module: public EnvironmentObject {
30 public:
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
CLIPS::Module::create
static Module::pointer create(Environment &environment, void *cobj=NULL)
Definition: module.cpp:51
CLIPS::Object::cobj
void * cobj() const
Returns a pointer to the underlying CLIPS C object.
Definition: object.cpp:50
CLIPS::EnvironmentObject::m_environment
Environment & m_environment
Definition: environmentobject.h:58
CLIPS::Module::Module
Module(Environment &environment, void *cobj=NULL)
Definition: module.cpp:46
module.h
CLIPS::Module::formatted
std::string formatted()
Definition: module.cpp:68
CLIPS::Module::next
Module::pointer next()
Definition: module.cpp:76
CLIPS::EnvironmentObject::environment
Environment & environment() const
Definition: environmentobject.cpp:50
CLIPS::Module::set_current
Module::pointer set_current()
Sets the current module and returns the old module.
Definition: module.cpp:88
CLIPS::Module::name
std::string name()
Definition: module.cpp:60
CLIPS
Definition: activation.cpp:29
CLIPS::Module::pointer
CLIPSPointer< Module > pointer
Definition: module.h:65
environment.h
environmentobject.h
CLIPS::Module::~Module
~Module()
Definition: module.cpp:56
CLIPS::Module::focus
void focus()
Definition: module.cpp:100
CLIPS::Object::m_cobj
void * m_cobj
The underlying CLIPS C object.
Definition: object.h:79

Generated on Tue Jan 28 2020 00:00:00 for clipsmm by doxygen 1.8.17