armarx.cpp
Go to the documentation of this file.
1 #include "armarx.h"
2 
4 
6 {
7  bo = ObjectID(dto.dataset, dto.className, dto.instanceName);
8 }
10 {
11  aron::toAron(dto.dataset, bo.dataset());
12  aron::toAron(dto.className, bo.className());
13  aron::toAron(dto.instanceName, bo.instanceName());
14 
15 }
16 
17 
18 void armarx::fromAron(const armarx::arondto::PackagePath& dto, armarx::PackageFileLocation& bo)
19 {
20  aron::toAron(bo.package, dto.package);
21  aron::toAron(bo.relativePath, dto.path);
22  aron::toAron(bo.absolutePath, std::filesystem::path(""));
23 
24 }
25 
26 void armarx::toAron(armarx::arondto::PackagePath& dto, const armarx::PackageFileLocation& bo)
27 {
28  aron::toAron(dto.package, bo.package);
29  aron::toAron(dto.path, bo.relativePath);
30 
31 }
armarx::ObjectID
A known object ID of the form "Dataset/ClassName" or "Dataset/ClassName/InstanceName".
Definition: ObjectID.h:11
armarx::armem::attachment::ObjectID
armem::MemoryID ObjectID
Definition: types.h:79
armarx::PackageFileLocation
Definition: ObjectInfo.h:22
armarx.h
aron_conversions.h
armarx::fromAron
void fromAron(const arondto::PackagePath &dto, PackageFileLocation &bo)
armarx::toAron
void toAron(arondto::PackagePath &dto, const PackageFileLocation &bo)
armarx::aron::bo
const std::optional< BoT > & bo
Definition: aron_conversions.h:166