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

Add addSegment() convenience overload

parent b561b527
No related branches found
No related tags found
1 merge request!95Add introspection in RemoteGui
......@@ -12,6 +12,14 @@ namespace armarx::armem
{
}
data::AddSegmentResult MemoryWriter::addSegment(const std::string& coreSegmentName, const std::string& providerSegmentName)
{
data::AddSegmentInput input;
input.coreSegmentName = coreSegmentName;
input.providerSegmentName = providerSegmentName;
return addSegment(input);
}
data::AddSegmentResult MemoryWriter::addSegment(const data::AddSegmentInput& input)
{
data::AddSegmentsResult results = addSegments({input});
......
......@@ -22,6 +22,7 @@ namespace armarx::armem
MemoryWriter(WritingInterfacePrx memory = nullptr);
data::AddSegmentResult addSegment(const std::string& coreSegmentName, const std::string& providerSegmentName);
data::AddSegmentResult addSegment(const data::AddSegmentInput& input);
data::AddSegmentsResult addSegments(const data::AddSegmentsInput& input);
......
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