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