00001
00002 #ifndef TURTLEBOT_APP_MANAGER_MESSAGE_EXCHANGEAPP_H
00003 #define TURTLEBOT_APP_MANAGER_MESSAGE_EXCHANGEAPP_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 #include "turtlebot_app_manager/Icon.h"
00018
00019 namespace turtlebot_app_manager
00020 {
00021 template <class ContainerAllocator>
00022 struct ExchangeApp_ {
00023 typedef ExchangeApp_<ContainerAllocator> Type;
00024
00025 ExchangeApp_()
00026 : name()
00027 , display_name()
00028 , version()
00029 , latest_version()
00030 , description()
00031 , icon()
00032 , hidden(false)
00033 {
00034 }
00035
00036 ExchangeApp_(const ContainerAllocator& _alloc)
00037 : name(_alloc)
00038 , display_name(_alloc)
00039 , version(_alloc)
00040 , latest_version(_alloc)
00041 , description(_alloc)
00042 , icon(_alloc)
00043 , hidden(false)
00044 {
00045 }
00046
00047 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type;
00048 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > name;
00049
00050 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _display_name_type;
00051 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > display_name;
00052
00053 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _version_type;
00054 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > version;
00055
00056 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _latest_version_type;
00057 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > latest_version;
00058
00059 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _description_type;
00060 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > description;
00061
00062 typedef ::turtlebot_app_manager::Icon_<ContainerAllocator> _icon_type;
00063 ::turtlebot_app_manager::Icon_<ContainerAllocator> icon;
00064
00065 typedef uint8_t _hidden_type;
00066 uint8_t hidden;
00067
00068
00069 typedef boost::shared_ptr< ::turtlebot_app_manager::ExchangeApp_<ContainerAllocator> > Ptr;
00070 typedef boost::shared_ptr< ::turtlebot_app_manager::ExchangeApp_<ContainerAllocator> const> ConstPtr;
00071 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00072 };
00073 typedef ::turtlebot_app_manager::ExchangeApp_<std::allocator<void> > ExchangeApp;
00074
00075 typedef boost::shared_ptr< ::turtlebot_app_manager::ExchangeApp> ExchangeAppPtr;
00076 typedef boost::shared_ptr< ::turtlebot_app_manager::ExchangeApp const> ExchangeAppConstPtr;
00077
00078
00079 template<typename ContainerAllocator>
00080 std::ostream& operator<<(std::ostream& s, const ::turtlebot_app_manager::ExchangeApp_<ContainerAllocator> & v)
00081 {
00082 ros::message_operations::Printer< ::turtlebot_app_manager::ExchangeApp_<ContainerAllocator> >::stream(s, "", v);
00083 return s;}
00084
00085 }
00086
00087 namespace ros
00088 {
00089 namespace message_traits
00090 {
00091 template<class ContainerAllocator> struct IsMessage< ::turtlebot_app_manager::ExchangeApp_<ContainerAllocator> > : public TrueType {};
00092 template<class ContainerAllocator> struct IsMessage< ::turtlebot_app_manager::ExchangeApp_<ContainerAllocator> const> : public TrueType {};
00093 template<class ContainerAllocator>
00094 struct MD5Sum< ::turtlebot_app_manager::ExchangeApp_<ContainerAllocator> > {
00095 static const char* value()
00096 {
00097 return "ccad20aa9f390121e44c61d218038d78";
00098 }
00099
00100 static const char* value(const ::turtlebot_app_manager::ExchangeApp_<ContainerAllocator> &) { return value(); }
00101 static const uint64_t static_value1 = 0xccad20aa9f390121ULL;
00102 static const uint64_t static_value2 = 0xe44c61d218038d78ULL;
00103 };
00104
00105 template<class ContainerAllocator>
00106 struct DataType< ::turtlebot_app_manager::ExchangeApp_<ContainerAllocator> > {
00107 static const char* value()
00108 {
00109 return "turtlebot_app_manager/ExchangeApp";
00110 }
00111
00112 static const char* value(const ::turtlebot_app_manager::ExchangeApp_<ContainerAllocator> &) { return value(); }
00113 };
00114
00115 template<class ContainerAllocator>
00116 struct Definition< ::turtlebot_app_manager::ExchangeApp_<ContainerAllocator> > {
00117 static const char* value()
00118 {
00119 return "# app name\n\
00120 string name\n\
00121 # user-friendly display name of application\n\
00122 string display_name\n\
00123 # the version of the package currently installed\n\
00124 string version\n\
00125 # latest version of the package avaliable\n\
00126 string latest_version\n\
00127 # the detailed description of the app\n\
00128 string description\n\
00129 # icon for showing app\n\
00130 Icon icon\n\
00131 # hidden apps are not show - used for cases where multiple apps are in a deb\n\
00132 bool hidden\n\
00133 ================================================================================\n\
00134 MSG: turtlebot_app_manager/Icon\n\
00135 # Image data format. \"jpeg\" or \"png\"\n\
00136 string format\n\
00137 \n\
00138 # Image data.\n\
00139 uint8[] data\n\
00140 \n\
00141 ";
00142 }
00143
00144 static const char* value(const ::turtlebot_app_manager::ExchangeApp_<ContainerAllocator> &) { return value(); }
00145 };
00146
00147 }
00148 }
00149
00150 namespace ros
00151 {
00152 namespace serialization
00153 {
00154
00155 template<class ContainerAllocator> struct Serializer< ::turtlebot_app_manager::ExchangeApp_<ContainerAllocator> >
00156 {
00157 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00158 {
00159 stream.next(m.name);
00160 stream.next(m.display_name);
00161 stream.next(m.version);
00162 stream.next(m.latest_version);
00163 stream.next(m.description);
00164 stream.next(m.icon);
00165 stream.next(m.hidden);
00166 }
00167
00168 ROS_DECLARE_ALLINONE_SERIALIZER;
00169 };
00170 }
00171 }
00172
00173 namespace ros
00174 {
00175 namespace message_operations
00176 {
00177
00178 template<class ContainerAllocator>
00179 struct Printer< ::turtlebot_app_manager::ExchangeApp_<ContainerAllocator> >
00180 {
00181 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::turtlebot_app_manager::ExchangeApp_<ContainerAllocator> & v)
00182 {
00183 s << indent << "name: ";
00184 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name);
00185 s << indent << "display_name: ";
00186 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.display_name);
00187 s << indent << "version: ";
00188 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.version);
00189 s << indent << "latest_version: ";
00190 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.latest_version);
00191 s << indent << "description: ";
00192 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.description);
00193 s << indent << "icon: ";
00194 s << std::endl;
00195 Printer< ::turtlebot_app_manager::Icon_<ContainerAllocator> >::stream(s, indent + " ", v.icon);
00196 s << indent << "hidden: ";
00197 Printer<uint8_t>::stream(s, indent + " ", v.hidden);
00198 }
00199 };
00200
00201
00202 }
00203 }
00204
00205 #endif // TURTLEBOT_APP_MANAGER_MESSAGE_EXCHANGEAPP_H
00206