Byte.h
Go to the documentation of this file.
1 // Generated by gencpp from file std_msgs/Byte.msg
2 // DO NOT EDIT!
3 
4 
5 #ifndef STD_MSGS_MESSAGE_BYTE_H
6 #define STD_MSGS_MESSAGE_BYTE_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 std_msgs
20 {
21 template <class ContainerAllocator>
22 struct Byte_
23 {
25 
27  : data(0) {
28  }
29  Byte_(const ContainerAllocator& _alloc)
30  : data(0) {
31  (void)_alloc;
32  }
33 
34 
35 
36  typedef int8_t _data_type;
37  _data_type data;
38 
39 
40 
41 
44 
45 }; // struct Byte_
46 
47 typedef ::std_msgs::Byte_<std::allocator<void> > Byte;
48 
51 
52 // constants requiring out of line definition
53 
54 
55 
56 template<typename ContainerAllocator>
57 std::ostream& operator<<(std::ostream& s, const ::std_msgs::Byte_<ContainerAllocator> & v)
58 {
60 return s;
61 }
62 
63 } // namespace std_msgs
64 
65 namespace rs2rosinternal
66 {
67 namespace message_traits
68 {
69 
70 
71 
72 // BOOLTRAITS {'IsFixedSize': True, 'IsMessage': True, 'HasHeader': False}
73 // {'std_msgs': ['/tmp/binarydeb/ros-kinetic-std-msgs-0.5.10/msg']}
74 
75 // !!!!!!!!!!! ['__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']
76 
77 
78 
79 
80 template <class ContainerAllocator>
81 struct IsFixedSize< ::std_msgs::Byte_<ContainerAllocator> >
82  : TrueType
83  { };
84 
85 template <class ContainerAllocator>
86 struct IsFixedSize< ::std_msgs::Byte_<ContainerAllocator> const>
87  : TrueType
88  { };
89 
90 template <class ContainerAllocator>
91 struct IsMessage< ::std_msgs::Byte_<ContainerAllocator> >
92  : TrueType
93  { };
94 
95 template <class ContainerAllocator>
96 struct IsMessage< ::std_msgs::Byte_<ContainerAllocator> const>
97  : TrueType
98  { };
99 
100 template <class ContainerAllocator>
101 struct HasHeader< ::std_msgs::Byte_<ContainerAllocator> >
102  : FalseType
103  { };
104 
105 template <class ContainerAllocator>
106 struct HasHeader< ::std_msgs::Byte_<ContainerAllocator> const>
107  : FalseType
108  { };
109 
110 
111 template<class ContainerAllocator>
112 struct MD5Sum< ::std_msgs::Byte_<ContainerAllocator> >
113 {
114  static const char* value()
115  {
116  return "ad736a2e8818154c487bb80fe42ce43b";
117  }
118 
119  static const char* value(const ::std_msgs::Byte_<ContainerAllocator>&) { return value(); }
120  static const uint64_t static_value1 = 0xad736a2e8818154cULL;
121  static const uint64_t static_value2 = 0x487bb80fe42ce43bULL;
122 };
123 
124 template<class ContainerAllocator>
125 struct DataType< ::std_msgs::Byte_<ContainerAllocator> >
126 {
127  static const char* value()
128  {
129  return "std_msgs/Byte";
130  }
131 
132  static const char* value(const ::std_msgs::Byte_<ContainerAllocator>&) { return value(); }
133 };
134 
135 template<class ContainerAllocator>
136 struct Definition< ::std_msgs::Byte_<ContainerAllocator> >
137 {
138  static const char* value()
139  {
140  return "byte data\n\
141 ";
142  }
143 
144  static const char* value(const ::std_msgs::Byte_<ContainerAllocator>&) { return value(); }
145 };
146 
147 } // namespace message_traits
148 } // namespace rs2rosinternal
149 
150 namespace rs2rosinternal
151 {
152 namespace serialization
153 {
154 
155  template<class ContainerAllocator> struct Serializer< ::std_msgs::Byte_<ContainerAllocator> >
156  {
157  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
158  {
159  stream.next(m.data);
160  }
161 
163  }; // struct Byte_
164 
165 } // namespace serialization
166 } // namespace rs2rosinternal
167 
168 namespace rs2rosinternal
169 {
170 namespace message_operations
171 {
172 
173 template<class ContainerAllocator>
174 struct Printer< ::std_msgs::Byte_<ContainerAllocator> >
175 {
176  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::std_msgs::Byte_<ContainerAllocator>& v)
177  {
178  s << indent << "data: ";
179  Printer<int8_t>::stream(s, indent + " ", v.data);
180  }
181 };
182 
183 } // namespace message_operations
184 } // namespace rs2rosinternal
185 
186 #endif // STD_MSGS_MESSAGE_BYTE_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.
Byte_< ContainerAllocator > Type
Definition: Byte.h:24
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
boost::shared_ptr< ::std_msgs::Byte_< ContainerAllocator > const > ConstPtr
Definition: Byte.h:43
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
boost::shared_ptr< ::std_msgs::Byte > BytePtr
Definition: Byte.h:49
A fixed-size datatype is one whose size is constant, i.e. it has no variable-length arrays or strings...
static void stream(Stream &s, const std::string &indent, const ::std_msgs::Byte_< ContainerAllocator > &v)
Definition: Byte.h:176
boost::shared_ptr< ::std_msgs::Byte_< ContainerAllocator > > Ptr
Definition: Byte.h:42
Stream base-class, provides common functionality for IStream and OStream.
_data_type data
Definition: Byte.h:37
static const char * value(const ::std_msgs::Byte_< ContainerAllocator > &)
Definition: Byte.h:132
static const char * value(const ::std_msgs::Byte_< ContainerAllocator > &)
Definition: Byte.h:119
#define ROS_DECLARE_ALLINONE_SERIALIZER
Declare your serializer to use an allInOne member instead of requiring 3 different serialization func...
Definition: Bool.h:19
unsigned __int64 uint64_t
Definition: stdint.h:90
Specialize to provide the definition for a message.
signed char int8_t
Definition: stdint.h:75
::std_msgs::Byte_< std::allocator< void > > Byte
Definition: Byte.h:47
boost::shared_ptr< ::std_msgs::Byte const > ByteConstPtr
Definition: Byte.h:50
int8_t _data_type
Definition: Byte.h:36
Templated serialization class. Default implementation provides backwards compatibility with old messa...
GLdouble v
Definition: parser.hpp:150
Byte_(const ContainerAllocator &_alloc)
Definition: Byte.h:29
static const char * value(const ::std_msgs::Byte_< ContainerAllocator > &)
Definition: Byte.h:144


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