Go to the documentation of this file.00001
00002 #ifndef GATEWAY_MSGS_MESSAGE_CONNECTIONTYPE_H
00003 #define GATEWAY_MSGS_MESSAGE_CONNECTIONTYPE_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 gateway_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct ConnectionType_ {
00022 typedef ConnectionType_<ContainerAllocator> Type;
00023
00024 ConnectionType_()
00025 {
00026 }
00027
00028 ConnectionType_(const ContainerAllocator& _alloc)
00029 {
00030 }
00031
00032 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > PUBLISHER;
00033 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > SUBSCRIBER;
00034 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > SERVICE;
00035 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > ACTION_CLIENT;
00036 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > ACTION_SERVER;
00037 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > INVALID;
00038
00039 typedef boost::shared_ptr< ::gateway_msgs::ConnectionType_<ContainerAllocator> > Ptr;
00040 typedef boost::shared_ptr< ::gateway_msgs::ConnectionType_<ContainerAllocator> const> ConstPtr;
00041 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00042 };
00043 typedef ::gateway_msgs::ConnectionType_<std::allocator<void> > ConnectionType;
00044
00045 typedef boost::shared_ptr< ::gateway_msgs::ConnectionType> ConnectionTypePtr;
00046 typedef boost::shared_ptr< ::gateway_msgs::ConnectionType const> ConnectionTypeConstPtr;
00047
00048 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > ConnectionType_<ContainerAllocator>::PUBLISHER = "publisher";
00049 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > ConnectionType_<ContainerAllocator>::SUBSCRIBER = "subscriber";
00050 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > ConnectionType_<ContainerAllocator>::SERVICE = "service";
00051 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > ConnectionType_<ContainerAllocator>::ACTION_CLIENT = "action_client";
00052 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > ConnectionType_<ContainerAllocator>::ACTION_SERVER = "action_server";
00053 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > ConnectionType_<ContainerAllocator>::INVALID = "invalid";
00054
00055 template<typename ContainerAllocator>
00056 std::ostream& operator<<(std::ostream& s, const ::gateway_msgs::ConnectionType_<ContainerAllocator> & v)
00057 {
00058 ros::message_operations::Printer< ::gateway_msgs::ConnectionType_<ContainerAllocator> >::stream(s, "", v);
00059 return s;}
00060
00061 }
00062
00063 namespace ros
00064 {
00065 namespace message_traits
00066 {
00067 template<class ContainerAllocator> struct IsMessage< ::gateway_msgs::ConnectionType_<ContainerAllocator> > : public TrueType {};
00068 template<class ContainerAllocator> struct IsMessage< ::gateway_msgs::ConnectionType_<ContainerAllocator> const> : public TrueType {};
00069 template<class ContainerAllocator>
00070 struct MD5Sum< ::gateway_msgs::ConnectionType_<ContainerAllocator> > {
00071 static const char* value()
00072 {
00073 return "65d75f1bb32566bfec48966db2073c81";
00074 }
00075
00076 static const char* value(const ::gateway_msgs::ConnectionType_<ContainerAllocator> &) { return value(); }
00077 static const uint64_t static_value1 = 0x65d75f1bb32566bfULL;
00078 static const uint64_t static_value2 = 0xec48966db2073c81ULL;
00079 };
00080
00081 template<class ContainerAllocator>
00082 struct DataType< ::gateway_msgs::ConnectionType_<ContainerAllocator> > {
00083 static const char* value()
00084 {
00085 return "gateway_msgs/ConnectionType";
00086 }
00087
00088 static const char* value(const ::gateway_msgs::ConnectionType_<ContainerAllocator> &) { return value(); }
00089 };
00090
00091 template<class ContainerAllocator>
00092 struct Definition< ::gateway_msgs::ConnectionType_<ContainerAllocator> > {
00093 static const char* value()
00094 {
00095 return "# A connection can be 1 of 5 types\n\
00096 string PUBLISHER = publisher\n\
00097 string SUBSCRIBER = subscriber\n\
00098 string SERVICE = service\n\
00099 string ACTION_CLIENT = action_client\n\
00100 string ACTION_SERVER = action_server\n\
00101 string INVALID = invalid\n\
00102 \n\
00103 ";
00104 }
00105
00106 static const char* value(const ::gateway_msgs::ConnectionType_<ContainerAllocator> &) { return value(); }
00107 };
00108
00109 template<class ContainerAllocator> struct IsFixedSize< ::gateway_msgs::ConnectionType_<ContainerAllocator> > : public TrueType {};
00110 }
00111 }
00112
00113 namespace ros
00114 {
00115 namespace serialization
00116 {
00117
00118 template<class ContainerAllocator> struct Serializer< ::gateway_msgs::ConnectionType_<ContainerAllocator> >
00119 {
00120 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00121 {
00122 }
00123
00124 ROS_DECLARE_ALLINONE_SERIALIZER;
00125 };
00126 }
00127 }
00128
00129 namespace ros
00130 {
00131 namespace message_operations
00132 {
00133
00134 template<class ContainerAllocator>
00135 struct Printer< ::gateway_msgs::ConnectionType_<ContainerAllocator> >
00136 {
00137 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::gateway_msgs::ConnectionType_<ContainerAllocator> & v)
00138 {
00139 }
00140 };
00141
00142
00143 }
00144 }
00145
00146 #endif // GATEWAY_MSGS_MESSAGE_CONNECTIONTYPE_H
00147