third-party/realsense-file/rosbag/msgs/realsense_legacy_msgs/metadata.h
Go to the documentation of this file.
1 // Generated by gencpp from file realsense_legacy_msgs/metadata.msg
2 // DO NOT EDIT!
3 
4 
5 #ifndef realsense_legacy_msgs_MESSAGE_METADATA_H
6 #define realsense_legacy_msgs_MESSAGE_METADATA_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 realsense_legacy_msgs
20 {
21 template <class ContainerAllocator>
22 struct metadata_
23 {
25 
27  : type(0)
28  , data() {
29  }
30  metadata_(const ContainerAllocator& _alloc)
31  : type(0)
32  , data(_alloc) {
33  (void)_alloc;
34  }
35 
36 
37 
39  _type_type type;
40 
41  typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > _data_type;
42  _data_type data;
43 
44 
45 
46 
47  typedef std::shared_ptr< ::realsense_legacy_msgs::metadata_<ContainerAllocator> > Ptr;
48  typedef std::shared_ptr< ::realsense_legacy_msgs::metadata_<ContainerAllocator> const> ConstPtr;
49 
50 }; // struct metadata_
51 
52 typedef ::realsense_legacy_msgs::metadata_<std::allocator<void> > metadata;
53 
54 typedef std::shared_ptr< ::realsense_legacy_msgs::metadata > metadataPtr;
55 typedef std::shared_ptr< ::realsense_legacy_msgs::metadata const> metadataConstPtr;
56 
57 // constants requiring out of line definition
58 
59 
60 
61 template<typename ContainerAllocator>
62 std::ostream& operator<<(std::ostream& s, const ::realsense_legacy_msgs::metadata_<ContainerAllocator> & v)
63 {
65 return s;
66 }
67 
68 } // namespace realsense_legacy_msgs
69 
70 namespace rs2rosinternal
71 {
72 namespace message_traits
73 {
74 
75 
76 
77 // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': False}
78 // {'sensor_msgs': ['/opt/ros/kinetic/share/sensor_msgs/cmake/../msg'], 'geometry_msgs': ['/opt/ros/kinetic/share/geometry_msgs/cmake/../msg'], 'std_msgs': ['/opt/ros/kinetic/share/std_msgs/cmake/../msg'], 'realsense_legacy_msgs': ['/home/administrator/ros/realsense_sdk_internal/sdk_internal/tools/realsense_legacy_msgs_generator/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< ::realsense_legacy_msgs::metadata_<ContainerAllocator> >
87  : FalseType
88  { };
89 
90 template <class ContainerAllocator>
91 struct IsFixedSize< ::realsense_legacy_msgs::metadata_<ContainerAllocator> const>
92  : FalseType
93  { };
94 
95 template <class ContainerAllocator>
96 struct IsMessage< ::realsense_legacy_msgs::metadata_<ContainerAllocator> >
97  : TrueType
98  { };
99 
100 template <class ContainerAllocator>
101 struct IsMessage< ::realsense_legacy_msgs::metadata_<ContainerAllocator> const>
102  : TrueType
103  { };
104 
105 template <class ContainerAllocator>
106 struct HasHeader< ::realsense_legacy_msgs::metadata_<ContainerAllocator> >
107  : FalseType
108  { };
109 
110 template <class ContainerAllocator>
111 struct HasHeader< ::realsense_legacy_msgs::metadata_<ContainerAllocator> const>
112  : FalseType
113  { };
114 
115 
116 template<class ContainerAllocator>
117 struct MD5Sum< ::realsense_legacy_msgs::metadata_<ContainerAllocator> >
118 {
119  static const char* value()
120  {
121  return "ca2eb36f087bcfd95f0aa6ff2df9ebdb";
122  }
123 
124  static const char* value(const ::realsense_legacy_msgs::metadata_<ContainerAllocator>&) { return value(); }
125  static const uint64_t static_value1 = 0xca2eb36f087bcfd9ULL;
126  static const uint64_t static_value2 = 0x5f0aa6ff2df9ebdbULL;
127 };
128 
129 template<class ContainerAllocator>
130 struct DataType< ::realsense_legacy_msgs::metadata_<ContainerAllocator> >
131 {
132  static const char* value()
133  {
134  return "realsense_legacy_msgs/metadata";
135  }
136 
137  static const char* value(const ::realsense_legacy_msgs::metadata_<ContainerAllocator>&) { return value(); }
138 };
139 
140 template<class ContainerAllocator>
141 struct Definition< ::realsense_legacy_msgs::metadata_<ContainerAllocator> >
142 {
143  static const char* value()
144  {
145  return "uint32 type\n\
146 uint8[] data\n\
147 ";
148  }
149 
150  static const char* value(const ::realsense_legacy_msgs::metadata_<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< ::realsense_legacy_msgs::metadata_<ContainerAllocator> >
162  {
163  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
164  {
165  stream.next(m.type);
166  stream.next(m.data);
167  }
168 
170  }; // struct metadata_
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< ::realsense_legacy_msgs::metadata_<ContainerAllocator> >
182 {
183  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::realsense_legacy_msgs::metadata_<ContainerAllocator>& v)
184  {
185  s << indent << "type: ";
186  Printer<uint32_t>::stream(s, indent + " ", v.type);
187  s << indent << "data[]" << std::endl;
188  for (size_t i = 0; i < v.data.size(); ++i)
189  {
190  s << indent << " data[" << i << "]: ";
191  Printer<uint8_t>::stream(s, indent + " ", v.data[i]);
192  }
193  }
194 };
195 
196 } // namespace message_operations
197 } // namespace rs2rosinternal
198 
199 #endif // realsense_legacy_msgs_MESSAGE_METADATA_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.
std::shared_ptr< ::realsense_legacy_msgs::metadata_< ContainerAllocator > > Ptr
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
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
A fixed-size datatype is one whose size is constant, i.e. it has no variable-length arrays or strings...
Stream base-class, provides common functionality for IStream and OStream.
std::vector< uint8_t, typename ContainerAllocator::template rebind< uint8_t >::other > _data_type
unsigned int uint32_t
Definition: stdint.h:80
static void stream(Stream &s, const std::string &indent, const ::realsense_legacy_msgs::metadata_< ContainerAllocator > &v)
#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::shared_ptr< ::realsense_legacy_msgs::metadata_< ContainerAllocator > const > ConstPtr
std::shared_ptr< ::realsense_legacy_msgs::metadata const > metadataConstPtr
::realsense_legacy_msgs::metadata_< std::allocator< void > > metadata
GLenum type
std::shared_ptr< ::realsense_legacy_msgs::metadata > metadataPtr
int i
Templated serialization class. Default implementation provides backwards compatibility with old messa...
GLdouble v
Definition: parser.hpp:150


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