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 
8 
9 namespace IceUtil
10 {
11  class Time;
12 }
13 
14 
15 namespace armarx::core::time
16 {
17 
18  void fromIce(const dto::ClockType::ClockTypeEnum& dto, ClockType& bo);
19  void toIce(dto::ClockType::ClockTypeEnum& dto, const ClockType& bo);
20 
21  void fromIce(const dto::Duration& dto, Duration& bo);
22  void toIce(dto::Duration& dto, const Duration& bo);
23 
24  void fromIce(const dto::Frequency& dto, Frequency& bo);
25  void toIce(dto::Frequency& dto, const Frequency& bo);
26 
27  void fromIce(const dto::DateTime& dto, DateTime& bo);
28  void toIce(dto::DateTime& dto, const DateTime& bo);
29 
30  void fromIce(const IceUtil::Time& dto, Duration& bo);
31  void toIce(IceUtil::Time& dto, const Duration& bo);
32  void fromIce(const IceUtil::Time& dto, DateTime& bo);
33  void toIce(IceUtil::Time& dto, const DateTime& bo);
34 
35 } // namespace armarx::core::time
36 
38 {
39  std::ostream& operator<<(std::ostream& os, const DateTime& dto);
40  std::ostream& operator<<(std::ostream& os, const Duration& dto);
41  std::ostream& operator<<(std::ostream& os, const Frequency& dto);
42 }
armarx::core::time::fromIce
void fromIce(const dto::ClockType::ClockTypeEnum &dto, ClockType &bo)
Definition: ice_conversions.cpp:12
armarx::core::time::toIce
void toIce(dto::ClockType::ClockTypeEnum &dto, const ClockType &bo)
Definition: ice_conversions.cpp:33
armarx::core::time::dto::operator<<
std::ostream & operator<<(std::ostream &os, const DateTime &dto)
Definition: ice_conversions.cpp:136
armarx::core::time
Definition: Clock.cpp:13
IceUtil
Definition: Instance.h:21
armarx::core::time::ClockType
ClockType
Describes the type of clock.
Definition: ClockType.h:10
armarx::armem::Time
armarx::core::time::DateTime Time
Definition: forward_declarations.h:13
forward_declarations.h
armarx::armem::Duration
armarx::core::time::Duration Duration
Definition: forward_declarations.h:14
armarx::core::time::dto
Definition: forward_declarations.h:17
armarx::aron::bo
const std::optional< BoT > & bo
Definition: aron_conversions.h:168