00001
00002 #ifndef APP_MANAGER_MESSAGE_STATUSCODES_H
00003 #define APP_MANAGER_MESSAGE_STATUSCODES_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 StatusCodes_ : public ros::Message
00018 {
00019 typedef StatusCodes_<ContainerAllocator> Type;
00020
00021 StatusCodes_()
00022 {
00023 }
00024
00025 StatusCodes_(const ContainerAllocator& _alloc)
00026 {
00027 }
00028
00029 enum { SUCCESS = 0 };
00030 enum { BAD_REQUEST = 400 };
00031 enum { NOT_FOUND = 404 };
00032 enum { NOT_RUNNING = 430 };
00033 enum { INTERNAL_ERROR = 500 };
00034 enum { APP_INVALID = 510 };
00035 enum { MULTIAPP_NOT_SUPPORTED = 511 };
00036
00037 private:
00038 static const char* __s_getDataType_() { return "app_manager/StatusCodes"; }
00039 public:
00040 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00041
00042 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00043
00044 private:
00045 static const char* __s_getMD5Sum_() { return "5f286aed2b2ab4b227e7b7185bae624d"; }
00046 public:
00047 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00048
00049 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00050
00051 private:
00052 static const char* __s_getMessageDefinition_() { return "# Common error codes used with App Manager.\n\
00053 int32 SUCCESS = 0\n\
00054 # Request was invalid.\n\
00055 int32 BAD_REQUEST = 400\n\
00056 # App is not installed.\n\
00057 int32 NOT_FOUND = 404\n\
00058 # App is not running.\n\
00059 int32 NOT_RUNNING = 430\n\
00060 # Unknown internal error on the server.\n\
00061 int32 INTERNAL_ERROR = 500\n\
00062 # App is installed but failed validation.\n\
00063 int32 APP_INVALID = 510\n\
00064 # App manager does not support launching multiple apps simultaneously. Running app must first be stopped.\n\
00065 int32 MULTIAPP_NOT_SUPPORTED = 511\n\
00066 \n\
00067 "; }
00068 public:
00069 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00070
00071 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00072
00073 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00074 {
00075 ros::serialization::OStream stream(write_ptr, 1000000000);
00076 return stream.getData();
00077 }
00078
00079 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00080 {
00081 ros::serialization::IStream stream(read_ptr, 1000000000);
00082 return stream.getData();
00083 }
00084
00085 ROS_DEPRECATED virtual uint32_t serializationLength() const
00086 {
00087 uint32_t size = 0;
00088 return size;
00089 }
00090
00091 typedef boost::shared_ptr< ::app_manager::StatusCodes_<ContainerAllocator> > Ptr;
00092 typedef boost::shared_ptr< ::app_manager::StatusCodes_<ContainerAllocator> const> ConstPtr;
00093 };
00094 typedef ::app_manager::StatusCodes_<std::allocator<void> > StatusCodes;
00095
00096 typedef boost::shared_ptr< ::app_manager::StatusCodes> StatusCodesPtr;
00097 typedef boost::shared_ptr< ::app_manager::StatusCodes const> StatusCodesConstPtr;
00098
00099
00100 template<typename ContainerAllocator>
00101 std::ostream& operator<<(std::ostream& s, const ::app_manager::StatusCodes_<ContainerAllocator> & v)
00102 {
00103 ros::message_operations::Printer< ::app_manager::StatusCodes_<ContainerAllocator> >::stream(s, "", v);
00104 return s;}
00105
00106 }
00107
00108 namespace ros
00109 {
00110 namespace message_traits
00111 {
00112 template<class ContainerAllocator>
00113 struct MD5Sum< ::app_manager::StatusCodes_<ContainerAllocator> > {
00114 static const char* value()
00115 {
00116 return "5f286aed2b2ab4b227e7b7185bae624d";
00117 }
00118
00119 static const char* value(const ::app_manager::StatusCodes_<ContainerAllocator> &) { return value(); }
00120 static const uint64_t static_value1 = 0x5f286aed2b2ab4b2ULL;
00121 static const uint64_t static_value2 = 0x27e7b7185bae624dULL;
00122 };
00123
00124 template<class ContainerAllocator>
00125 struct DataType< ::app_manager::StatusCodes_<ContainerAllocator> > {
00126 static const char* value()
00127 {
00128 return "app_manager/StatusCodes";
00129 }
00130
00131 static const char* value(const ::app_manager::StatusCodes_<ContainerAllocator> &) { return value(); }
00132 };
00133
00134 template<class ContainerAllocator>
00135 struct Definition< ::app_manager::StatusCodes_<ContainerAllocator> > {
00136 static const char* value()
00137 {
00138 return "# Common error codes used with App Manager.\n\
00139 int32 SUCCESS = 0\n\
00140 # Request was invalid.\n\
00141 int32 BAD_REQUEST = 400\n\
00142 # App is not installed.\n\
00143 int32 NOT_FOUND = 404\n\
00144 # App is not running.\n\
00145 int32 NOT_RUNNING = 430\n\
00146 # Unknown internal error on the server.\n\
00147 int32 INTERNAL_ERROR = 500\n\
00148 # App is installed but failed validation.\n\
00149 int32 APP_INVALID = 510\n\
00150 # App manager does not support launching multiple apps simultaneously. Running app must first be stopped.\n\
00151 int32 MULTIAPP_NOT_SUPPORTED = 511\n\
00152 \n\
00153 ";
00154 }
00155
00156 static const char* value(const ::app_manager::StatusCodes_<ContainerAllocator> &) { return value(); }
00157 };
00158
00159 template<class ContainerAllocator> struct IsFixedSize< ::app_manager::StatusCodes_<ContainerAllocator> > : public TrueType {};
00160 }
00161 }
00162
00163 namespace ros
00164 {
00165 namespace serialization
00166 {
00167
00168 template<class ContainerAllocator> struct Serializer< ::app_manager::StatusCodes_<ContainerAllocator> >
00169 {
00170 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00171 {
00172 }
00173
00174 ROS_DECLARE_ALLINONE_SERIALIZER;
00175 };
00176 }
00177 }
00178
00179 namespace ros
00180 {
00181 namespace message_operations
00182 {
00183
00184 template<class ContainerAllocator>
00185 struct Printer< ::app_manager::StatusCodes_<ContainerAllocator> >
00186 {
00187 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::app_manager::StatusCodes_<ContainerAllocator> & v)
00188 {
00189 }
00190 };
00191
00192
00193 }
00194 }
00195
00196 #endif // APP_MANAGER_MESSAGE_STATUSCODES_H
00197