DeviceInfo.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-industrial_core/doc_stacks/2014-10-06_00-49-33.800926/industrial_core/industrial_msgs/msg/DeviceInfo.msg */
00002 #ifndef INDUSTRIAL_MSGS_MESSAGE_DEVICEINFO_H
00003 #define INDUSTRIAL_MSGS_MESSAGE_DEVICEINFO_H
00004 #include <string>
00005 #include <vector>
00006 #include <map>
00007 #include <ostream>
00008 #include "ros/serialization.h"
00009 #include "ros/builtin_message_traits.h"
00010 #include "ros/message_operations.h"
00011 #include "ros/time.h"
00012 
00013 #include "ros/macros.h"
00014 
00015 #include "ros/assert.h"
00016 
00017 
00018 namespace industrial_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct DeviceInfo_ {
00022   typedef DeviceInfo_<ContainerAllocator> Type;
00023 
00024   DeviceInfo_()
00025   : model()
00026   , serial_number()
00027   , hw_version()
00028   , sw_version()
00029   , address()
00030   {
00031   }
00032 
00033   DeviceInfo_(const ContainerAllocator& _alloc)
00034   : model(_alloc)
00035   , serial_number(_alloc)
00036   , hw_version(_alloc)
00037   , sw_version(_alloc)
00038   , address(_alloc)
00039   {
00040   }
00041 
00042   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _model_type;
00043   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  model;
00044 
00045   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _serial_number_type;
00046   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  serial_number;
00047 
00048   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _hw_version_type;
00049   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  hw_version;
00050 
00051   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _sw_version_type;
00052   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  sw_version;
00053 
00054   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _address_type;
00055   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  address;
00056 
00057 
00058   typedef boost::shared_ptr< ::industrial_msgs::DeviceInfo_<ContainerAllocator> > Ptr;
00059   typedef boost::shared_ptr< ::industrial_msgs::DeviceInfo_<ContainerAllocator>  const> ConstPtr;
00060   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00061 }; // struct DeviceInfo
00062 typedef  ::industrial_msgs::DeviceInfo_<std::allocator<void> > DeviceInfo;
00063 
00064 typedef boost::shared_ptr< ::industrial_msgs::DeviceInfo> DeviceInfoPtr;
00065 typedef boost::shared_ptr< ::industrial_msgs::DeviceInfo const> DeviceInfoConstPtr;
00066 
00067 
00068 template<typename ContainerAllocator>
00069 std::ostream& operator<<(std::ostream& s, const  ::industrial_msgs::DeviceInfo_<ContainerAllocator> & v)
00070 {
00071   ros::message_operations::Printer< ::industrial_msgs::DeviceInfo_<ContainerAllocator> >::stream(s, "", v);
00072   return s;}
00073 
00074 } // namespace industrial_msgs
00075 
00076 namespace ros
00077 {
00078 namespace message_traits
00079 {
00080 template<class ContainerAllocator> struct IsMessage< ::industrial_msgs::DeviceInfo_<ContainerAllocator> > : public TrueType {};
00081 template<class ContainerAllocator> struct IsMessage< ::industrial_msgs::DeviceInfo_<ContainerAllocator>  const> : public TrueType {};
00082 template<class ContainerAllocator>
00083 struct MD5Sum< ::industrial_msgs::DeviceInfo_<ContainerAllocator> > {
00084   static const char* value() 
00085   {
00086     return "373ed7fa0fac92d443be9cd5198e80f0";
00087   }
00088 
00089   static const char* value(const  ::industrial_msgs::DeviceInfo_<ContainerAllocator> &) { return value(); } 
00090   static const uint64_t static_value1 = 0x373ed7fa0fac92d4ULL;
00091   static const uint64_t static_value2 = 0x43be9cd5198e80f0ULL;
00092 };
00093 
00094 template<class ContainerAllocator>
00095 struct DataType< ::industrial_msgs::DeviceInfo_<ContainerAllocator> > {
00096   static const char* value() 
00097   {
00098     return "industrial_msgs/DeviceInfo";
00099   }
00100 
00101   static const char* value(const  ::industrial_msgs::DeviceInfo_<ContainerAllocator> &) { return value(); } 
00102 };
00103 
00104 template<class ContainerAllocator>
00105 struct Definition< ::industrial_msgs::DeviceInfo_<ContainerAllocator> > {
00106   static const char* value() 
00107   {
00108     return "# Device info captures device agnostic information about a piece of hardware.\n\
00109 # This message is meant as a generic as possible.  Items that don't apply should\n\
00110 # be left blank.  This message is not meant to replace diagnostic messages, but\n\
00111 # rather provide a standard service message that can be used to populate standard\n\
00112 # components (like a GUI for example)\n\
00113 \n\
00114 string model\n\
00115 string serial_number\n\
00116 string hw_version\n\
00117 string sw_version\n\
00118 string address\n\
00119 \n\
00120 ";
00121   }
00122 
00123   static const char* value(const  ::industrial_msgs::DeviceInfo_<ContainerAllocator> &) { return value(); } 
00124 };
00125 
00126 } // namespace message_traits
00127 } // namespace ros
00128 
00129 namespace ros
00130 {
00131 namespace serialization
00132 {
00133 
00134 template<class ContainerAllocator> struct Serializer< ::industrial_msgs::DeviceInfo_<ContainerAllocator> >
00135 {
00136   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00137   {
00138     stream.next(m.model);
00139     stream.next(m.serial_number);
00140     stream.next(m.hw_version);
00141     stream.next(m.sw_version);
00142     stream.next(m.address);
00143   }
00144 
00145   ROS_DECLARE_ALLINONE_SERIALIZER;
00146 }; // struct DeviceInfo_
00147 } // namespace serialization
00148 } // namespace ros
00149 
00150 namespace ros
00151 {
00152 namespace message_operations
00153 {
00154 
00155 template<class ContainerAllocator>
00156 struct Printer< ::industrial_msgs::DeviceInfo_<ContainerAllocator> >
00157 {
00158   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::industrial_msgs::DeviceInfo_<ContainerAllocator> & v) 
00159   {
00160     s << indent << "model: ";
00161     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.model);
00162     s << indent << "serial_number: ";
00163     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.serial_number);
00164     s << indent << "hw_version: ";
00165     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.hw_version);
00166     s << indent << "sw_version: ";
00167     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.sw_version);
00168     s << indent << "address: ";
00169     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.address);
00170   }
00171 };
00172 
00173 
00174 } // namespace message_operations
00175 } // namespace ros
00176 
00177 #endif // INDUSTRIAL_MSGS_MESSAGE_DEVICEINFO_H
00178 


industrial_msgs
Author(s): Shaun M. Edwards
autogenerated on Mon Oct 6 2014 00:53:40