Fawkes API
Fawkes Development Version
robot_memory_plugin.cpp
1
/***************************************************************************
2
* robot_memory_plugin.cpp - Fawkes Robot Memory Plugin
3
*
4
* Created: Sun May 01 13:34:51 2016
5
* Copyright 2016 Frederik Zwilling
6
* 2017 Tim Niemueller [www.niemueller.de]
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
22
#include "robot_memory_thread.h"
23
24
#include <core/plugin.h>
25
#include <logging/console.h>
26
27
#include <string>
28
29
using namespace
fawkes
;
30
31
/** Robot Memory Plugin.
32
* This plugin provides a robot memory with mongodb
33
*
34
* @author Frederik Zwilling
35
*/
36
class
RobotMemoryPlugin
:
public
fawkes::Plugin
37
{
38
public
:
39
/** Constructor.
40
* @param config Fawkes configuration
41
*/
42
explicit
RobotMemoryPlugin
(
Configuration
*config) :
Plugin
(config)
43
{
44
thread_list.push_back(
new
RobotMemoryThread
());
45
}
46
};
47
48
PLUGIN_DESCRIPTION(
"Robot Memory based on MongoDB"
)
49
EXPORT_PLUGIN(
RobotMemoryPlugin
)
RobotMemoryPlugin::RobotMemoryPlugin
RobotMemoryPlugin(Configuration *config)
Constructor.
Definition:
robot_memory_plugin.cpp:42
fawkes::Configuration
Definition:
config.h:68
fawkes
RobotMemoryPlugin
Robot Memory Plugin.
Definition:
robot_memory_plugin.cpp:36
RobotMemoryThread
Definition:
robot_memory_thread.h:51
fawkes::Plugin
Definition:
plugin.h:37
src
plugins
robot-memory
robot_memory_plugin.cpp
Generated by
1.8.16