ProviderID.cpp
Go to the documentation of this file.
1#include "ProviderID.h"
2
3namespace armarx
4{
5 namespace skills
6 {
7 bool
9 {
10 return toString() == other.toString();
11 }
12
13 bool
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
bool operator==(const ProviderID &other) const
Definition ProviderID.cpp:8
static ProviderID FromIce(const manager::dto::ProviderID &)
bool operator!=(const ProviderID &other) const
bool operator<=(const ProviderID &other) const
std::string toString() const
callback::dto::ProviderID toCallbackIce() const
manager::dto::ProviderID toManagerIce() const
bool operator<(const ProviderID &other) const
This file is part of ArmarX.
std::ostream & operator<<(std::ostream &os, const ProviderID &id)
This file offers overloads of toIce() and fromIce() functions for STL container types.