Fawkes API
Fawkes Development Version
robot_memory_inifin.h
1
/***************************************************************************
2
* robot_memory_inifin.h - RobotMemoryAspect initializer/finalizer
3
*
4
*
5
* Created: Aug 23, 2016 1:28:04 PM 2016
6
* Copyright 2016 Frederik Zwilling
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.
13
*
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU Library General Public License for more details.
18
*
19
* Read the full text in the LICENSE.GPL file in the doc directory.
20
*/
21
#ifndef FAWKES_SRC_PLUGINS_ROBOT_MEMORY_ASPECT_ROBOT_MEMORY_INIFIN_H_
22
#define FAWKES_SRC_PLUGINS_ROBOT_MEMORY_ASPECT_ROBOT_MEMORY_INIFIN_H_
23
24
#include "robot_memory_aspect.h"
25
26
#include <aspect/inifins/inifin.h>
27
28
namespace
fawkes
{
29
30
class
RobotMemoryIniFin :
public
AspectIniFin
31
{
32
public
:
33
RobotMemoryIniFin();
34
35
virtual
void
init
(
Thread
*thread);
36
virtual
void
finalize
(
Thread
*thread);
37
38
void
set_robot_memory
(
RobotMemory
*robot_memory);
39
40
private
:
41
RobotMemory
*robot_memory_;
42
};
43
44
}
/* namespace fawkes */
45
46
#endif
/* FAWKES_SRC_PLUGINS_ROBOT_MEMORY_ASPECT_ROBOT_MEMORY_INIFIN_H_ */
fawkes::RobotMemoryIniFin::finalize
virtual void finalize(Thread *thread)
Finilize.
Definition:
robot_memory_inifin.cpp:66
RobotMemory
Definition:
robot_memory.h:45
fawkes::RobotMemoryIniFin::set_robot_memory
void set_robot_memory(RobotMemory *robot_memory)
Set the reference to the robot memory for the aspect.
Definition:
robot_memory_inifin.cpp:84
fawkes
fawkes::Thread
Definition:
thread.h:44
fawkes::RobotMemoryIniFin::init
virtual void init(Thread *thread)
Initialize.
Definition:
robot_memory_inifin.cpp:45
src
plugins
robot-memory
aspect
robot_memory_inifin.h
Generated by
1.8.16