Fawkes API  Fawkes Development Version
robot_memory_aspect.cpp
1 /***************************************************************************
2  * robot_memory_aspect.cpp - Aspect providing the robot memory
3  *
4  *
5  * Created: Aug 23, 2016 1:26:08 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 #include "robot_memory_aspect.h"
22 
23 namespace fawkes {
24 
25 /** @class RobotMemoryAspect "robot_memory_aspect.h"
26  * Thread aspect to get access to a the RobotMemory.
27  *
28  * @ingroup Aspects
29  * @author Frederik Zwilling
30  */
31 
32 RobotMemoryAspect::RobotMemoryAspect()
33 {
34  add_aspect("RobotMemoryAspect");
35 }
36 
37 RobotMemoryAspect::~RobotMemoryAspect()
38 {
39 }
40 
41 void
42 RobotMemoryAspect::init_RobotMemoryAspect(RobotMemory *robot_memory)
43 {
44  this->robot_memory = robot_memory;
45 }
46 
47 void
48 RobotMemoryAspect::finalize_RobotMemoryAspect()
49 {
50  this->robot_memory = NULL;
51 }
52 
53 } /* namespace fawkes */
fawkes::Aspect::add_aspect
void add_aspect(const char *name)
Add an aspect to a thread.
Definition: aspect.cpp:53
RobotMemory
Definition: robot_memory.h:45
fawkes
fawkes::RobotMemoryAspect::robot_memory
RobotMemory * robot_memory
RobotMemory object for storing and querying information.
Definition: robot_memory_aspect.h:55