Fawkes API  Fawkes Development Version
action_executor_dispatcher_inifin.h
1 /***************************************************************************
2  * action_executor_dispatcher_inifin.h - Inifin for the Golog++ Executor
3  *
4  * Created: Sat 12 Oct 2019 12:06:31 CEST 12:06
5  * Copyright 2019 Till Hofmann <hofmann@kbsg.rwth-aachen.de>
6  ****************************************************************************/
7 
8 /* This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU Library General Public License for more details.
17  *
18  * Read the full text in the LICENSE.GPL file in the doc directory.
19  */
20 
21 #ifndef FAWKES_GOLOGPP_ASPECT_ACTION_EXECUTOR_DISPATCHER_INIFIN_H
22 #define FAWKES_GOLOGPP_ASPECT_ACTION_EXECUTOR_DISPATCHER_INIFIN_H
23 
24 #include "action_executor_dispatcher.h"
25 
26 #include <aspect/inifins/inifin.h>
27 
28 namespace fawkes {
29 
31 {
32 public:
35  virtual void init(Thread *thread);
36  virtual void finalize(Thread *thread);
37 
38 private:
39  GologppDispatcherAspect * get_aspect(Thread *thread) const;
40  gpp::ActionExecutorDispatcher *dispatcher_;
41 };
42 
43 } // namespace fawkes
44 
45 #endif /* !FAWKES_GOLOGPP_ASPECT_ACTION_EXECUTOR_DISPATCHER_INIFIN_H */
fawkes::gpp::ActionExecutorDispatcher
Dispatch an activity to a number of registered executors by checking all registered executors subsequ...
Definition: action_executor_dispatcher.h:32
fawkes::GologppDispatcherAspectIniFin::~GologppDispatcherAspectIniFin
virtual ~GologppDispatcherAspectIniFin()
Destructor*.
Definition: action_executor_dispatcher_inifin.cpp:39
fawkes::GologppDispatcherAspectIniFin::GologppDispatcherAspectIniFin
GologppDispatcherAspectIniFin()
Constructor.
Definition: action_executor_dispatcher_inifin.cpp:32
fawkes::GologppDispatcherAspectIniFin
The initializer/finalizer for the GologppDispatcherAspect.
Definition: action_executor_dispatcher_inifin.h:31
fawkes::AspectIniFin
Aspect initializer/finalizer base class.
Definition: inifin.h:34
fawkes::GologppDispatcherAspectIniFin::finalize
virtual void finalize(Thread *thread)
Finalize the aspect of the given thread.
Definition: action_executor_dispatcher_inifin.cpp:71
fawkes::GologppDispatcherAspect
An aspect that provides access to the Golog++ Action Executor Dispatcher.
Definition: action_executor_dispatcher.h:44
fawkes
Fawkes library namespace.
fawkes::Thread
Thread class encapsulation of pthreads.
Definition: thread.h:46
fawkes::GologppDispatcherAspectIniFin::init
virtual void init(Thread *thread)
Initialize the thread with the aspect.
Definition: action_executor_dispatcher_inifin.cpp:61