Channel.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-tug-ist-ros-pkg/doc_stacks/2014-01-06_11-49-15.944283/tug_ist_model_based_diagnosis/tug_ist_diagnosis_msgs/msg/Channel.msg */
00002 #ifndef TUG_IST_DIAGNOSIS_MSGS_MESSAGE_CHANNEL_H
00003 #define TUG_IST_DIAGNOSIS_MSGS_MESSAGE_CHANNEL_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 tug_ist_diagnosis_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct Channel_ {
00022   typedef Channel_<ContainerAllocator> Type;
00023 
00024   Channel_()
00025   : id(0)
00026   , dev_connected()
00027   , status(0)
00028   , current(0.0)
00029   , voltage(0.0)
00030   {
00031   }
00032 
00033   Channel_(const ContainerAllocator& _alloc)
00034   : id(0)
00035   , dev_connected(_alloc)
00036   , status(0)
00037   , current(0.0)
00038   , voltage(0.0)
00039   {
00040   }
00041 
00042   typedef int32_t _id_type;
00043   int32_t id;
00044 
00045   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _dev_connected_type;
00046   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  dev_connected;
00047 
00048   typedef int32_t _status_type;
00049   int32_t status;
00050 
00051   typedef float _current_type;
00052   float current;
00053 
00054   typedef float _voltage_type;
00055   float voltage;
00056 
00057 
00058   typedef boost::shared_ptr< ::tug_ist_diagnosis_msgs::Channel_<ContainerAllocator> > Ptr;
00059   typedef boost::shared_ptr< ::tug_ist_diagnosis_msgs::Channel_<ContainerAllocator>  const> ConstPtr;
00060   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00061 }; // struct Channel
00062 typedef  ::tug_ist_diagnosis_msgs::Channel_<std::allocator<void> > Channel;
00063 
00064 typedef boost::shared_ptr< ::tug_ist_diagnosis_msgs::Channel> ChannelPtr;
00065 typedef boost::shared_ptr< ::tug_ist_diagnosis_msgs::Channel const> ChannelConstPtr;
00066 
00067 
00068 template<typename ContainerAllocator>
00069 std::ostream& operator<<(std::ostream& s, const  ::tug_ist_diagnosis_msgs::Channel_<ContainerAllocator> & v)
00070 {
00071   ros::message_operations::Printer< ::tug_ist_diagnosis_msgs::Channel_<ContainerAllocator> >::stream(s, "", v);
00072   return s;}
00073 
00074 } // namespace tug_ist_diagnosis_msgs
00075 
00076 namespace ros
00077 {
00078 namespace message_traits
00079 {
00080 template<class ContainerAllocator> struct IsMessage< ::tug_ist_diagnosis_msgs::Channel_<ContainerAllocator> > : public TrueType {};
00081 template<class ContainerAllocator> struct IsMessage< ::tug_ist_diagnosis_msgs::Channel_<ContainerAllocator>  const> : public TrueType {};
00082 template<class ContainerAllocator>
00083 struct MD5Sum< ::tug_ist_diagnosis_msgs::Channel_<ContainerAllocator> > {
00084   static const char* value() 
00085   {
00086     return "a892da4b04bb1ee7a9c52668e370ec76";
00087   }
00088 
00089   static const char* value(const  ::tug_ist_diagnosis_msgs::Channel_<ContainerAllocator> &) { return value(); } 
00090   static const uint64_t static_value1 = 0xa892da4b04bb1ee7ULL;
00091   static const uint64_t static_value2 = 0xa9c52668e370ec76ULL;
00092 };
00093 
00094 template<class ContainerAllocator>
00095 struct DataType< ::tug_ist_diagnosis_msgs::Channel_<ContainerAllocator> > {
00096   static const char* value() 
00097   {
00098     return "tug_ist_diagnosis_msgs/Channel";
00099   }
00100 
00101   static const char* value(const  ::tug_ist_diagnosis_msgs::Channel_<ContainerAllocator> &) { return value(); } 
00102 };
00103 
00104 template<class ContainerAllocator>
00105 struct Definition< ::tug_ist_diagnosis_msgs::Channel_<ContainerAllocator> > {
00106   static const char* value() 
00107   {
00108     return "int32 id\n\
00109 string dev_connected\n\
00110 int32 status\n\
00111 float32 current\n\
00112 float32 voltage\n\
00113 \n\
00114 ";
00115   }
00116 
00117   static const char* value(const  ::tug_ist_diagnosis_msgs::Channel_<ContainerAllocator> &) { return value(); } 
00118 };
00119 
00120 } // namespace message_traits
00121 } // namespace ros
00122 
00123 namespace ros
00124 {
00125 namespace serialization
00126 {
00127 
00128 template<class ContainerAllocator> struct Serializer< ::tug_ist_diagnosis_msgs::Channel_<ContainerAllocator> >
00129 {
00130   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00131   {
00132     stream.next(m.id);
00133     stream.next(m.dev_connected);
00134     stream.next(m.status);
00135     stream.next(m.current);
00136     stream.next(m.voltage);
00137   }
00138 
00139   ROS_DECLARE_ALLINONE_SERIALIZER;
00140 }; // struct Channel_
00141 } // namespace serialization
00142 } // namespace ros
00143 
00144 namespace ros
00145 {
00146 namespace message_operations
00147 {
00148 
00149 template<class ContainerAllocator>
00150 struct Printer< ::tug_ist_diagnosis_msgs::Channel_<ContainerAllocator> >
00151 {
00152   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::tug_ist_diagnosis_msgs::Channel_<ContainerAllocator> & v) 
00153   {
00154     s << indent << "id: ";
00155     Printer<int32_t>::stream(s, indent + "  ", v.id);
00156     s << indent << "dev_connected: ";
00157     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.dev_connected);
00158     s << indent << "status: ";
00159     Printer<int32_t>::stream(s, indent + "  ", v.status);
00160     s << indent << "current: ";
00161     Printer<float>::stream(s, indent + "  ", v.current);
00162     s << indent << "voltage: ";
00163     Printer<float>::stream(s, indent + "  ", v.voltage);
00164   }
00165 };
00166 
00167 
00168 } // namespace message_operations
00169 } // namespace ros
00170 
00171 #endif // TUG_IST_DIAGNOSIS_MSGS_MESSAGE_CHANNEL_H
00172 


tug_ist_diagnosis_msgs
Author(s): Safdar Zaman, Gerald Steinbauer
autogenerated on Mon Jan 6 2014 11:51:02