Fawkes API Fawkes Development Version
asp_inifin.h
1
2/***************************************************************************
3 * asp_inifin.h - Fawkes ASPAspect initializer/finalizer
4 *
5 * Created: Thu Oct 20 15:49:31 2016
6 * Copyright 2016 Björn Schäpers
7 * 2018 Tim Niemueller [www.niemueller.org]
8 ****************************************************************************/
9
10/* This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version. A runtime exception applies to
14 * this software (see LICENSE.GPL_WRE file mentioned below for details).
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Library General Public License for more details.
20 *
21 * Read the full text in the LICENSE.GPL_WRE file in the doc directory.
22 */
23
24#ifndef _PLUGINS_ASP_ASPECT_ASP_INIFIN_H_
25#define _PLUGINS_ASP_ASPECT_ASP_INIFIN_H_
26
27#include <aspect/inifins/inifin.h>
28#include <core/utils/lockptr.h>
29#include <plugins/asp/aspect/asp.h>
30
31namespace fawkes {
32
33class ClingoControlManager;
34class Logger;
35
37{
38public:
39 ASPAspectIniFin(void);
40 ~ASPAspectIniFin(void);
41
42 void init(Thread *thread) override;
43 void finalize(Thread *thread) override;
44
46
47private:
49};
50
51} // end namespace fawkes
52
53#endif
ASPAspect initializer/finalizer.
Definition: asp_inifin.h:37
void set_control_manager(const LockPtr< ClingoControlManager > &ctrl_mgr)
Sets the control manager.
Definition: asp_inifin.cpp:84
void init(Thread *thread) override
Initialize thread.
Definition: asp_inifin.cpp:54
void finalize(Thread *thread) override
Finalize thread.
Definition: asp_inifin.cpp:68
ASPAspectIniFin(void)
Constructor.
Definition: asp_inifin.cpp:44
~ASPAspectIniFin(void)
Destructor.
Definition: asp_inifin.cpp:49
Aspect initializer/finalizer base class.
Definition: inifin.h:34
LockPtr<> is a reference-counting shared lockable smartpointer.
Definition: lockptr.h:55
Thread class encapsulation of pthreads.
Definition: thread.h:46
Fawkes library namespace.