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


sick_scan_xd
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:08