RemoteGateway.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-rocon_msgs/doc_stacks/2013-01-15_17-40-23.156253/rocon_msgs/gateway_msgs/msg/RemoteGateway.msg */
00002 #ifndef GATEWAY_MSGS_MESSAGE_REMOTEGATEWAY_H
00003 #define GATEWAY_MSGS_MESSAGE_REMOTEGATEWAY_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 "gateway_msgs/Rule.h"
00018 #include "gateway_msgs/RemoteRule.h"
00019 #include "gateway_msgs/RemoteRule.h"
00020 
00021 namespace gateway_msgs
00022 {
00023 template <class ContainerAllocator>
00024 struct RemoteGateway_ {
00025   typedef RemoteGateway_<ContainerAllocator> Type;
00026 
00027   RemoteGateway_()
00028   : name()
00029   , ip()
00030   , firewall(false)
00031   , public_interface()
00032   , flipped_interface()
00033   , pulled_interface()
00034   {
00035   }
00036 
00037   RemoteGateway_(const ContainerAllocator& _alloc)
00038   : name(_alloc)
00039   , ip(_alloc)
00040   , firewall(false)
00041   , public_interface(_alloc)
00042   , flipped_interface(_alloc)
00043   , pulled_interface(_alloc)
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 >  _ip_type;
00051   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  ip;
00052 
00053   typedef uint8_t _firewall_type;
00054   uint8_t firewall;
00055 
00056   typedef std::vector< ::gateway_msgs::Rule_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::gateway_msgs::Rule_<ContainerAllocator> >::other >  _public_interface_type;
00057   std::vector< ::gateway_msgs::Rule_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::gateway_msgs::Rule_<ContainerAllocator> >::other >  public_interface;
00058 
00059   typedef std::vector< ::gateway_msgs::RemoteRule_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::gateway_msgs::RemoteRule_<ContainerAllocator> >::other >  _flipped_interface_type;
00060   std::vector< ::gateway_msgs::RemoteRule_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::gateway_msgs::RemoteRule_<ContainerAllocator> >::other >  flipped_interface;
00061 
00062   typedef std::vector< ::gateway_msgs::RemoteRule_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::gateway_msgs::RemoteRule_<ContainerAllocator> >::other >  _pulled_interface_type;
00063   std::vector< ::gateway_msgs::RemoteRule_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::gateway_msgs::RemoteRule_<ContainerAllocator> >::other >  pulled_interface;
00064 
00065 
00066   typedef boost::shared_ptr< ::gateway_msgs::RemoteGateway_<ContainerAllocator> > Ptr;
00067   typedef boost::shared_ptr< ::gateway_msgs::RemoteGateway_<ContainerAllocator>  const> ConstPtr;
00068   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00069 }; // struct RemoteGateway
00070 typedef  ::gateway_msgs::RemoteGateway_<std::allocator<void> > RemoteGateway;
00071 
00072 typedef boost::shared_ptr< ::gateway_msgs::RemoteGateway> RemoteGatewayPtr;
00073 typedef boost::shared_ptr< ::gateway_msgs::RemoteGateway const> RemoteGatewayConstPtr;
00074 
00075 
00076 template<typename ContainerAllocator>
00077 std::ostream& operator<<(std::ostream& s, const  ::gateway_msgs::RemoteGateway_<ContainerAllocator> & v)
00078 {
00079   ros::message_operations::Printer< ::gateway_msgs::RemoteGateway_<ContainerAllocator> >::stream(s, "", v);
00080   return s;}
00081 
00082 } // namespace gateway_msgs
00083 
00084 namespace ros
00085 {
00086 namespace message_traits
00087 {
00088 template<class ContainerAllocator> struct IsMessage< ::gateway_msgs::RemoteGateway_<ContainerAllocator> > : public TrueType {};
00089 template<class ContainerAllocator> struct IsMessage< ::gateway_msgs::RemoteGateway_<ContainerAllocator>  const> : public TrueType {};
00090 template<class ContainerAllocator>
00091 struct MD5Sum< ::gateway_msgs::RemoteGateway_<ContainerAllocator> > {
00092   static const char* value() 
00093   {
00094     return "c2825a110d4bc0a2e94421a89778e5f4";
00095   }
00096 
00097   static const char* value(const  ::gateway_msgs::RemoteGateway_<ContainerAllocator> &) { return value(); } 
00098   static const uint64_t static_value1 = 0xc2825a110d4bc0a2ULL;
00099   static const uint64_t static_value2 = 0xe94421a89778e5f4ULL;
00100 };
00101 
00102 template<class ContainerAllocator>
00103 struct DataType< ::gateway_msgs::RemoteGateway_<ContainerAllocator> > {
00104   static const char* value() 
00105   {
00106     return "gateway_msgs/RemoteGateway";
00107   }
00108 
00109   static const char* value(const  ::gateway_msgs::RemoteGateway_<ContainerAllocator> &) { return value(); } 
00110 };
00111 
00112 template<class ContainerAllocator>
00113 struct Definition< ::gateway_msgs::RemoteGateway_<ContainerAllocator> > {
00114   static const char* value() 
00115   {
00116     return "###### Gateway information ######\n\
00117 string name\n\
00118 string ip\n\
00119 #TODO blocking status,health\n\
00120 bool firewall\n\
00121 \n\
00122 ###### Public Interface ######\n\
00123 \n\
00124 Rule[] public_interface\n\
00125 \n\
00126 \n\
00127 ###### Flipped Interface ######\n\
00128 \n\
00129 # Flipped and pulled interfaces would be useful for debugging \n\
00130 #    https://github.com/robotics-in-concert/rocon_multimaster/issues/84\n\
00131 \n\
00132 RemoteRule[] flipped_interface\n\
00133 RemoteRule[] pulled_interface\n\
00134 \n\
00135 ###### Foreign Interface ######\n\
00136 \n\
00137 # Q) Should we show these?\n\
00138 # A) Probably not, in the overall scheme of things, \n\
00139 #    it doubles up the information from above\n\
00140 \n\
00141 # RemoteRule[] flipped_in_connections\n\
00142 # RemoteRule[] pulled_connections\n\
00143 \n\
00144 ================================================================================\n\
00145 MSG: gateway_msgs/Rule\n\
00146 # Standard gateway connection rule\n\
00147 \n\
00148 # type of connection (from gateway_msgs.msg.Connection)\n\
00149 string type\n\
00150 \n\
00151 # this is the topic/service name or the action base name (a regex is supported)\n\
00152 string name \n\
00153 \n\
00154 # (optional) an optional node name can be provided. if node name is not provided\n\
00155 # then all nodes are matched (also supports regex)\n\
00156 string node\n\
00157 \n\
00158 ================================================================================\n\
00159 MSG: gateway_msgs/RemoteRule\n\
00160 # Definition for a flip. It represents either:\n\
00161 #\n\
00162 # 1) an existing flipped connection (from the local gateway)\n\
00163 # 2) a rule that is put on a watchlist\n\
00164 \n\
00165 # The target recipient of the flip\n\
00166 string gateway\n\
00167 \n\
00168 # Connection has the following parameters that need setting\n\
00169 # - name : fully qualified name of the connection (str)\n\
00170 # - type : connection type (str)\n\
00171 #  \n\
00172 # Use one of the types defined in Connection string constants:\n\
00173 #     (publisher, subscriber, service, action_client, action_server)\n\
00174 #\n\
00175 # - node : name of the node it originates from (str)(optional)\n\
00176 #\n\
00177 # Node name is necessary, for instance, if you have multiple subscribers\n\
00178 # publishing to a single topic. Most of the time it is not necessary,\n\
00179 # but in some cases it helps refine the rule. It helps refine the rule.\n\
00180 #\n\
00181 Rule rule\n\
00182 \n\
00183 ";
00184   }
00185 
00186   static const char* value(const  ::gateway_msgs::RemoteGateway_<ContainerAllocator> &) { return value(); } 
00187 };
00188 
00189 } // namespace message_traits
00190 } // namespace ros
00191 
00192 namespace ros
00193 {
00194 namespace serialization
00195 {
00196 
00197 template<class ContainerAllocator> struct Serializer< ::gateway_msgs::RemoteGateway_<ContainerAllocator> >
00198 {
00199   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00200   {
00201     stream.next(m.name);
00202     stream.next(m.ip);
00203     stream.next(m.firewall);
00204     stream.next(m.public_interface);
00205     stream.next(m.flipped_interface);
00206     stream.next(m.pulled_interface);
00207   }
00208 
00209   ROS_DECLARE_ALLINONE_SERIALIZER;
00210 }; // struct RemoteGateway_
00211 } // namespace serialization
00212 } // namespace ros
00213 
00214 namespace ros
00215 {
00216 namespace message_operations
00217 {
00218 
00219 template<class ContainerAllocator>
00220 struct Printer< ::gateway_msgs::RemoteGateway_<ContainerAllocator> >
00221 {
00222   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::gateway_msgs::RemoteGateway_<ContainerAllocator> & v) 
00223   {
00224     s << indent << "name: ";
00225     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.name);
00226     s << indent << "ip: ";
00227     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.ip);
00228     s << indent << "firewall: ";
00229     Printer<uint8_t>::stream(s, indent + "  ", v.firewall);
00230     s << indent << "public_interface[]" << std::endl;
00231     for (size_t i = 0; i < v.public_interface.size(); ++i)
00232     {
00233       s << indent << "  public_interface[" << i << "]: ";
00234       s << std::endl;
00235       s << indent;
00236       Printer< ::gateway_msgs::Rule_<ContainerAllocator> >::stream(s, indent + "    ", v.public_interface[i]);
00237     }
00238     s << indent << "flipped_interface[]" << std::endl;
00239     for (size_t i = 0; i < v.flipped_interface.size(); ++i)
00240     {
00241       s << indent << "  flipped_interface[" << i << "]: ";
00242       s << std::endl;
00243       s << indent;
00244       Printer< ::gateway_msgs::RemoteRule_<ContainerAllocator> >::stream(s, indent + "    ", v.flipped_interface[i]);
00245     }
00246     s << indent << "pulled_interface[]" << std::endl;
00247     for (size_t i = 0; i < v.pulled_interface.size(); ++i)
00248     {
00249       s << indent << "  pulled_interface[" << i << "]: ";
00250       s << std::endl;
00251       s << indent;
00252       Printer< ::gateway_msgs::RemoteRule_<ContainerAllocator> >::stream(s, indent + "    ", v.pulled_interface[i]);
00253     }
00254   }
00255 };
00256 
00257 
00258 } // namespace message_operations
00259 } // namespace ros
00260 
00261 #endif // GATEWAY_MSGS_MESSAGE_REMOTEGATEWAY_H
00262 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends


gateway_msgs
Author(s): Jihoon
autogenerated on Tue Jan 15 2013 17:43:49