Go to the documentation of this file.00001
00002 #ifndef GATEWAY_COMMS_MESSAGE_RESULT_H
00003 #define GATEWAY_COMMS_MESSAGE_RESULT_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_comms
00019 {
00020 template <class ContainerAllocator>
00021 struct Result_ {
00022 typedef Result_<ContainerAllocator> Type;
00023
00024 Result_()
00025 {
00026 }
00027
00028 Result_(const ContainerAllocator& _alloc)
00029 {
00030 }
00031
00032 enum { SUCCESS = 0 };
00033 enum { NO_HUB_CONNECTION = 1 };
00034 enum { HUB_CONNECTION_ALREADY_EXISTS = 11 };
00035 enum { HUB_CONNECTION_UNRESOLVABLE = 12 };
00036 enum { HUB_CONNECTION_BLACKLISTED = 13 };
00037 enum { HUB_CONNECTION_FAILED = 14 };
00038 enum { HUB_CONNECTION_NOT_IN_NONEMPTY_WHITELIST = 15 };
00039 enum { FLIP_NO_TO_SELF = 21 };
00040 enum { FLIP_RULE_ALREADY_EXISTS = 22 };
00041 enum { FLIP_PATTERN_ALREDY_EXISTS = 23 };
00042 enum { FLIP_REMOTE_GATEWAY_FIREWALLING = 24 };
00043 enum { FLIP_REMOTE_GATEWAY_NOT_CONNECTED = 25 };
00044 enum { ADVERTISEMENT_EXISTS = 31 };
00045 enum { ADVERTISEMENT_NOT_FOUND = 32 };
00046 enum { UNKNOWN_ADVERTISEMENT_ERROR = 39 };
00047 enum { PULL_RULE_ALREADY_EXISTS = 41 };
00048
00049 typedef boost::shared_ptr< ::gateway_comms::Result_<ContainerAllocator> > Ptr;
00050 typedef boost::shared_ptr< ::gateway_comms::Result_<ContainerAllocator> const> ConstPtr;
00051 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00052 };
00053 typedef ::gateway_comms::Result_<std::allocator<void> > Result;
00054
00055 typedef boost::shared_ptr< ::gateway_comms::Result> ResultPtr;
00056 typedef boost::shared_ptr< ::gateway_comms::Result const> ResultConstPtr;
00057
00058
00059 template<typename ContainerAllocator>
00060 std::ostream& operator<<(std::ostream& s, const ::gateway_comms::Result_<ContainerAllocator> & v)
00061 {
00062 ros::message_operations::Printer< ::gateway_comms::Result_<ContainerAllocator> >::stream(s, "", v);
00063 return s;}
00064
00065 }
00066
00067 namespace ros
00068 {
00069 namespace message_traits
00070 {
00071 template<class ContainerAllocator> struct IsMessage< ::gateway_comms::Result_<ContainerAllocator> > : public TrueType {};
00072 template<class ContainerAllocator> struct IsMessage< ::gateway_comms::Result_<ContainerAllocator> const> : public TrueType {};
00073 template<class ContainerAllocator>
00074 struct MD5Sum< ::gateway_comms::Result_<ContainerAllocator> > {
00075 static const char* value()
00076 {
00077 return "b28fba5d8d49ef8a4a566fa8d21c545e";
00078 }
00079
00080 static const char* value(const ::gateway_comms::Result_<ContainerAllocator> &) { return value(); }
00081 static const uint64_t static_value1 = 0xb28fba5d8d49ef8aULL;
00082 static const uint64_t static_value2 = 0x4a566fa8d21c545eULL;
00083 };
00084
00085 template<class ContainerAllocator>
00086 struct DataType< ::gateway_comms::Result_<ContainerAllocator> > {
00087 static const char* value()
00088 {
00089 return "gateway_comms/Result";
00090 }
00091
00092 static const char* value(const ::gateway_comms::Result_<ContainerAllocator> &) { return value(); }
00093 };
00094
00095 template<class ContainerAllocator>
00096 struct Definition< ::gateway_comms::Result_<ContainerAllocator> > {
00097 static const char* value()
00098 {
00099 return "# Error types for the gateway ros api\n\
00100 \n\
00101 # General\n\
00102 int8 SUCCESS = 0\n\
00103 int8 NO_HUB_CONNECTION = 1\n\
00104 \n\
00105 # Connection\n\
00106 int8 HUB_CONNECTION_ALREADY_EXISTS = 11\n\
00107 int8 HUB_CONNECTION_UNRESOLVABLE = 12\n\
00108 int8 HUB_CONNECTION_BLACKLISTED = 13\n\
00109 int8 HUB_CONNECTION_FAILED = 14\n\
00110 int8 HUB_CONNECTION_NOT_IN_NONEMPTY_WHITELIST = 15\n\
00111 \n\
00112 # Flipping\n\
00113 int8 FLIP_NO_TO_SELF = 21\n\
00114 int8 FLIP_RULE_ALREADY_EXISTS = 22\n\
00115 int8 FLIP_PATTERN_ALREDY_EXISTS = 23\n\
00116 int8 FLIP_REMOTE_GATEWAY_FIREWALLING = 24\n\
00117 int8 FLIP_REMOTE_GATEWAY_NOT_CONNECTED = 25\n\
00118 \n\
00119 # Advertise\n\
00120 int8 ADVERTISEMENT_EXISTS = 31\n\
00121 int8 ADVERTISEMENT_NOT_FOUND = 32\n\
00122 int8 UNKNOWN_ADVERTISEMENT_ERROR = 39\n\
00123 \n\
00124 # Pulling\n\
00125 int8 PULL_RULE_ALREADY_EXISTS = 41\n\
00126 \n\
00127 ";
00128 }
00129
00130 static const char* value(const ::gateway_comms::Result_<ContainerAllocator> &) { return value(); }
00131 };
00132
00133 template<class ContainerAllocator> struct IsFixedSize< ::gateway_comms::Result_<ContainerAllocator> > : public TrueType {};
00134 }
00135 }
00136
00137 namespace ros
00138 {
00139 namespace serialization
00140 {
00141
00142 template<class ContainerAllocator> struct Serializer< ::gateway_comms::Result_<ContainerAllocator> >
00143 {
00144 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00145 {
00146 }
00147
00148 ROS_DECLARE_ALLINONE_SERIALIZER;
00149 };
00150 }
00151 }
00152
00153 namespace ros
00154 {
00155 namespace message_operations
00156 {
00157
00158 template<class ContainerAllocator>
00159 struct Printer< ::gateway_comms::Result_<ContainerAllocator> >
00160 {
00161 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::gateway_comms::Result_<ContainerAllocator> & v)
00162 {
00163 }
00164 };
00165
00166
00167 }
00168 }
00169
00170 #endif // GATEWAY_COMMS_MESSAGE_RESULT_H
00171