SuccessHeader.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <vector>
4 
5 #include <RobotAPI/interface/aron.h>
6 
7 #include "../core/MemoryID.h"
8 #include "../core/Time.h"
9 
10 
11 namespace armarx::armem::detail
12 {
14  {
15  operator bool() const
16  {
17  return success;
18  }
19 
20  bool success;
21  std::string errorMessage;
22  };
23 
24 
25  template <class Ice>
26  void toIce(Ice& ice, const SuccessHeader& header)
27  {
28  ice.success = header.success;
29  ice.errorMessage = header.errorMessage;
30  }
31  template <class Ice>
32  void fromIce(const Ice& ice, SuccessHeader& header)
33  {
34  header.success = ice.success;
35  header.errorMessage = ice.errorMessage;
36  }
37 }
armarx::armem::detail::SuccessHeader::success
bool success
Definition: SuccessHeader.h:20
armarx::armem::detail::toIce
void toIce(Ice &ice, const SuccessHeader &header)
Definition: SuccessHeader.h:26
armarx::armem::detail
Definition: container_maps.h:33
armarx::armem::detail::SuccessHeader::errorMessage
std::string errorMessage
Definition: SuccessHeader.h:21
armarx::armem::detail::SuccessHeader
Definition: SuccessHeader.h:13
armarx::armem::detail::fromIce
void fromIce(const Ice &ice, SuccessHeader &header)
Definition: SuccessHeader.h:32
Ice
Definition: DBTypes.cpp:64