AbstractLongtermMemory.cpp
Go to the documentation of this file.
1/*
2* This file is part of ArmarX.
3*
4* ArmarX is free software; you can redistribute it and/or modify
5* it under the terms of the GNU General Public License version 2 as
6* published by the Free Software Foundation.
7*
8* ArmarX is distributed in the hope that it will be useful, but
9* WITHOUT ANY WARRANTY; without even the implied warranty of
10* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11* GNU General Public License for more details.
12*
13* You should have received a copy of the GNU General Public License
14* along with this program. If not, see <http://www.gnu.org/licenses/>.
15*
16* @package MemoryX::LongtermMemory
17* @author Alexey Kozlov ( kozlov at kit dot edu)
18* @date 2012
19* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20* GNU General Public License
21*/
22
23// core
25#include <ArmarXCore/interface/core/Log.h>
27
28// memoryx interface
32#include <MemoryX/interface/core/EntityBase.h>
33#include <MemoryX/interface/memorytypes/MemoryEntities.h>
35
36namespace memoryx
37{
38 void
44
45 void
47 {
48 ARMARX_INFO << "Starting MemoryX::LongtermMemory";
49
50 ic = getIceManager()->getCommunicator();
51
52
54 dbName = getProperty<std::string>("DatabaseName").getValue();
55
57 }
58
59 void
60 AbstractLongtermMemory::clear(const ::Ice::Current&)
61 {
62 ARMARX_ERROR << "LongtermMemory::clear() not implemented yet!";
63 }
64} // namespace memoryx
Property< PropertyType > getProperty(const std::string &name)
bool usingProxy(const std::string &name, const std::string &endpoints="")
Registers a proxy for retrieval after initialization and adds it to the dependency list.
IceManagerPtr getIceManager() const
Returns the IceManager.
Ice::ObjectPrx getProxy(long timeoutMs=0, bool waitForScheduler=true) const
Returns the proxy of this object (optionally it waits for the proxy)
void onInitComponent() override
Pure virtual hook for the subclass.
void clear(const ::Ice::Current &=Ice::emptyCurrent) override
virtual void onConnectLongtermMemory()=0
CommonStorageInterfacePrx storagePrx
void onConnectComponent() override
Pure virtual hook for the subclass.
virtual void onInitLongtermMemory()=0
#define ARMARX_INFO
The normal logging level.
Definition Logging.h:181
#define ARMARX_ERROR
The logging level for unexpected behaviour, that must be fixed.
Definition Logging.h:196
VirtualRobot headers.