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