Rule.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-rocon_msgs/doc_stacks/2012-11-21_14-56-14.893510/rocon_msgs/gateway_comms/msg/Rule.msg */
00002 #ifndef GATEWAY_COMMS_MESSAGE_RULE_H
00003 #define GATEWAY_COMMS_MESSAGE_RULE_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 Rule_ {
00022   typedef Rule_<ContainerAllocator> Type;
00023 
00024   Rule_()
00025   : type()
00026   , name()
00027   , node()
00028   {
00029   }
00030 
00031   Rule_(const ContainerAllocator& _alloc)
00032   : type(_alloc)
00033   , name(_alloc)
00034   , node(_alloc)
00035   {
00036   }
00037 
00038   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _type_type;
00039   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  type;
00040 
00041   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _name_type;
00042   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  name;
00043 
00044   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _node_type;
00045   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  node;
00046 
00047 
00048   typedef boost::shared_ptr< ::gateway_comms::Rule_<ContainerAllocator> > Ptr;
00049   typedef boost::shared_ptr< ::gateway_comms::Rule_<ContainerAllocator>  const> ConstPtr;
00050   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00051 }; // struct Rule
00052 typedef  ::gateway_comms::Rule_<std::allocator<void> > Rule;
00053 
00054 typedef boost::shared_ptr< ::gateway_comms::Rule> RulePtr;
00055 typedef boost::shared_ptr< ::gateway_comms::Rule const> RuleConstPtr;
00056 
00057 
00058 template<typename ContainerAllocator>
00059 std::ostream& operator<<(std::ostream& s, const  ::gateway_comms::Rule_<ContainerAllocator> & v)
00060 {
00061   ros::message_operations::Printer< ::gateway_comms::Rule_<ContainerAllocator> >::stream(s, "", v);
00062   return s;}
00063 
00064 } // namespace gateway_comms
00065 
00066 namespace ros
00067 {
00068 namespace message_traits
00069 {
00070 template<class ContainerAllocator> struct IsMessage< ::gateway_comms::Rule_<ContainerAllocator> > : public TrueType {};
00071 template<class ContainerAllocator> struct IsMessage< ::gateway_comms::Rule_<ContainerAllocator>  const> : public TrueType {};
00072 template<class ContainerAllocator>
00073 struct MD5Sum< ::gateway_comms::Rule_<ContainerAllocator> > {
00074   static const char* value() 
00075   {
00076     return "7a98759a4c27c4925840d27b3d7bcecb";
00077   }
00078 
00079   static const char* value(const  ::gateway_comms::Rule_<ContainerAllocator> &) { return value(); } 
00080   static const uint64_t static_value1 = 0x7a98759a4c27c492ULL;
00081   static const uint64_t static_value2 = 0x5840d27b3d7bcecbULL;
00082 };
00083 
00084 template<class ContainerAllocator>
00085 struct DataType< ::gateway_comms::Rule_<ContainerAllocator> > {
00086   static const char* value() 
00087   {
00088     return "gateway_comms/Rule";
00089   }
00090 
00091   static const char* value(const  ::gateway_comms::Rule_<ContainerAllocator> &) { return value(); } 
00092 };
00093 
00094 template<class ContainerAllocator>
00095 struct Definition< ::gateway_comms::Rule_<ContainerAllocator> > {
00096   static const char* value() 
00097   {
00098     return "# Standard gateway connection rule\n\
00099 \n\
00100 # type of connection (from gateway_comms.msg.Connection)\n\
00101 string type\n\
00102 \n\
00103 # this is the topic/service name or the action base name (a regex is supported)\n\
00104 string name \n\
00105 \n\
00106 # (optional) an optional node name can be provided. if node name is not provided\n\
00107 # then all nodes are matched (also supports regex)\n\
00108 string node\n\
00109 \n\
00110 ";
00111   }
00112 
00113   static const char* value(const  ::gateway_comms::Rule_<ContainerAllocator> &) { return value(); } 
00114 };
00115 
00116 } // namespace message_traits
00117 } // namespace ros
00118 
00119 namespace ros
00120 {
00121 namespace serialization
00122 {
00123 
00124 template<class ContainerAllocator> struct Serializer< ::gateway_comms::Rule_<ContainerAllocator> >
00125 {
00126   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00127   {
00128     stream.next(m.type);
00129     stream.next(m.name);
00130     stream.next(m.node);
00131   }
00132 
00133   ROS_DECLARE_ALLINONE_SERIALIZER;
00134 }; // struct Rule_
00135 } // namespace serialization
00136 } // namespace ros
00137 
00138 namespace ros
00139 {
00140 namespace message_operations
00141 {
00142 
00143 template<class ContainerAllocator>
00144 struct Printer< ::gateway_comms::Rule_<ContainerAllocator> >
00145 {
00146   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::gateway_comms::Rule_<ContainerAllocator> & v) 
00147   {
00148     s << indent << "type: ";
00149     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.type);
00150     s << indent << "name: ";
00151     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.name);
00152     s << indent << "node: ";
00153     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.node);
00154   }
00155 };
00156 
00157 
00158 } // namespace message_operations
00159 } // namespace ros
00160 
00161 #endif // GATEWAY_COMMS_MESSAGE_RULE_H
00162 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends


gateway_comms
Author(s): Jihoon
autogenerated on Wed Nov 21 2012 15:02:06