$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-remote_lab/doc_stacks/2013-03-03_11-54-58.406785/remote_lab/topic_logger/msg/TopicLoggerGoal.msg */ 00002 #ifndef TOPIC_LOGGER_MESSAGE_TOPICLOGGERGOAL_H 00003 #define TOPIC_LOGGER_MESSAGE_TOPICLOGGERGOAL_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 topic_logger 00019 { 00020 template <class ContainerAllocator> 00021 struct TopicLoggerGoal_ { 00022 typedef TopicLoggerGoal_<ContainerAllocator> Type; 00023 00024 TopicLoggerGoal_() 00025 : command() 00026 , ID() 00027 , selectedTopics() 00028 { 00029 } 00030 00031 TopicLoggerGoal_(const ContainerAllocator& _alloc) 00032 : command(_alloc) 00033 , ID(_alloc) 00034 , selectedTopics(_alloc) 00035 { 00036 } 00037 00038 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _command_type; 00039 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > command; 00040 00041 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _ID_type; 00042 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > ID; 00043 00044 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _selectedTopics_type; 00045 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > selectedTopics; 00046 00047 00048 ROS_DEPRECATED uint32_t get_selectedTopics_size() const { return (uint32_t)selectedTopics.size(); } 00049 ROS_DEPRECATED void set_selectedTopics_size(uint32_t size) { selectedTopics.resize((size_t)size); } 00050 ROS_DEPRECATED void get_selectedTopics_vec(std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) const { vec = this->selectedTopics; } 00051 ROS_DEPRECATED void set_selectedTopics_vec(const std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) { this->selectedTopics = vec; } 00052 private: 00053 static const char* __s_getDataType_() { return "topic_logger/TopicLoggerGoal"; } 00054 public: 00055 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00056 00057 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00058 00059 private: 00060 static const char* __s_getMD5Sum_() { return "3cb1755373f328539e90d82d254cc935"; } 00061 public: 00062 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00063 00064 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00065 00066 private: 00067 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00068 #goal definition\n\ 00069 string command\n\ 00070 string ID\n\ 00071 string[] selectedTopics\n\ 00072 \n\ 00073 "; } 00074 public: 00075 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00076 00077 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00078 00079 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00080 { 00081 ros::serialization::OStream stream(write_ptr, 1000000000); 00082 ros::serialization::serialize(stream, command); 00083 ros::serialization::serialize(stream, ID); 00084 ros::serialization::serialize(stream, selectedTopics); 00085 return stream.getData(); 00086 } 00087 00088 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00089 { 00090 ros::serialization::IStream stream(read_ptr, 1000000000); 00091 ros::serialization::deserialize(stream, command); 00092 ros::serialization::deserialize(stream, ID); 00093 ros::serialization::deserialize(stream, selectedTopics); 00094 return stream.getData(); 00095 } 00096 00097 ROS_DEPRECATED virtual uint32_t serializationLength() const 00098 { 00099 uint32_t size = 0; 00100 size += ros::serialization::serializationLength(command); 00101 size += ros::serialization::serializationLength(ID); 00102 size += ros::serialization::serializationLength(selectedTopics); 00103 return size; 00104 } 00105 00106 typedef boost::shared_ptr< ::topic_logger::TopicLoggerGoal_<ContainerAllocator> > Ptr; 00107 typedef boost::shared_ptr< ::topic_logger::TopicLoggerGoal_<ContainerAllocator> const> ConstPtr; 00108 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00109 }; // struct TopicLoggerGoal 00110 typedef ::topic_logger::TopicLoggerGoal_<std::allocator<void> > TopicLoggerGoal; 00111 00112 typedef boost::shared_ptr< ::topic_logger::TopicLoggerGoal> TopicLoggerGoalPtr; 00113 typedef boost::shared_ptr< ::topic_logger::TopicLoggerGoal const> TopicLoggerGoalConstPtr; 00114 00115 00116 template<typename ContainerAllocator> 00117 std::ostream& operator<<(std::ostream& s, const ::topic_logger::TopicLoggerGoal_<ContainerAllocator> & v) 00118 { 00119 ros::message_operations::Printer< ::topic_logger::TopicLoggerGoal_<ContainerAllocator> >::stream(s, "", v); 00120 return s;} 00121 00122 } // namespace topic_logger 00123 00124 namespace ros 00125 { 00126 namespace message_traits 00127 { 00128 template<class ContainerAllocator> struct IsMessage< ::topic_logger::TopicLoggerGoal_<ContainerAllocator> > : public TrueType {}; 00129 template<class ContainerAllocator> struct IsMessage< ::topic_logger::TopicLoggerGoal_<ContainerAllocator> const> : public TrueType {}; 00130 template<class ContainerAllocator> 00131 struct MD5Sum< ::topic_logger::TopicLoggerGoal_<ContainerAllocator> > { 00132 static const char* value() 00133 { 00134 return "3cb1755373f328539e90d82d254cc935"; 00135 } 00136 00137 static const char* value(const ::topic_logger::TopicLoggerGoal_<ContainerAllocator> &) { return value(); } 00138 static const uint64_t static_value1 = 0x3cb1755373f32853ULL; 00139 static const uint64_t static_value2 = 0x9e90d82d254cc935ULL; 00140 }; 00141 00142 template<class ContainerAllocator> 00143 struct DataType< ::topic_logger::TopicLoggerGoal_<ContainerAllocator> > { 00144 static const char* value() 00145 { 00146 return "topic_logger/TopicLoggerGoal"; 00147 } 00148 00149 static const char* value(const ::topic_logger::TopicLoggerGoal_<ContainerAllocator> &) { return value(); } 00150 }; 00151 00152 template<class ContainerAllocator> 00153 struct Definition< ::topic_logger::TopicLoggerGoal_<ContainerAllocator> > { 00154 static const char* value() 00155 { 00156 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00157 #goal definition\n\ 00158 string command\n\ 00159 string ID\n\ 00160 string[] selectedTopics\n\ 00161 \n\ 00162 "; 00163 } 00164 00165 static const char* value(const ::topic_logger::TopicLoggerGoal_<ContainerAllocator> &) { return value(); } 00166 }; 00167 00168 } // namespace message_traits 00169 } // namespace ros 00170 00171 namespace ros 00172 { 00173 namespace serialization 00174 { 00175 00176 template<class ContainerAllocator> struct Serializer< ::topic_logger::TopicLoggerGoal_<ContainerAllocator> > 00177 { 00178 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00179 { 00180 stream.next(m.command); 00181 stream.next(m.ID); 00182 stream.next(m.selectedTopics); 00183 } 00184 00185 ROS_DECLARE_ALLINONE_SERIALIZER; 00186 }; // struct TopicLoggerGoal_ 00187 } // namespace serialization 00188 } // namespace ros 00189 00190 namespace ros 00191 { 00192 namespace message_operations 00193 { 00194 00195 template<class ContainerAllocator> 00196 struct Printer< ::topic_logger::TopicLoggerGoal_<ContainerAllocator> > 00197 { 00198 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::topic_logger::TopicLoggerGoal_<ContainerAllocator> & v) 00199 { 00200 s << indent << "command: "; 00201 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.command); 00202 s << indent << "ID: "; 00203 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.ID); 00204 s << indent << "selectedTopics[]" << std::endl; 00205 for (size_t i = 0; i < v.selectedTopics.size(); ++i) 00206 { 00207 s << indent << " selectedTopics[" << i << "]: "; 00208 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.selectedTopics[i]); 00209 } 00210 } 00211 }; 00212 00213 00214 } // namespace message_operations 00215 } // namespace ros 00216 00217 #endif // TOPIC_LOGGER_MESSAGE_TOPICLOGGERGOAL_H 00218