ice_conversions.h
Go to the documentation of this file.
1#pragma once
2
3#include <ostream>
4
6#include <ArmarXCore/interface/core/time.h>
7
8namespace IceUtil
9{
10 class Time;
11}
12
13namespace armarx::core::time
14{
15
16 void fromIce(const dto::ClockType::ClockTypeEnum& dto, ClockType& bo);
17 void toIce(dto::ClockType::ClockTypeEnum& dto, const ClockType& bo);
18
19 void fromIce(const dto::Duration& dto, Duration& bo);
20 void toIce(dto::Duration& dto, const Duration& bo);
21
22 void fromIce(const dto::Frequency& dto, Frequency& bo);
23 void toIce(dto::Frequency& dto, const Frequency& bo);
24
25 void fromIce(const dto::DateTime& dto, DateTime& bo);
26 void toIce(dto::DateTime& dto, const DateTime& bo);
27
28 void fromIce(const IceUtil::Time& dto, Duration& bo);
29 void toIce(IceUtil::Time& dto, const Duration& bo);
30 void fromIce(const IceUtil::Time& dto, DateTime& bo);
31 void toIce(IceUtil::Time& dto, const DateTime& bo);
32
33} // namespace armarx::core::time
34
36{
37 std::ostream& operator<<(std::ostream& os, const DateTime& dto);
38 std::ostream& operator<<(std::ostream& os, const Duration& dto);
39 std::ostream& operator<<(std::ostream& os, const Frequency& dto);
40} // namespace armarx::core::time::dto
Represents a point in time.
Definition DateTime.h:25
Represents a duration.
Definition Duration.h:17
Represents a frequency.
Definition Frequency.h:17
armarx::core::time::DateTime Time
std::ostream & operator<<(std::ostream &os, const DateTime &dto)
ClockType
Describes the type of clock.
Definition ClockType.h:10
void toIce(dto::ClockType::ClockTypeEnum &dto, const ClockType &bo)
void fromIce(const dto::ClockType::ClockTypeEnum &dto, ClockType &bo)