24 #include <plugins/clips/aspect/clips_inifin.h> 25 #include <plugins/clips/aspect/clips_env_manager.h> 26 #include <core/threading/thread_finalizer.h> 60 if (clips_thread == NULL) {
62 "CLIPSAspect, but RTTI says it " 63 "has not. ", thread->
name());
68 clips_thread->CLIPSAspect_log_component_name_);
70 clips_thread->
clips = clips;
78 if (clips_thread == NULL) {
80 "CLIPSAspect, but RTTI says it " 81 "has not. ", thread->
name());
85 clips_thread->finalize_CLIPSAspect();
96 clips_env_mgr_ = clips_env_mgr;
virtual void init(Thread *thread)
Initialize thread.
Fawkes library namespace.
virtual void finalize(Thread *thread)
Finalize thread.
CLIPSAspectIniFin()
Constructor.
~CLIPSAspectIniFin()
Destructor.
Thread class encapsulation of pthreads.
Thread cannot be initialized.
const char * name() const
Get name of thread.
LockPtr< CLIPS::Environment > clips
CLIPS environment for exclusive usage.
void set_manager(LockPtr< CLIPSEnvManager > &clips_env_mgr)
Set CLIPS environment manger.
Thread cannot be finalized.
const std::string clips_env_name
CLIPS environment name.
Thread aspect to get access to a CLIPS environment.
Aspect initializer/finalizer base class.