Log.h
Go to the documentation of this file.
1 // Generated by gencpp from file rosgraph_msgs/Log.msg
2 // DO NOT EDIT!
3 
4 
5 #ifndef ROSGRAPH_MSGS_MESSAGE_LOG_H
6 #define ROSGRAPH_MSGS_MESSAGE_LOG_H
7 
8 #include <memory>
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 #include <std_msgs/Header.h>
19 
20 namespace rosgraph_msgs
21 {
22 template <class ContainerAllocator>
23 struct Log_
24 {
26 
27  Log_()
28  : header()
29  , level(0)
30  , name()
31  , msg()
32  , file()
33  , function()
34  , line(0)
35  , topics() {
36  }
37  Log_(const ContainerAllocator& _alloc)
38  : header(_alloc)
39  , level(0)
40  , name(_alloc)
41  , msg(_alloc)
42  , file(_alloc)
43  , function(_alloc)
44  , line(0)
45  , topics(_alloc) {
46  (void)_alloc;
47  }
48 
49 
50 
51  typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
52  _header_type header;
53 
55  _level_type level;
56 
57  typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type;
58  _name_type name;
59 
60  typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _msg_type;
61  _msg_type msg;
62 
63  typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _file_type;
64  _file_type file;
65 
66  typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _function_type;
67  _function_type function;
68 
70  _line_type line;
71 
72  typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _topics_type;
73  _topics_type topics;
74 
75 #undef ERROR
76  enum { DEBUG = 1 };
77  enum { INFO = 2 };
78  enum { WARN = 4 };
79  enum { ERROR = 8 };
80  enum { FATAL = 16 };
81 
82 
83  typedef std::shared_ptr< ::rosgraph_msgs::Log_<ContainerAllocator> > Ptr;
84  typedef std::shared_ptr< ::rosgraph_msgs::Log_<ContainerAllocator> const> ConstPtr;
85 
86 }; // struct Log_
87 
88 typedef ::rosgraph_msgs::Log_<std::allocator<void> > Log;
89 
90 typedef std::shared_ptr< ::rosgraph_msgs::Log > LogPtr;
91 typedef std::shared_ptr< ::rosgraph_msgs::Log const> LogConstPtr;
92 
93 // constants requiring out of line definition
94 
95 
96 
97 
98 
99 
100 
101 
102 
103 
104 
105 
106 
107 template<typename ContainerAllocator>
108 std::ostream& operator<<(std::ostream& s, const ::rosgraph_msgs::Log_<ContainerAllocator> & v)
109 {
111 return s;
112 }
113 
114 } // namespace rosgraph_msgs
115 
116 namespace rs2rosinternal
117 {
118 namespace message_traits
119 {
120 
121 
122 
123 // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': True}
124 // {'rosgraph_msgs': ['/tmp/binarydeb/ros-kinetic-rosgraph-msgs-1.11.2/msg'], 'std_msgs': ['/opt/ros/kinetic/share/std_msgs/cmake/../msg']}
125 
126 // !!!!!!!!!!! ['__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']
127 
128 
129 
130 
131 template <class ContainerAllocator>
132 struct IsFixedSize< ::rosgraph_msgs::Log_<ContainerAllocator> >
133  : FalseType
134  { };
135 
136 template <class ContainerAllocator>
137 struct IsFixedSize< ::rosgraph_msgs::Log_<ContainerAllocator> const>
138  : FalseType
139  { };
140 
141 template <class ContainerAllocator>
142 struct IsMessage< ::rosgraph_msgs::Log_<ContainerAllocator> >
143  : TrueType
144  { };
145 
146 template <class ContainerAllocator>
147 struct IsMessage< ::rosgraph_msgs::Log_<ContainerAllocator> const>
148  : TrueType
149  { };
150 
151 template <class ContainerAllocator>
152 struct HasHeader< ::rosgraph_msgs::Log_<ContainerAllocator> >
153  : TrueType
154  { };
155 
156 template <class ContainerAllocator>
157 struct HasHeader< ::rosgraph_msgs::Log_<ContainerAllocator> const>
158  : TrueType
159  { };
160 
161 
162 template<class ContainerAllocator>
163 struct MD5Sum< ::rosgraph_msgs::Log_<ContainerAllocator> >
164 {
165  static const char* value()
166  {
167  return "acffd30cd6b6de30f120938c17c593fb";
168  }
169 
170  static const char* value(const ::rosgraph_msgs::Log_<ContainerAllocator>&) { return value(); }
171  static const uint64_t static_value1 = 0xacffd30cd6b6de30ULL;
172  static const uint64_t static_value2 = 0xf120938c17c593fbULL;
173 };
174 
175 template<class ContainerAllocator>
176 struct DataType< ::rosgraph_msgs::Log_<ContainerAllocator> >
177 {
178  static const char* value()
179  {
180  return "rosgraph_msgs/Log";
181  }
182 
183  static const char* value(const ::rosgraph_msgs::Log_<ContainerAllocator>&) { return value(); }
184 };
185 
186 template<class ContainerAllocator>
187 struct Definition< ::rosgraph_msgs::Log_<ContainerAllocator> >
188 {
189  static const char* value()
190  {
191  return "##\n\
192 ## Severity level constants\n\
193 ##\n\
194 byte DEBUG=1 #debug level\n\
195 byte INFO=2 #general level\n\
196 byte WARN=4 #warning level\n\
197 byte ERROR=8 #error level\n\
198 byte FATAL=16 #fatal/critical level\n\
199 ##\n\
200 ## Fields\n\
201 ##\n\
202 Header header\n\
203 byte level\n\
204 string name # name of the node\n\
205 string msg # message \n\
206 string file # file the message came from\n\
207 string function # function the message came from\n\
208 uint32 line # line the message came from\n\
209 string[] topics # topic names that the node publishes\n\
210 \n\
211 ================================================================================\n\
212 MSG: std_msgs/Header\n\
213 # Standard metadata for higher-level stamped data types.\n\
214 # This is generally used to communicate timestamped data \n\
215 # in a particular coordinate frame.\n\
216 # \n\
217 # sequence ID: consecutively increasing ID \n\
218 uint32 seq\n\
219 #Two-integer timestamp that is expressed as:\n\
220 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
221 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
222 # time-handling sugar is provided by the client library\n\
223 time stamp\n\
224 #Frame this data is associated with\n\
225 # 0: no frame\n\
226 # 1: global frame\n\
227 string frame_id\n\
228 ";
229  }
230 
231  static const char* value(const ::rosgraph_msgs::Log_<ContainerAllocator>&) { return value(); }
232 };
233 
234 } // namespace message_traits
235 } // namespace rs2rosinternal
236 
237 namespace rs2rosinternal
238 {
239 namespace serialization
240 {
241 
242  template<class ContainerAllocator> struct Serializer< ::rosgraph_msgs::Log_<ContainerAllocator> >
243  {
244  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
245  {
246  stream.next(m.header);
247  stream.next(m.level);
248  stream.next(m.name);
249  stream.next(m.msg);
250  stream.next(m.file);
251  stream.next(m.function);
252  stream.next(m.line);
253  stream.next(m.topics);
254  }
255 
257  }; // struct Log_
258 
259 } // namespace serialization
260 } // namespace rs2rosinternal
261 
262 namespace rs2rosinternal
263 {
264 namespace message_operations
265 {
266 
267 template<class ContainerAllocator>
268 struct Printer< ::rosgraph_msgs::Log_<ContainerAllocator> >
269 {
270  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::rosgraph_msgs::Log_<ContainerAllocator>& v)
271  {
272  s << indent << "header: ";
273  s << std::endl;
275  s << indent << "level: ";
276  Printer<int8_t>::stream(s, indent + " ", v.level);
277  s << indent << "name: ";
278  Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name);
279  s << indent << "msg: ";
280  Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.msg);
281  s << indent << "file: ";
282  Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.file);
283  s << indent << "function: ";
284  Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.function);
285  s << indent << "line: ";
286  Printer<uint32_t>::stream(s, indent + " ", v.line);
287  s << indent << "topics[]" << std::endl;
288  for (size_t i = 0; i < v.topics.size(); ++i)
289  {
290  s << indent << " topics[" << i << "]: ";
291  Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.topics[i]);
292  }
293  }
294 };
295 
296 } // namespace message_operations
297 } // namespace rs2rosinternal
298 
299 #endif // ROSGRAPH_MSGS_MESSAGE_LOG_H
GLint level
Log_(const ContainerAllocator &_alloc)
Definition: Log.h:37
static const char * value(const ::rosgraph_msgs::Log_< ContainerAllocator > &)
Definition: Log.h:183
::rosgraph_msgs::Log_< std::allocator< void > > Log
Definition: Log.h:88
_level_type level
Definition: Log.h:55
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
GLuint const GLchar * name
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
GLdouble s
std::basic_string< char, std::char_traits< char >, typename ContainerAllocator::template rebind< char >::other > _name_type
Definition: Log.h:57
const GLfloat * m
Definition: glext.h:6814
Specialize to provide the md5sum for a message.
std::basic_string< char, std::char_traits< char >, typename ContainerAllocator::template rebind< char >::other > _msg_type
Definition: Log.h:60
static const char * value(const ::rosgraph_msgs::Log_< ContainerAllocator > &)
Definition: Log.h:231
_msg_type msg
Definition: Log.h:61
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
std::shared_ptr< ::rosgraph_msgs::Log > LogPtr
Definition: Log.h:90
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
std::shared_ptr< ::rosgraph_msgs::Log const > LogConstPtr
Definition: Log.h:91
_header_type header
Definition: Log.h:52
::std_msgs::Header_< ContainerAllocator > _header_type
Definition: Log.h:51
A fixed-size datatype is one whose size is constant, i.e. it has no variable-length arrays or strings...
std::vector< std::basic_string< char, std::char_traits< char >, typename ContainerAllocator::template rebind< char >::other >, typename ContainerAllocator::template rebind< std::basic_string< char, std::char_traits< char >, typename ContainerAllocator::template rebind< char >::other > >::other > _topics_type
Definition: Log.h:72
Stream base-class, provides common functionality for IStream and OStream.
_function_type function
Definition: Log.h:67
static void stream(Stream &s, const std::string &indent, const ::rosgraph_msgs::Log_< ContainerAllocator > &v)
Definition: Log.h:270
unsigned int uint32_t
Definition: stdint.h:80
Log_< ContainerAllocator > Type
Definition: Log.h:25
#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 > _file_type
Definition: Log.h:63
signed char int8_t
Definition: stdint.h:75
uint32_t _line_type
Definition: Log.h:69
_name_type name
Definition: Log.h:58
_line_type line
Definition: Log.h:70
_topics_type topics
Definition: Log.h:73
_file_type file
Definition: Log.h:64
std::shared_ptr< ::rosgraph_msgs::Log_< ContainerAllocator > const > ConstPtr
Definition: Log.h:84
int i
Templated serialization class. Default implementation provides backwards compatibility with old messa...
std::basic_string< char, std::char_traits< char >, typename ContainerAllocator::template rebind< char >::other > _function_type
Definition: Log.h:66
int8_t _level_type
Definition: Log.h:54
GLdouble v
static const char * value(const ::rosgraph_msgs::Log_< ContainerAllocator > &)
Definition: Log.h:170
std::shared_ptr< ::rosgraph_msgs::Log_< ContainerAllocator > > Ptr
Definition: Log.h:83


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