aron_conversions.cpp
Go to the documentation of this file.
1#include "aron_conversions.h"
2
3#include <RobotAPI/libraries/armem/aron/MemoryID.aron.generated.h>
6
7void
8armarx::armem::fromAron(const arondto::MemoryID& dto, MemoryID& bo)
9{
10 aron::fromAron(dto.memoryName, bo.memoryName);
11 aron::fromAron(dto.coreSegmentName, bo.coreSegmentName);
12 aron::fromAron(dto.providerSegmentName, bo.providerSegmentName);
13 aron::fromAron(dto.entityName, bo.entityName);
14 aron::fromAron(dto.timestamp, bo.timestamp);
15 aron::fromAron(dto.instanceIndex, bo.instanceIndex);
16}
17
18void
19armarx::armem::toAron(arondto::MemoryID& dto, const MemoryID& bo)
20{
21 aron::toAron(dto.memoryName, bo.memoryName);
22 aron::toAron(dto.coreSegmentName, bo.coreSegmentName);
23 aron::toAron(dto.providerSegmentName, bo.providerSegmentName);
24 aron::toAron(dto.entityName, bo.entityName);
25 aron::toAron(dto.timestamp, bo.timestamp);
26 aron::toAron(dto.instanceIndex, bo.instanceIndex);
27}
28
29std::ostream&
30armarx::armem::arondto::operator<<(std::ostream& os, const MemoryID& rhs)
31{
33 fromAron(rhs, bo);
34 return os << bo;
35}
std::string coreSegmentName
Definition MemoryID.h:51
std::string entityName
Definition MemoryID.h:53
std::string memoryName
Definition MemoryID.h:50
std::string providerSegmentName
Definition MemoryID.h:52
std::ostream & operator<<(std::ostream &os, const MemoryID &rhs)
void fromAron(const arondto::MemoryID &dto, MemoryID &bo)
void toAron(arondto::MemoryID &dto, const MemoryID &bo)
void fromAron(const T &dto, T &bo)
void toAron(T &dto, const T &bo)
Framework for converting ARON DTOs (Data Transfer Objects) to C++ BOs (Business Objects) and back.