armarx.cpp
Go to the documentation of this file.
1 #include "armarx.h"
2 
4 
5 void
7 {
8  bo = ObjectID(dto.dataset, dto.className, dto.instanceName);
9 }
10 
11 void
13 {
14  aron::toAron(dto.dataset, bo.dataset());
15  aron::toAron(dto.className, bo.className());
16  aron::toAron(dto.instanceName, bo.instanceName());
17 }
18 
19 void
20 armarx::fromAron(const armarx::arondto::PackagePath& dto, armarx::PackageFileLocation& bo)
21 {
22  aron::toAron(bo.package, dto.package);
23  aron::toAron(bo.relativePath, dto.path);
24  aron::toAron(bo.absolutePath, std::filesystem::path(""));
25 }
26 
27 void
28 armarx::toAron(armarx::arondto::PackagePath& dto, const armarx::PackageFileLocation& bo)
29 {
30  aron::toAron(dto.package, bo.package);
31  aron::toAron(dto.path, bo.relativePath);
32 }
armarx::ObjectID
A known object ID of the form "Dataset/ClassName" or "Dataset/ClassName/InstanceName".
Definition: ObjectID.h:10
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:174