time.h
Go to the documentation of this file.
1#pragma once
2
3#include <RobotAPI/libraries/aron/common/aron/time.aron.generated.h>
7
9
10namespace armarx
11{
12 // Helper methods for code generation to convert json/aron to bo and vice versa
13 namespace aron
14 {
15 template <class ReaderT>
17
18 void
19 read(ReaderT& aron_r, typename ReaderT::InputType& input, armarx::core::time::DateTime& ret)
20 {
21 arondto::DateTime aron;
22 aron.read(aron_r, input);
23
25 }
26
27 template <class WriterT>
28 requires data::isWriter<WriterT>
29
30 void
31 write(WriterT& aron_w,
33 typename WriterT::ReturnType& ret,
34 const armarx::aron::Path& aron_p = armarx::aron::Path())
35 {
36 arondto::DateTime aron;
37 armarx::toAron(aron, input);
38 ret = aron.write(aron_w, aron_p);
39 }
40
41 template <class ReaderT>
42 requires data::isReader<ReaderT>
43
44 void
45 read(ReaderT& aron_r, typename ReaderT::InputType& input, armarx::core::time::Duration& ret)
46 {
47 arondto::Duration aron;
48 aron.read(aron_r, input);
49
51 }
52
53 template <class WriterT>
54 requires data::isWriter<WriterT>
55
56 void
57 write(WriterT& aron_w,
59 typename WriterT::ReturnType& ret,
60 const armarx::aron::Path& aron_p = armarx::aron::Path())
61 {
62 arondto::Duration aron;
63 armarx::toAron(aron, input);
64 ret = aron.write(aron_w, aron_p);
65 }
66 } // namespace aron
67
68} // namespace armarx
The Path class.
Definition Path.h:36
Represents a point in time.
Definition DateTime.h:25
Represents a duration.
Definition Duration.h:17
void read(ReaderT &aron_r, typename ReaderT::InputType &input, Eigen::Matrix< EigenT, rows, cols, options > &ret)
Definition eigen.h:23
void write(WriterT &aron_w, const Eigen::Matrix< EigenT, rows, cols, options > &input, typename WriterT::ReturnType &ret, const armarx::aron::Path &aron_p=armarx::aron::Path())
Definition eigen.h:138
This file offers overloads of toIce() and fromIce() functions for STL container types.
void toAron(arondto::PackagePath &dto, const PackageFileLocation &bo)
void fromAron(const arondto::PackagePath &dto, PackageFileLocation &bo)