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

Add constructor from single values

parent c8954c4f
No related branches found
No related tags found
No related merge requests found
......@@ -80,6 +80,23 @@ namespace armarx::armem
}
MemoryID::MemoryID(
const std::string& memoryName,
const std::string& coreSegmentName,
const std::string& providerSegmentName,
const std::string& entityName,
Time timestamp,
int instanceIndex) :
memoryName(memoryName),
coreSegmentName(coreSegmentName),
providerSegmentName(providerSegmentName),
entityName(entityName),
timestamp(timestamp),
instanceIndex(instanceIndex)
{
}
std::string MemoryID::str(bool escapeDelimiters) const
{
return str(delimiter, escapeDelimiters);
......
......@@ -63,6 +63,13 @@ namespace armarx::armem
/// (Re-)Construct a memory ID from a string representation as returned by `str()`.
explicit MemoryID(const std::string& string);
MemoryID(const std::string& memoryName,
const std::string& coreSegmentName,
const std::string& providerSegmentName = "",
const std::string& entityName = "",
Time timestamp = Time::microSeconds(-1),
int instanceIndex = -1);
/**
* @brief Indicate whether this ID is well-defined.
......
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