Skip to content
Snippets Groups Projects
Commit 6b7bdc63 authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Add overload taking ice types

parent ffa650af
No related branches found
No related tags found
No related merge requests found
......@@ -90,10 +90,8 @@ namespace armarx::armem::client
}
void MemoryNameSystemComponentPluginUser::memoryUpdated(
const std::vector<data::MemoryID>& updatedSnapshotIDsIce, const Ice::Current&)
const std::vector<data::MemoryID>& updatedSnapshotIDs, const Ice::Current&)
{
std::vector<MemoryID> updatedSnapshotIDs;
fromIce(updatedSnapshotIDsIce, updatedSnapshotIDs);
memoryNameSystem.updated(updatedSnapshotIDs);
}
......
......@@ -3,6 +3,7 @@
#include <sstream>
#include <ArmarXCore/core/logging/Logging.h>
#include <RobotAPI/libraries/armem/core/ice_conversions.h>
#include <RobotAPI/libraries/armem/core/error.h>
......@@ -14,6 +15,15 @@ namespace armarx::armem::client::util
}
void
MemoryListener::updated(const std::vector<data::MemoryID>& updatedSnapshotIDs) const
{
std::vector<MemoryID> bos;
fromIce(updatedSnapshotIDs, bos);
updated(bos);
}
void
MemoryListener::updated(const std::vector<MemoryID>& updatedSnapshotIDs) const
{
......@@ -58,13 +68,14 @@ namespace armarx::armem::client::util
void
MemoryListener::subscribe(const MemoryID& id, callback callback)
MemoryListener::subscribe(const MemoryID& id, Callback callback)
{
callbacks[id].push_back(callback);
}
void MemoryListener::subscribe(const MemoryID& subscriptionID, CallbackUpdatedOnly callback)
void
MemoryListener::subscribe(const MemoryID& subscriptionID, CallbackUpdatedOnly callback)
{
subscribe(subscriptionID, [callback](const MemoryID&, const std::vector<MemoryID>& updatedSnapshotIDs)
{
......
......@@ -66,6 +66,7 @@ namespace armarx::armem::client::util
/// Function handling updates from the MemoryListener ice topic.
void updated(const std::vector<MemoryID>& updatedIDs) const;
void updated(const std::vector<data::MemoryID>& updatedIDs) const;
protected:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment