$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pr2_dremel/doc_stacks/2013-03-03_11-45-44.341273/pr2_dremel/remote_power_manager/msg/RemotePowerPortStatus.msg */ 00002 #ifndef REMOTE_POWER_MANAGER_MESSAGE_REMOTEPOWERPORTSTATUS_H 00003 #define REMOTE_POWER_MANAGER_MESSAGE_REMOTEPOWERPORTSTATUS_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 remote_power_manager 00019 { 00020 template <class ContainerAllocator> 00021 struct RemotePowerPortStatus_ { 00022 typedef RemotePowerPortStatus_<ContainerAllocator> Type; 00023 00024 RemotePowerPortStatus_() 00025 : port_status() 00026 { 00027 } 00028 00029 RemotePowerPortStatus_(const ContainerAllocator& _alloc) 00030 : port_status(_alloc) 00031 { 00032 } 00033 00034 typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > _port_status_type; 00035 std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > port_status; 00036 00037 00038 ROS_DEPRECATED uint32_t get_port_status_size() const { return (uint32_t)port_status.size(); } 00039 ROS_DEPRECATED void set_port_status_size(uint32_t size) { port_status.resize((size_t)size); } 00040 ROS_DEPRECATED void get_port_status_vec(std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > & vec) const { vec = this->port_status; } 00041 ROS_DEPRECATED void set_port_status_vec(const std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > & vec) { this->port_status = vec; } 00042 private: 00043 static const char* __s_getDataType_() { return "remote_power_manager/RemotePowerPortStatus"; } 00044 public: 00045 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00046 00047 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00048 00049 private: 00050 static const char* __s_getMD5Sum_() { return "5a83ed221c3d07874c5b8530cf089621"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00053 00054 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00055 00056 private: 00057 static const char* __s_getMessageDefinition_() { return "bool[] port_status\n\ 00058 \n\ 00059 "; } 00060 public: 00061 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00062 00063 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00064 00065 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00066 { 00067 ros::serialization::OStream stream(write_ptr, 1000000000); 00068 ros::serialization::serialize(stream, port_status); 00069 return stream.getData(); 00070 } 00071 00072 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00073 { 00074 ros::serialization::IStream stream(read_ptr, 1000000000); 00075 ros::serialization::deserialize(stream, port_status); 00076 return stream.getData(); 00077 } 00078 00079 ROS_DEPRECATED virtual uint32_t serializationLength() const 00080 { 00081 uint32_t size = 0; 00082 size += ros::serialization::serializationLength(port_status); 00083 return size; 00084 } 00085 00086 typedef boost::shared_ptr< ::remote_power_manager::RemotePowerPortStatus_<ContainerAllocator> > Ptr; 00087 typedef boost::shared_ptr< ::remote_power_manager::RemotePowerPortStatus_<ContainerAllocator> const> ConstPtr; 00088 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00089 }; // struct RemotePowerPortStatus 00090 typedef ::remote_power_manager::RemotePowerPortStatus_<std::allocator<void> > RemotePowerPortStatus; 00091 00092 typedef boost::shared_ptr< ::remote_power_manager::RemotePowerPortStatus> RemotePowerPortStatusPtr; 00093 typedef boost::shared_ptr< ::remote_power_manager::RemotePowerPortStatus const> RemotePowerPortStatusConstPtr; 00094 00095 00096 template<typename ContainerAllocator> 00097 std::ostream& operator<<(std::ostream& s, const ::remote_power_manager::RemotePowerPortStatus_<ContainerAllocator> & v) 00098 { 00099 ros::message_operations::Printer< ::remote_power_manager::RemotePowerPortStatus_<ContainerAllocator> >::stream(s, "", v); 00100 return s;} 00101 00102 } // namespace remote_power_manager 00103 00104 namespace ros 00105 { 00106 namespace message_traits 00107 { 00108 template<class ContainerAllocator> struct IsMessage< ::remote_power_manager::RemotePowerPortStatus_<ContainerAllocator> > : public TrueType {}; 00109 template<class ContainerAllocator> struct IsMessage< ::remote_power_manager::RemotePowerPortStatus_<ContainerAllocator> const> : public TrueType {}; 00110 template<class ContainerAllocator> 00111 struct MD5Sum< ::remote_power_manager::RemotePowerPortStatus_<ContainerAllocator> > { 00112 static const char* value() 00113 { 00114 return "5a83ed221c3d07874c5b8530cf089621"; 00115 } 00116 00117 static const char* value(const ::remote_power_manager::RemotePowerPortStatus_<ContainerAllocator> &) { return value(); } 00118 static const uint64_t static_value1 = 0x5a83ed221c3d0787ULL; 00119 static const uint64_t static_value2 = 0x4c5b8530cf089621ULL; 00120 }; 00121 00122 template<class ContainerAllocator> 00123 struct DataType< ::remote_power_manager::RemotePowerPortStatus_<ContainerAllocator> > { 00124 static const char* value() 00125 { 00126 return "remote_power_manager/RemotePowerPortStatus"; 00127 } 00128 00129 static const char* value(const ::remote_power_manager::RemotePowerPortStatus_<ContainerAllocator> &) { return value(); } 00130 }; 00131 00132 template<class ContainerAllocator> 00133 struct Definition< ::remote_power_manager::RemotePowerPortStatus_<ContainerAllocator> > { 00134 static const char* value() 00135 { 00136 return "bool[] port_status\n\ 00137 \n\ 00138 "; 00139 } 00140 00141 static const char* value(const ::remote_power_manager::RemotePowerPortStatus_<ContainerAllocator> &) { return value(); } 00142 }; 00143 00144 } // namespace message_traits 00145 } // namespace ros 00146 00147 namespace ros 00148 { 00149 namespace serialization 00150 { 00151 00152 template<class ContainerAllocator> struct Serializer< ::remote_power_manager::RemotePowerPortStatus_<ContainerAllocator> > 00153 { 00154 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00155 { 00156 stream.next(m.port_status); 00157 } 00158 00159 ROS_DECLARE_ALLINONE_SERIALIZER; 00160 }; // struct RemotePowerPortStatus_ 00161 } // namespace serialization 00162 } // namespace ros 00163 00164 namespace ros 00165 { 00166 namespace message_operations 00167 { 00168 00169 template<class ContainerAllocator> 00170 struct Printer< ::remote_power_manager::RemotePowerPortStatus_<ContainerAllocator> > 00171 { 00172 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::remote_power_manager::RemotePowerPortStatus_<ContainerAllocator> & v) 00173 { 00174 s << indent << "port_status[]" << std::endl; 00175 for (size_t i = 0; i < v.port_status.size(); ++i) 00176 { 00177 s << indent << " port_status[" << i << "]: "; 00178 Printer<uint8_t>::stream(s, indent + " ", v.port_status[i]); 00179 } 00180 } 00181 }; 00182 00183 00184 } // namespace message_operations 00185 } // namespace ros 00186 00187 #endif // REMOTE_POWER_MANAGER_MESSAGE_REMOTEPOWERPORTSTATUS_H 00188