$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-multimaster_experimental/doc_stacks/2013-03-01_16-04-40.976361/multimaster_experimental/app_manager/msg/AppStatus.msg */ 00002 #ifndef APP_MANAGER_MESSAGE_APPSTATUS_H 00003 #define APP_MANAGER_MESSAGE_APPSTATUS_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 app_manager 00019 { 00020 template <class ContainerAllocator> 00021 struct AppStatus_ { 00022 typedef AppStatus_<ContainerAllocator> Type; 00023 00024 AppStatus_() 00025 : type(0) 00026 , status() 00027 { 00028 } 00029 00030 AppStatus_(const ContainerAllocator& _alloc) 00031 : type(0) 00032 , status(_alloc) 00033 { 00034 } 00035 00036 typedef int32_t _type_type; 00037 int32_t type; 00038 00039 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _status_type; 00040 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > status; 00041 00042 enum { INFO = 0 }; 00043 enum { WARN = 1 }; 00044 enum { ERROR = 2 }; 00045 00046 private: 00047 static const char* __s_getDataType_() { return "app_manager/AppStatus"; } 00048 public: 00049 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00050 00051 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00052 00053 private: 00054 static const char* __s_getMD5Sum_() { return "4f59466d6810d5e9557e6b8ff75c9437"; } 00055 public: 00056 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00057 00058 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00059 00060 private: 00061 static const char* __s_getMessageDefinition_() { return "int32 INFO=0\n\ 00062 int32 WARN=1\n\ 00063 int32 ERROR=2\n\ 00064 # Status type. One of INFO, WARN, ERROR.\n\ 00065 int32 type\n\ 00066 # Status message.\n\ 00067 string status\n\ 00068 \n\ 00069 "; } 00070 public: 00071 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00072 00073 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00074 00075 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00076 { 00077 ros::serialization::OStream stream(write_ptr, 1000000000); 00078 ros::serialization::serialize(stream, type); 00079 ros::serialization::serialize(stream, status); 00080 return stream.getData(); 00081 } 00082 00083 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00084 { 00085 ros::serialization::IStream stream(read_ptr, 1000000000); 00086 ros::serialization::deserialize(stream, type); 00087 ros::serialization::deserialize(stream, status); 00088 return stream.getData(); 00089 } 00090 00091 ROS_DEPRECATED virtual uint32_t serializationLength() const 00092 { 00093 uint32_t size = 0; 00094 size += ros::serialization::serializationLength(type); 00095 size += ros::serialization::serializationLength(status); 00096 return size; 00097 } 00098 00099 typedef boost::shared_ptr< ::app_manager::AppStatus_<ContainerAllocator> > Ptr; 00100 typedef boost::shared_ptr< ::app_manager::AppStatus_<ContainerAllocator> const> ConstPtr; 00101 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00102 }; // struct AppStatus 00103 typedef ::app_manager::AppStatus_<std::allocator<void> > AppStatus; 00104 00105 typedef boost::shared_ptr< ::app_manager::AppStatus> AppStatusPtr; 00106 typedef boost::shared_ptr< ::app_manager::AppStatus const> AppStatusConstPtr; 00107 00108 00109 template<typename ContainerAllocator> 00110 std::ostream& operator<<(std::ostream& s, const ::app_manager::AppStatus_<ContainerAllocator> & v) 00111 { 00112 ros::message_operations::Printer< ::app_manager::AppStatus_<ContainerAllocator> >::stream(s, "", v); 00113 return s;} 00114 00115 } // namespace app_manager 00116 00117 namespace ros 00118 { 00119 namespace message_traits 00120 { 00121 template<class ContainerAllocator> struct IsMessage< ::app_manager::AppStatus_<ContainerAllocator> > : public TrueType {}; 00122 template<class ContainerAllocator> struct IsMessage< ::app_manager::AppStatus_<ContainerAllocator> const> : public TrueType {}; 00123 template<class ContainerAllocator> 00124 struct MD5Sum< ::app_manager::AppStatus_<ContainerAllocator> > { 00125 static const char* value() 00126 { 00127 return "4f59466d6810d5e9557e6b8ff75c9437"; 00128 } 00129 00130 static const char* value(const ::app_manager::AppStatus_<ContainerAllocator> &) { return value(); } 00131 static const uint64_t static_value1 = 0x4f59466d6810d5e9ULL; 00132 static const uint64_t static_value2 = 0x557e6b8ff75c9437ULL; 00133 }; 00134 00135 template<class ContainerAllocator> 00136 struct DataType< ::app_manager::AppStatus_<ContainerAllocator> > { 00137 static const char* value() 00138 { 00139 return "app_manager/AppStatus"; 00140 } 00141 00142 static const char* value(const ::app_manager::AppStatus_<ContainerAllocator> &) { return value(); } 00143 }; 00144 00145 template<class ContainerAllocator> 00146 struct Definition< ::app_manager::AppStatus_<ContainerAllocator> > { 00147 static const char* value() 00148 { 00149 return "int32 INFO=0\n\ 00150 int32 WARN=1\n\ 00151 int32 ERROR=2\n\ 00152 # Status type. One of INFO, WARN, ERROR.\n\ 00153 int32 type\n\ 00154 # Status message.\n\ 00155 string status\n\ 00156 \n\ 00157 "; 00158 } 00159 00160 static const char* value(const ::app_manager::AppStatus_<ContainerAllocator> &) { return value(); } 00161 }; 00162 00163 } // namespace message_traits 00164 } // namespace ros 00165 00166 namespace ros 00167 { 00168 namespace serialization 00169 { 00170 00171 template<class ContainerAllocator> struct Serializer< ::app_manager::AppStatus_<ContainerAllocator> > 00172 { 00173 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00174 { 00175 stream.next(m.type); 00176 stream.next(m.status); 00177 } 00178 00179 ROS_DECLARE_ALLINONE_SERIALIZER; 00180 }; // struct AppStatus_ 00181 } // namespace serialization 00182 } // namespace ros 00183 00184 namespace ros 00185 { 00186 namespace message_operations 00187 { 00188 00189 template<class ContainerAllocator> 00190 struct Printer< ::app_manager::AppStatus_<ContainerAllocator> > 00191 { 00192 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::app_manager::AppStatus_<ContainerAllocator> & v) 00193 { 00194 s << indent << "type: "; 00195 Printer<int32_t>::stream(s, indent + " ", v.type); 00196 s << indent << "status: "; 00197 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.status); 00198 } 00199 }; 00200 00201 00202 } // namespace message_operations 00203 } // namespace ros 00204 00205 #endif // APP_MANAGER_MESSAGE_APPSTATUS_H 00206