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
29namespace fawkes {
30
31class ClingoControlManager;
32
34{
35public:
38
39 void init(Thread *thread) override;
40 void finalize(Thread *thread) override;
41
43
44private:
45 LockPtr<ClingoControlManager> clingo_ctrl_mgr_;
46};
47
48} // end namespace fawkes
49
50#endif
Aspect initializer/finalizer base class.
Definition: inifin.h:34
ClingoManagerAspect initializer/finalizer.
void init(Thread *thread) override
Initialize thread.
void set_control_manager(LockPtr< ClingoControlManager > &clingo_ctrl_mgr)
Set Clingo control manger.
void finalize(Thread *thread) override
Finalize thread.
LockPtr<> is a reference-counting shared lockable smartpointer.
Definition: lockptr.h:55
Thread class encapsulation of pthreads.
Definition: thread.h:46
Fawkes library namespace.