ROSEndEffector
ROS End-Effector package: provides a ROS-based set of standard interfaces to command robotics end-effectors in an agnostic fashion.
Public Member Functions | Public Attributes | List of all members
ROSEE::Utils::DifferentKeysException< Map1, Map2 > Struct Template Reference

#include <Utils.h>

+ Inheritance diagram for ROSEE::Utils::DifferentKeysException< Map1, Map2 >:
+ Collaboration diagram for ROSEE::Utils::DifferentKeysException< Map1, Map2 >:

Public Member Functions

 DifferentKeysException (const Map1 *map1, const Map2 *map2)
 
const char * what () const throw ()
 

Public Attributes

const Map1 * map1
 
const Map2 * map2
 

Detailed Description

template<typename Map1, typename Map2>
struct ROSEE::Utils::DifferentKeysException< Map1, Map2 >

Definition at line 193 of file Utils.h.

Constructor & Destructor Documentation

template<typename Map1, typename Map2>
ROSEE::Utils::DifferentKeysException< Map1, Map2 >::DifferentKeysException ( const Map1 *  map1,
const Map2 *  map2 
)
inline

Definition at line 197 of file Utils.h.

197  :
198  map1(map1), map2(map2) {}

Member Function Documentation

template<typename Map1, typename Map2>
const char* ROSEE::Utils::DifferentKeysException< Map1, Map2 >::what ( ) const
throw (
)
inline

Definition at line 200 of file Utils.h.

200  {
201  std::stringstream output;
202  output << "First map keys:\n";
203  for (auto it : *map1) {
204  output << "\t" << it.first << "\n";
205  }
206  output << ("Second map keys:\n");
207  for (auto it : *map2) {
208  output << "\t" << it.first << "\n";
209  }
210  std::cerr << output.str().c_str() << std::endl;
211 
212  return "Maps have different keys";
213  }

Member Data Documentation

template<typename Map1, typename Map2>
const Map1* ROSEE::Utils::DifferentKeysException< Map1, Map2 >::map1

Definition at line 194 of file Utils.h.

template<typename Map1, typename Map2>
const Map2* ROSEE::Utils::DifferentKeysException< Map1, Map2 >::map2

Definition at line 195 of file Utils.h.


The documentation for this struct was generated from the following file: