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
31
namespace
fawkes
{
32
33
class
ClingoControlManager;
34
class
Logger;
35
36
class
ASPAspectIniFin :
public
AspectIniFin
37
{
38
public
:
39
ASPAspectIniFin
(
void
);
40
~ASPAspectIniFin
(
void
);
41
42
void
init
(
Thread
*thread)
override
;
43
void
finalize
(
Thread
*thread)
override
;
44
45
void
set_control_manager
(
const
LockPtr<ClingoControlManager>
&ctrl_mgr);
46
47
private
:
48
LockPtr<ClingoControlManager>
ctrl_mgr_;
49
};
50
51
}
// end namespace fawkes
52
53
#endif
fawkes::LockPtr
LockPtr<> is a reference-counting shared lockable smartpointer.
Definition:
lockptr.h:60
fawkes::ASPAspectIniFin::init
void init(Thread *thread) override
Definition:
asp_inifin.cpp:58
fawkes::ASPAspectIniFin::~ASPAspectIniFin
~ASPAspectIniFin(void)
Destructor.
Definition:
asp_inifin.cpp:53
fawkes
fawkes::Thread
Definition:
thread.h:44
fawkes::ASPAspectIniFin::finalize
void finalize(Thread *thread) override
Definition:
asp_inifin.cpp:72
fawkes::ASPAspectIniFin::ASPAspectIniFin
ASPAspectIniFin(void)
Constructor.
Definition:
asp_inifin.cpp:48
fawkes::ASPAspectIniFin::set_control_manager
void set_control_manager(const LockPtr< ClingoControlManager > &ctrl_mgr)
Sets the control manager.
Definition:
asp_inifin.cpp:88
src
plugins
asp
aspect
asp_inifin.h
Generated by
1.8.16