KeyValue.h
Go to the documentation of this file.
1 // Generated by gencpp from file diagnostic_msgs/KeyValue.msg
2 // DO NOT EDIT!
3 
4 
5 #ifndef DIAGNOSTIC_MSGS_MESSAGE_KEYVALUE_H
6 #define DIAGNOSTIC_MSGS_MESSAGE_KEYVALUE_H
7 
8 
9 #include <string>
10 #include <vector>
11 #include <map>
12 
13 #include <ros/types.h>
14 #include <ros/serialization.h>
16 #include <ros/message_operations.h>
17 
18 
19 namespace diagnostic_msgs
20 {
21 template <class ContainerAllocator>
22 struct KeyValue_
23 {
25 
27  : key()
28  , value() {
29  }
30  KeyValue_(const ContainerAllocator& _alloc)
31  : key(_alloc)
32  , value(_alloc) {
33  (void)_alloc;
34  }
35 
36 
37 
38  typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _key_type;
39  _key_type key;
40 
41  typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _value_type;
42  _value_type value;
43 
44 
45 
46 
47  typedef std::shared_ptr< ::diagnostic_msgs::KeyValue_<ContainerAllocator> > Ptr;
48  typedef std::shared_ptr< ::diagnostic_msgs::KeyValue_<ContainerAllocator> const> ConstPtr;
49 
50 }; // struct KeyValue_
51 
52 typedef ::diagnostic_msgs::KeyValue_<std::allocator<void> > KeyValue;
53 
54 typedef std::shared_ptr< ::diagnostic_msgs::KeyValue > KeyValuePtr;
55 typedef std::shared_ptr< ::diagnostic_msgs::KeyValue const> KeyValueConstPtr;
56 
57 // constants requiring out of line definition
58 
59 
60 
61 template<typename ContainerAllocator>
62 std::ostream& operator<<(std::ostream& s, const ::diagnostic_msgs::KeyValue_<ContainerAllocator> & v)
63 {
65 return s;
66 }
67 
68 } // namespace diagnostic_msgs
69 
70 namespace rs2rosinternal
71 {
72 namespace message_traits
73 {
74 
75 
76 
77 // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': False}
78 // {'std_msgs': ['/opt/ros/kinetic/share/std_msgs/cmake/../msg'], 'diagnostic_msgs': ['/home/zivs/Desktop/diagnostic_msgs/msg']}
79 
80 // !!!!!!!!!!! ['__class__', '__delattr__', '__dict__', '__doc__', '__eq__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_parsed_fields', 'constants', 'fields', 'full_name', 'has_header', 'header_present', 'names', 'package', 'parsed_fields', 'short_name', 'text', 'types']
81 
82 
83 
84 
85 template <class ContainerAllocator>
86 struct IsFixedSize< ::diagnostic_msgs::KeyValue_<ContainerAllocator> >
87  : FalseType
88  { };
89 
90 template <class ContainerAllocator>
91 struct IsFixedSize< ::diagnostic_msgs::KeyValue_<ContainerAllocator> const>
92  : FalseType
93  { };
94 
95 template <class ContainerAllocator>
96 struct IsMessage< ::diagnostic_msgs::KeyValue_<ContainerAllocator> >
97  : TrueType
98  { };
99 
100 template <class ContainerAllocator>
101 struct IsMessage< ::diagnostic_msgs::KeyValue_<ContainerAllocator> const>
102  : TrueType
103  { };
104 
105 template <class ContainerAllocator>
106 struct HasHeader< ::diagnostic_msgs::KeyValue_<ContainerAllocator> >
107  : FalseType
108  { };
109 
110 template <class ContainerAllocator>
111 struct HasHeader< ::diagnostic_msgs::KeyValue_<ContainerAllocator> const>
112  : FalseType
113  { };
114 
115 
116 template<class ContainerAllocator>
117 struct MD5Sum< ::diagnostic_msgs::KeyValue_<ContainerAllocator> >
118 {
119  static const char* value()
120  {
121  return "cf57fdc6617a881a88c16e768132149c";
122  }
123 
124  static const char* value(const ::diagnostic_msgs::KeyValue_<ContainerAllocator>&) { return value(); }
125  static const uint64_t static_value1 = 0xcf57fdc6617a881aULL;
126  static const uint64_t static_value2 = 0x88c16e768132149cULL;
127 };
128 
129 template<class ContainerAllocator>
130 struct DataType< ::diagnostic_msgs::KeyValue_<ContainerAllocator> >
131 {
132  static const char* value()
133  {
134  return "diagnostic_msgs/KeyValue";
135  }
136 
137  static const char* value(const ::diagnostic_msgs::KeyValue_<ContainerAllocator>&) { return value(); }
138 };
139 
140 template<class ContainerAllocator>
141 struct Definition< ::diagnostic_msgs::KeyValue_<ContainerAllocator> >
142 {
143  static const char* value()
144  {
145  return "string key # what to label this value when viewing\n\
146 string value # a value to track over time\n\
147 ";
148  }
149 
150  static const char* value(const ::diagnostic_msgs::KeyValue_<ContainerAllocator>&) { return value(); }
151 };
152 
153 } // namespace message_traits
154 } // namespace rs2rosinternal
155 
156 namespace rs2rosinternal
157 {
158 namespace serialization
159 {
160 
161  template<class ContainerAllocator> struct Serializer< ::diagnostic_msgs::KeyValue_<ContainerAllocator> >
162  {
163  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
164  {
165  stream.next(m.key);
166  stream.next(m.value);
167  }
168 
170  }; // struct KeyValue_
171 
172 } // namespace serialization
173 } // namespace rs2rosinternal
174 
175 namespace rs2rosinternal
176 {
177 namespace message_operations
178 {
179 
180 template<class ContainerAllocator>
181 struct Printer< ::diagnostic_msgs::KeyValue_<ContainerAllocator> >
182 {
183  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::diagnostic_msgs::KeyValue_<ContainerAllocator>& v)
184  {
185  s << indent << "key: ";
186  Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.key);
187  s << indent << "value: ";
188  Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.value);
189  }
190 };
191 
192 } // namespace message_operations
193 } // namespace rs2rosinternal
194 
195 #endif // DIAGNOSTIC_MSGS_MESSAGE_KEYVALUE_H
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
GLdouble s
const GLfloat * m
Definition: glext.h:6814
Specialize to provide the md5sum for a message.
KeyValue_(const ContainerAllocator &_alloc)
Definition: KeyValue.h:30
std::shared_ptr< ::diagnostic_msgs::KeyValue_< ContainerAllocator > const > ConstPtr
Definition: KeyValue.h:48
GLfloat value
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
::diagnostic_msgs::KeyValue_< std::allocator< void > > KeyValue
Definition: KeyValue.h:52
GLsizei const GLchar *const * string
Specialize to provide the datatype for a message.
HasHeader informs whether or not there is a header that gets serialized as the first thing in the mes...
GLuint GLuint stream
Definition: glext.h:1790
KeyValue_< ContainerAllocator > Type
Definition: KeyValue.h:24
std::shared_ptr< ::diagnostic_msgs::KeyValue_< ContainerAllocator > > Ptr
Definition: KeyValue.h:47
A fixed-size datatype is one whose size is constant, i.e. it has no variable-length arrays or strings...
static const char * value(const ::diagnostic_msgs::KeyValue_< ContainerAllocator > &)
Definition: KeyValue.h:150
GLuint64 key
Definition: glext.h:8966
Stream base-class, provides common functionality for IStream and OStream.
std::shared_ptr< ::diagnostic_msgs::KeyValue const > KeyValueConstPtr
Definition: KeyValue.h:55
#define ROS_DECLARE_ALLINONE_SERIALIZER
Declare your serializer to use an allInOne member instead of requiring 3 different serialization func...
unsigned __int64 uint64_t
Definition: stdint.h:90
Specialize to provide the definition for a message.
std::basic_string< char, std::char_traits< char >, typename ContainerAllocator::template rebind< char >::other > _key_type
Definition: KeyValue.h:38
static const char * value(const ::diagnostic_msgs::KeyValue_< ContainerAllocator > &)
Definition: KeyValue.h:137
Templated serialization class. Default implementation provides backwards compatibility with old messa...
std::shared_ptr< ::diagnostic_msgs::KeyValue > KeyValuePtr
Definition: KeyValue.h:54
GLdouble v
static void stream(Stream &s, const std::string &indent, const ::diagnostic_msgs::KeyValue_< ContainerAllocator > &v)
Definition: KeyValue.h:183
std::basic_string< char, std::char_traits< char >, typename ContainerAllocator::template rebind< char >::other > _value_type
Definition: KeyValue.h:41
static const char * value(const ::diagnostic_msgs::KeyValue_< ContainerAllocator > &)
Definition: KeyValue.h:124


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:21