ProviderID.cpp
Go to the documentation of this file.
1 #include "ProviderID.h"
2 
3 namespace armarx
4 {
5  namespace skills
6  {
7  bool
8  ProviderID::operator==(const ProviderID& other) const
9  {
10  return toString() == other.toString();
11  }
12 
13  bool
14  ProviderID::operator!=(const ProviderID& other) const
15  {
16  return not(*this == other);
17  }
18 
19  bool
20  ProviderID::operator<(const ProviderID& other) const
21  {
22  return toString() < other.toString();
23  }
24 
25  bool
26  ProviderID::operator<=(const ProviderID& other) const
27  {
28  return toString() <= other.toString();
29  }
30 
32  ProviderID::FromIce(const manager::dto::ProviderID& s)
33  {
34  return ProviderID{.providerName = s.providerName};
35  }
36 
38  ProviderID::FromIce(const callback::dto::ProviderID& s)
39  {
40  return ProviderID{.providerName = s.providerName};
41  }
42 
43  manager::dto::ProviderID
45  {
46  return {providerName};
47  }
48 
49  callback::dto::ProviderID
51  {
52  return {providerName};
53  }
54 
55  std::string
57  {
58  return providerName;
59  }
60  } // namespace skills
61 
62  std::ostream&
63  skills::operator<<(std::ostream& os, const ProviderID& id)
64  {
65  return os << "'" << id.toString() << "'";
66  }
67 } // namespace armarx
armarx::skills::ProviderID::operator<=
bool operator<=(const ProviderID &other) const
Definition: ProviderID.cpp:26
armarx::skills::ProviderID::operator!=
bool operator!=(const ProviderID &other) const
Definition: ProviderID.cpp:14
armarx::skills::ProviderID::operator==
bool operator==(const ProviderID &other) const
Definition: ProviderID.cpp:8
armarx::skills::ProviderID::toString
std::string toString() const
Definition: ProviderID.cpp:56
ProviderID.h
skills
This file is part of ArmarX.
armarx::skills::ProviderID::providerName
std::string providerName
Definition: ProviderID.h:31
armarx::skills::ProviderID::toCallbackIce
callback::dto::ProviderID toCallbackIce() const
Definition: ProviderID.cpp:50
armarx::skills::operator<<
std::ostream & operator<<(std::ostream &os, const ProviderID &id)
Definition: ProviderID.cpp:63
armarx::skills::ProviderID::operator<
bool operator<(const ProviderID &other) const
Definition: ProviderID.cpp:20
armarx::skills::ProviderID
Definition: ProviderID.h:15
armarx::skills::ProviderID::toManagerIce
manager::dto::ProviderID toManagerIce() const
Definition: ProviderID.cpp:44
armarx::ctrlutil::s
double s(double t, double s0, double v0, double a0, double j)
Definition: CtrlUtil.h:33
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::skills::ProviderID::FromIce
static ProviderID FromIce(const manager::dto::ProviderID &)
Definition: ProviderID.cpp:32