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

Add conversion to PackageFileLocation

parent 4577ee1a
No related branches found
No related tags found
2 merge requests!140armem/dev -> master,!133Add Object Memory with Class and Instance Segments
......@@ -23,3 +23,16 @@ void armarx::toAron(armarx::arondto::PackagePath& dto, const armarx::PackagePath
dto.package = icedto.package;
dto.path = icedto.path;
}
void armarx::fromAron(const armarx::arondto::PackagePath& dto, armarx::PackageFileLocation& bo)
{
bo.package = dto.package;
bo.relativePath = dto.path;
bo.absolutePath = "";
}
void armarx::toAron(armarx::arondto::PackagePath& dto, const armarx::PackageFileLocation& bo)
{
dto.package = bo.package;
dto.path = bo.relativePath;
}
......@@ -4,6 +4,7 @@
#include <RobotAPI/libraries/ArmarXObjects/aron/PackagePath.aron.generated.h>
#include <RobotAPI/libraries/ArmarXObjects/ObjectID.h>
#include <RobotAPI/libraries/ArmarXObjects/ObjectInfo.h>
#include <RobotAPI/libraries/ArmarXObjects/aron/ObjectID.aron.generated.h>
......@@ -12,6 +13,9 @@ namespace armarx
void fromAron(const arondto::PackagePath& dto, PackagePath& bo);
void toAron(arondto::PackagePath& dto, const PackagePath& bo);
void fromAron(const arondto::PackagePath& dto, PackageFileLocation& bo);
void toAron(arondto::PackagePath& dto, const PackageFileLocation& bo);
void fromAron(const arondto::ObjectID& dto, ObjectID& bo);
void toAron(arondto::ObjectID& dto, const ObjectID& bo);
}
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