SkillExecutionID.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 #include <vector>
5 
8 
9 #include <RobotAPI/interface/skills/SkillProviderInterface.h>
11 
12 #include "SkillID.h"
13 #include "SkillParameterization.h"
14 
15 namespace armarx
16 {
17  namespace skills
18  {
20  {
22  std::string executorName;
24 
25  static const constexpr char* UNKNOWN = "UNKNOWN";
26  static const constexpr char* ENTER_SEPARATOR = "[";
27  static const constexpr char* EXIT_SEPARATOR = "]";
28  static const constexpr char* SEPARATOR = "@";
29 
30  bool
31  operator==(const SkillExecutionID& other) const
32  {
33  return this->toString() == other.toString();
34  }
35 
36  bool
37  operator<(const SkillExecutionID& other) const
38  {
39  return this->executionStartedTime < other.executionStartedTime;
40  }
41 
42  bool
43  operator<=(const SkillExecutionID& other) const
44  {
45  return this->executionStartedTime <= other.executionStartedTime;
46  }
47 
48  skills::manager::dto::SkillExecutionID toManagerIce() const;
49 
50  skills::provider::dto::SkillExecutionID toProviderIce() const;
51 
52  static SkillExecutionID FromIce(const skills::manager::dto::SkillExecutionID&);
53 
54  static SkillExecutionID FromIce(const skills::provider::dto::SkillExecutionID&,
55  const std::optional<skills::ProviderID>& providerName);
56 
57  std::string toString() const;
58  };
59 
60  } // namespace skills
61 } // namespace armarx
armarx::skills::SkillExecutionID
Definition: SkillExecutionID.h:19
armarx::skills::SkillExecutionID::EXIT_SEPARATOR
static const constexpr char * EXIT_SEPARATOR
Definition: SkillExecutionID.h:27
skills
This file is part of ArmarX.
armarx::skills::SkillExecutionID::executorName
std::string executorName
Definition: SkillExecutionID.h:22
SkillID.h
DateTime.h
armarx::skills::SkillExecutionID::operator<
bool operator<(const SkillExecutionID &other) const
Definition: SkillExecutionID.h:37
armarx::skills::SkillExecutionID::executionStartedTime
armarx::core::time::DateTime executionStartedTime
Definition: SkillExecutionID.h:23
ice_conversions.h
SkillParameterization.h
Dict.h
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::SkillExecutionID::UNKNOWN
static const constexpr char * UNKNOWN
Definition: SkillExecutionID.h:25
armarx::skills::SkillExecutionID::operator==
bool operator==(const SkillExecutionID &other) const
Definition: SkillExecutionID.h:31
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::SkillExecutionID::operator<=
bool operator<=(const SkillExecutionID &other) const
Definition: SkillExecutionID.h:43
armarx::skills::SkillID
Definition: SkillID.h:17
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28