Fawkes API
Fawkes Development Version
|
23 #ifndef _PLUGINS_CLIPS_PROTOBUF_CLIPS_PROTOBUF_THREAD_H_
24 #define _PLUGINS_CLIPS_PROTOBUF_CLIPS_PROTOBUF_THREAD_H_
26 #include <aspect/configurable.h>
27 #include <aspect/logging.h>
28 #include <core/threading/thread.h>
29 #include <plugins/clips/aspect/clips_feature.h>
35 namespace protobuf_clips {
36 class ClipsProtobufCommunicator;
67 std::map<std::string, protobuf_clips::ClipsProtobufCommunicator *> pb_comms_;
68 std::vector<std::string> cfg_proto_dirs_;
Provide protobuf functionality to CLIPS environment.
virtual void run()
Stub to see name in backtrace for easier debugging.
virtual void finalize()
Finalize the thread.
ClipsProtobufThread()
Constructor.
Thread aspect to log output.
virtual void clips_context_init(const std::string &env_name, fawkes::LockPtr< CLIPS::Environment > &clips)
Initialize a CLIPS context to use the provided feature.
virtual ~ClipsProtobufThread()
Destructor.
CLIPS feature maintainer.
virtual void loop()
Code to execute in the thread.
Thread class encapsulation of pthreads.
Thread aspect to access configuration data.
virtual void init()
Initialize the thread.
Thread aspect to provide a feature to CLIPS environments.
virtual void clips_context_destroyed(const std::string &env_name)
Notification that a CLIPS environment has been destroyed.