ProviderInfo.cpp
Go to the documentation of this file.
1 #include "ProviderInfo.h"
2 
3 namespace armarx
4 {
5  namespace skills
6  {
7  skills::manager::dto::ProviderInfo
9  {
10  skills::manager::dto::ProviderInfo ret;
11  ret.providerId = providerId.toManagerIce();
12  ret.providerInterface = providerInterface;
13 
14  for (const auto& [k, v] : providedSkills)
15  {
16  ret.providedSkills[k.toManagerIce()] = v.toManagerIce();
17  }
18  return ret;
19  }
20 
22  ProviderInfo::FromIce(const manager::dto::ProviderInfo& i)
23  {
24  std::map<SkillID, SkillDescription> m;
25  for (const auto& [k, v] : i.providedSkills)
26  {
28  }
29  return ProviderInfo{skills::ProviderID::FromIce(i.providerId), i.providerInterface, m};
30  }
31  } // namespace skills
32 } // namespace armarx
armarx::aron::ret
ReaderT::InputType T & ret
Definition: rw.h:21
skills
This file is part of ArmarX.
armarx::skills::ProviderInfo::providedSkills
std::map< SkillID, SkillDescription > providedSkills
Definition: ProviderInfo.h:24
armarx::skills::ProviderInfo::FromIce
static ProviderInfo FromIce(const manager::dto::ProviderInfo &)
Definition: ProviderInfo.cpp:22
armarx::skills::ProviderInfo::providerInterface
provider::dti::SkillProviderInterfacePrx providerInterface
Definition: ProviderInfo.h:23
armarx::skills::ProviderID::toManagerIce
manager::dto::ProviderID toManagerIce() const
Definition: ProviderID.cpp:44
armarx::skills::SkillID::FromIce
static SkillID FromIce(const manager::dto::SkillID &)
Definition: SkillID.cpp:32
armarx::ctrlutil::v
double v(double t, double v0, double a0, double j)
Definition: CtrlUtil.h:39
ProviderInfo.h
armarx::skills::ProviderInfo
Definition: ProviderInfo.h:19
armarx::skills::SkillDescription::FromIce
static SkillDescription FromIce(const provider::dto::SkillDescription &i, const std::optional< ProviderID > &=std::nullopt)
Definition: SkillDescription.cpp:39
armarx::skills::ProviderInfo::providerId
ProviderID providerId
Definition: ProviderInfo.h:22
armarx::skills::ProviderInfo::toIce
skills::manager::dto::ProviderInfo toIce() const
Definition: ProviderInfo.cpp:8
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