clipsmm - C++ CLIPS Interface Library

clipsmm logo
global.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 CLIPSGLOBAL_H
20 #define CLIPSGLOBAL_H
21 
22 #include <clipsmm/value.h>
24 
25 namespace CLIPS {
26 
30 class Global : public EnvironmentObject
31 {
32 public:
33  typedef CLIPSPointer<Global> pointer;
34 
35  Global( Environment& environment, void* cobj = NULL );
36 
37  static Global::pointer create( Environment& environment, void* cobj = NULL );
38 
39  ~Global();
40 
41  std::string name();
42 
43  std::string formatted();
44 
45  std::string module_name();
46 
48 
49  void set_value( const Values& values );
50  void set_value( const Value& values );
51 
52  void reset_value();
53 
54  // TODO GetDefglobalValueForm
55 
56  bool is_watched();
57 
58  void set_watch( bool watch=true );
59 
60  bool is_deletable();
61 
63 
64  bool undefine();
65 
66 };
67 
68 }
69 
70 #endif
global.h
CLIPS::Global::is_deletable
bool is_deletable()
Definition: global.cpp:135
CLIPS::Object::cobj
void * cobj() const
Returns a pointer to the underlying CLIPS C object.
Definition: object.cpp:50
CLIPS::Global::pointer
CLIPSPointer< Global > pointer
Definition: global.h:67
CLIPS::Global::value
Values value()
Definition: global.cpp:80
CLIPS::EnvironmentObject::m_environment
Environment & m_environment
Definition: environmentobject.h:58
CLIPS::Global::name
std::string name()
Definition: global.cpp:57
CLIPS::Global::~Global
~Global()
Definition: global.cpp:53
CLIPS::Value
Definition: value.h:61
CLIPS::value_to_data_object
dataObject * value_to_data_object(const Environment &env, const Value &value, dataObject *obj)
Definition: factory.cpp:132
CLIPS::data_object_to_values
Values data_object_to_values(dataObject *clipsdo)
TODO Move to utility, since these are no longer factory methods.
Definition: factory.cpp:49
CLIPS::Global::undefine
bool undefine()
Definition: global.cpp:141
CLIPS::Global::create
static Global::pointer create(Environment &environment, void *cobj=NULL)
Definition: global.cpp:49
CLIPS::EnvironmentObject::environment
Environment & environment() const
Definition: environmentobject.cpp:50
CLIPS::Values
std::vector< Value > Values
Definition: value.h:295
CLIPS::Global::formatted
std::string formatted()
Definition: global.cpp:65
CLIPS::Global::is_watched
bool is_watched()
Definition: global.cpp:113
CLIPS::Global::set_value
void set_value(const Values &values)
Definition: global.cpp:90
CLIPS::Global::reset_value
void reset_value()
Definition: global.cpp:108
CLIPS::Global::Global
Global(Environment &environment, void *cobj=NULL)
Definition: global.cpp:46
CLIPS
Definition: activation.cpp:29
environment.h
environmentobject.h
CLIPS::Global::next
Global::pointer next()
Definition: global.cpp:125
CLIPS::Global::module_name
std::string module_name()
Definition: global.cpp:73
value.h
CLIPS::Object::m_cobj
void * m_cobj
The underlying CLIPS C object.
Definition: object.h:79
CLIPS::Global::set_watch
void set_watch(bool watch=true)
Definition: global.cpp:120

Generated on Mon Jul 27 2020 00:00:00 for clipsmm by doxygen 1.8.18