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