SkillExecutionRequest.cpp
Go to the documentation of this file.
2 
3 namespace armarx
4 {
5  namespace skills
6  {
7  manager::dto::SkillExecutionRequest
9  {
10  manager::dto::SkillExecutionRequest ret;
11  ret.skillId = skillId.toManagerIce();
12  ret.executorName = executorName;
14  return ret;
15  }
16 
17  provider::dto::SkillExecutionRequest
19  {
20  provider::dto::SkillExecutionRequest ret;
21  ret.skillId = skillId.toProviderIce();
22  ret.executorName = executorName;
24  ret.callbackInterface = callbackInterface;
25  return ret;
26  }
27 
29  SkillExecutionRequest::FromIce(const manager::dto::SkillExecutionRequest& req)
30  {
31  return {skills::SkillID::FromIce(req.skillId),
32  req.executorName,
34  nullptr};
35  }
36 
38  SkillExecutionRequest::FromIce(const provider::dto::SkillExecutionRequest& req,
39  const std::optional<skills::ProviderID>& providerId)
40  {
41  return {skills::SkillID::FromIce(req.skillId, providerId),
42  req.executorName,
44  req.callbackInterface};
45  }
46 
47  } // namespace skills
48 } // namespace armarx
armarx::aron::ret
ReaderT::InputType T & ret
Definition: rw.h:21
skills
This file is part of ArmarX.
armarx::skills::SkillExecutionRequest::skillId
skills::SkillID skillId
Definition: SkillExecutionRequest.h:33
armarx::skills::SkillExecutionRequest::FromIce
static SkillExecutionRequest FromIce(const manager::dto::SkillExecutionRequest &)
Definition: SkillExecutionRequest.cpp:29
armarx::skills::SkillID::toManagerIce
manager::dto::SkillID toManagerIce() const
Definition: SkillID.cpp:51
armarx::aron::data::Dict::FromAronDictDTO
static PointerType FromAronDictDTO(const data::dto::DictPtr &aron)
Definition: Dict.cpp:129
armarx::skills::SkillExecutionRequest
Definition: SkillExecutionRequest.h:21
armarx::skills::SkillExecutionRequest::callbackInterface
callback::dti::SkillProviderCallbackInterfacePrx callbackInterface
Definition: SkillExecutionRequest.h:36
armarx::skills::SkillExecutionRequest::toProviderIce
provider::dto::SkillExecutionRequest toProviderIce() const
Definition: SkillExecutionRequest.cpp:18
armarx::skills::SkillID::FromIce
static SkillID FromIce(const manager::dto::SkillID &)
Definition: SkillID.cpp:32
armarx::aron::data::Dict::ToAronDictDTO
static data::dto::DictPtr ToAronDictDTO(const PointerType &navigator)
Definition: Dict.cpp:139
SkillExecutionRequest.h
armarx::skills::SkillExecutionRequest::toManagerIce
manager::dto::SkillExecutionRequest toManagerIce() const
Definition: SkillExecutionRequest.cpp:8
armarx::skills::SkillExecutionRequest::parameters
armarx::aron::data::DictPtr parameters
Definition: SkillExecutionRequest.h:35
armarx::skills::SkillExecutionRequest::executorName
std::string executorName
Definition: SkillExecutionRequest.h:34
armarx::skills::SkillID::toProviderIce
provider::dto::SkillID toProviderIce() const
Definition: SkillID.cpp:58
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28