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
24 #include <ArmarXCore/interface/core/Log.h>
27 
28 // memoryx interface
29 #include <MemoryX/interface/core/EntityBase.h>
30 #include <MemoryX/interface/memorytypes/MemoryEntities.h>
31 
35 
36 #include "AbstractLongtermMemory.h"
37 
38 namespace memoryx
39 {
41  {
42  usingProxy("CommonStorage");
44  }
45 
46 
48  {
49  ARMARX_INFO << "Starting MemoryX::LongtermMemory";
50 
51  ic = getIceManager()->getCommunicator();
52 
53 
54  storagePrx = getProxy<CommonStorageInterfacePrx>("CommonStorage");
55  dbName = getProperty<std::string>("DatabaseName").getValue();
56 
58  }
59 
60  void AbstractLongtermMemory::clear(const ::Ice::Current&)
61  {
62  ARMARX_ERROR << "LongtermMemory::clear() not implemented yet!";
63  }
64 }
armarx::ManagedIceObject::getIceManager
IceManagerPtr getIceManager() const
Returns the IceManager.
Definition: ManagedIceObject.cpp:353
memoryx::AbstractLongtermMemory::onInitComponent
void onInitComponent() override
Pure virtual hook for the subclass.
Definition: AbstractLongtermMemory.cpp:40
memoryx::AbstractLongtermMemory::storagePrx
CommonStorageInterfacePrx storagePrx
Definition: AbstractLongtermMemory.h:79
memoryx::AbstractLongtermMemory::dbName
std::string dbName
Definition: AbstractLongtermMemory.h:83
PersistentEntitySegment.h
memoryx
VirtualRobot headers.
Definition: CommonPlacesTester.cpp:48
AbstractLongtermMemory.h
ObserverObjectFactories.h
MemoryXCoreObjectFactories.h
ARMARX_ERROR
#define ARMARX_ERROR
Definition: Logging.h:189
memoryx::AbstractLongtermMemory::onConnectComponent
void onConnectComponent() override
Pure virtual hook for the subclass.
Definition: AbstractLongtermMemory.cpp:47
memoryx::AbstractLongtermMemory::onInitLongtermMemory
virtual void onInitLongtermMemory()=0
CoreObjectFactories.h
ARMARX_INFO
#define ARMARX_INFO
Definition: Logging.h:174
MemoryXTypesObjectFactories.h
memoryx::AbstractLongtermMemory::ic
Ice::CommunicatorPtr ic
Definition: AbstractLongtermMemory.h:80
memoryx::AbstractLongtermMemory::onConnectLongtermMemory
virtual void onConnectLongtermMemory()=0
armarx::ManagedIceObject::usingProxy
bool usingProxy(const std::string &name, const std::string &endpoints="")
Registers a proxy for retrieval after initialization and adds it to the dependency list.
Definition: ManagedIceObject.cpp:151
memoryx::AbstractLongtermMemory::clear
void clear(const ::Ice::Current &=Ice::emptyCurrent) override
Definition: AbstractLongtermMemory.cpp:60