SkillExecutionID.cpp
Go to the documentation of this file.
1 #include "SkillExecutionID.h"
2 
3 namespace armarx
4 {
5  namespace skills
6  {
7 
8  skills::manager::dto::SkillExecutionID
10  {
11  skills::manager::dto::SkillExecutionID ret;
12  ret.skillId = skillId.toManagerIce();
13  ret.executorName = executorName;
14  armarx::core::time::toIce(ret.executionStartedTime, executionStartedTime);
15  return ret;
16  }
17 
18  skills::provider::dto::SkillExecutionID
20  {
21  skills::provider::dto::SkillExecutionID ret;
22  ret.skillId = skillId.toProviderIce();
23  ret.executorName = executorName;
24  armarx::core::time::toIce(ret.executionStartedTime, executionStartedTime);
25  return ret;
26  }
27 
29  SkillExecutionID::FromIce(const skills::manager::dto::SkillExecutionID& i)
30  {
32  armarx::core::time::fromIce(i.executionStartedTime, t);
33  return {.skillId = skills::SkillID::FromIce(i.skillId),
34  .executorName = i.executorName,
35  .executionStartedTime = t};
36  }
37 
39  SkillExecutionID::FromIce(const skills::provider::dto::SkillExecutionID& i,
40  const std::optional<skills::ProviderID>& providerName)
41  {
43  armarx::core::time::fromIce(i.executionStartedTime, t);
44  return {skills::SkillID::FromIce(i.skillId, providerName), i.executorName, t};
45  }
46 
47  std::string
49  {
52  }
53 
54  } // namespace skills
55 } // namespace armarx
armarx::skills::SkillExecutionID
Definition: SkillExecutionID.h:19
armarx::skills::SkillExecutionID::EXIT_SEPARATOR
static const constexpr char * EXIT_SEPARATOR
Definition: SkillExecutionID.h:27
armarx::skills::SkillID::toString
std::string toString() const
Definition: SkillID.cpp:64
armarx::aron::ret
ReaderT::InputType T & ret
Definition: rw.h:21
skills
This file is part of ArmarX.
armarx::skills::SkillExecutionID::executorName
std::string executorName
Definition: SkillExecutionID.h:22
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::skills::SkillExecutionID::executionStartedTime
armarx::core::time::DateTime executionStartedTime
Definition: SkillExecutionID.h:23
SkillExecutionID.h
armarx::skills::SkillID::toManagerIce
manager::dto::SkillID toManagerIce() const
Definition: SkillID.cpp:51
armarx::skills::SkillExecutionID::toProviderIce
skills::provider::dto::SkillExecutionID toProviderIce() const
Definition: SkillExecutionID.cpp:19
armarx::skills::SkillExecutionID::toManagerIce
skills::manager::dto::SkillExecutionID toManagerIce() const
Definition: SkillExecutionID.cpp:9
armarx::skills::SkillExecutionID::toString
std::string toString() const
Definition: SkillExecutionID.cpp:48
armarx::skills::SkillID::FromIce
static SkillID FromIce(const manager::dto::SkillID &)
Definition: SkillID.cpp:32
armarx::skills::SkillExecutionID::ENTER_SEPARATOR
static const constexpr char * ENTER_SEPARATOR
Definition: SkillExecutionID.h:26
armarx::core::time::DateTime
Represents a point in time.
Definition: DateTime.h:24
armarx::skills::SkillExecutionID::skillId
SkillID skillId
Definition: SkillExecutionID.h:21
armarx::skills::SkillExecutionID::FromIce
static SkillExecutionID FromIce(const skills::manager::dto::SkillExecutionID &)
Definition: SkillExecutionID.cpp:29
armarx::skills::SkillExecutionID::SEPARATOR
static const constexpr char * SEPARATOR
Definition: SkillExecutionID.h:28
armarx::skills::SkillID::toProviderIce
provider::dto::SkillID toProviderIce() const
Definition: SkillID.cpp:58
armarx::core::time::DateTime::toDateTimeString
std::string toDateTimeString() const
Definition: DateTime.cpp:81
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28