00001
00002 #ifndef LAUNCHMAN_MESSAGE_APPSTATUS_H
00003 #define LAUNCHMAN_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 #include "launchman/Application.h"
00014
00015 namespace launchman
00016 {
00017 template <class ContainerAllocator>
00018 struct AppStatus_ : public ros::Message
00019 {
00020 typedef AppStatus_<ContainerAllocator> Type;
00021
00022 AppStatus_()
00023 : active()
00024 {
00025 }
00026
00027 AppStatus_(const ContainerAllocator& _alloc)
00028 : active(_alloc)
00029 {
00030 }
00031
00032 typedef std::vector< ::launchman::Application_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::launchman::Application_<ContainerAllocator> >::other > _active_type;
00033 std::vector< ::launchman::Application_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::launchman::Application_<ContainerAllocator> >::other > active;
00034
00035
00036 ROS_DEPRECATED uint32_t get_active_size() const { return (uint32_t)active.size(); }
00037 ROS_DEPRECATED void set_active_size(uint32_t size) { active.resize((size_t)size); }
00038 ROS_DEPRECATED void get_active_vec(std::vector< ::launchman::Application_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::launchman::Application_<ContainerAllocator> >::other > & vec) const { vec = this->active; }
00039 ROS_DEPRECATED void set_active_vec(const std::vector< ::launchman::Application_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::launchman::Application_<ContainerAllocator> >::other > & vec) { this->active = vec; }
00040 private:
00041 static const char* __s_getDataType_() { return "launchman/AppStatus"; }
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 "8a2d696a9a11a9fb77b5416e878dcad0"; }
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 "Application[] active\n\
00056 \n\
00057 ================================================================================\n\
00058 MSG: launchman/Application\n\
00059 string taskid\n\
00060 string name\n\
00061 string status\n\
00062 string icon\n\
00063 string provides\n\
00064 string depends\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, active);
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 ros::serialization::deserialize(stream, active);
00083 return stream.getData();
00084 }
00085
00086 ROS_DEPRECATED virtual uint32_t serializationLength() const
00087 {
00088 uint32_t size = 0;
00089 size += ros::serialization::serializationLength(active);
00090 return size;
00091 }
00092
00093 typedef boost::shared_ptr< ::launchman::AppStatus_<ContainerAllocator> > Ptr;
00094 typedef boost::shared_ptr< ::launchman::AppStatus_<ContainerAllocator> const> ConstPtr;
00095 };
00096 typedef ::launchman::AppStatus_<std::allocator<void> > AppStatus;
00097
00098 typedef boost::shared_ptr< ::launchman::AppStatus> AppStatusPtr;
00099 typedef boost::shared_ptr< ::launchman::AppStatus const> AppStatusConstPtr;
00100
00101
00102 template<typename ContainerAllocator>
00103 std::ostream& operator<<(std::ostream& s, const ::launchman::AppStatus_<ContainerAllocator> & v)
00104 {
00105 ros::message_operations::Printer< ::launchman::AppStatus_<ContainerAllocator> >::stream(s, "", v);
00106 return s;}
00107
00108 }
00109
00110 namespace ros
00111 {
00112 namespace message_traits
00113 {
00114 template<class ContainerAllocator>
00115 struct MD5Sum< ::launchman::AppStatus_<ContainerAllocator> > {
00116 static const char* value()
00117 {
00118 return "8a2d696a9a11a9fb77b5416e878dcad0";
00119 }
00120
00121 static const char* value(const ::launchman::AppStatus_<ContainerAllocator> &) { return value(); }
00122 static const uint64_t static_value1 = 0x8a2d696a9a11a9fbULL;
00123 static const uint64_t static_value2 = 0x77b5416e878dcad0ULL;
00124 };
00125
00126 template<class ContainerAllocator>
00127 struct DataType< ::launchman::AppStatus_<ContainerAllocator> > {
00128 static const char* value()
00129 {
00130 return "launchman/AppStatus";
00131 }
00132
00133 static const char* value(const ::launchman::AppStatus_<ContainerAllocator> &) { return value(); }
00134 };
00135
00136 template<class ContainerAllocator>
00137 struct Definition< ::launchman::AppStatus_<ContainerAllocator> > {
00138 static const char* value()
00139 {
00140 return "Application[] active\n\
00141 \n\
00142 ================================================================================\n\
00143 MSG: launchman/Application\n\
00144 string taskid\n\
00145 string name\n\
00146 string status\n\
00147 string icon\n\
00148 string provides\n\
00149 string depends\n\
00150 \n\
00151 ";
00152 }
00153
00154 static const char* value(const ::launchman::AppStatus_<ContainerAllocator> &) { return value(); }
00155 };
00156
00157 }
00158 }
00159
00160 namespace ros
00161 {
00162 namespace serialization
00163 {
00164
00165 template<class ContainerAllocator> struct Serializer< ::launchman::AppStatus_<ContainerAllocator> >
00166 {
00167 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00168 {
00169 stream.next(m.active);
00170 }
00171
00172 ROS_DECLARE_ALLINONE_SERIALIZER;
00173 };
00174 }
00175 }
00176
00177 namespace ros
00178 {
00179 namespace message_operations
00180 {
00181
00182 template<class ContainerAllocator>
00183 struct Printer< ::launchman::AppStatus_<ContainerAllocator> >
00184 {
00185 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::launchman::AppStatus_<ContainerAllocator> & v)
00186 {
00187 s << indent << "active[]" << std::endl;
00188 for (size_t i = 0; i < v.active.size(); ++i)
00189 {
00190 s << indent << " active[" << i << "]: ";
00191 s << std::endl;
00192 s << indent;
00193 Printer< ::launchman::Application_<ContainerAllocator> >::stream(s, indent + " ", v.active[i]);
00194 }
00195 }
00196 };
00197
00198
00199 }
00200 }
00201
00202 #endif // LAUNCHMAN_MESSAGE_APPSTATUS_H
00203