// Generated by gencpp from file std_msgs/Duration.msg // DO NOT EDIT! #ifndef STD_MSGS_MESSAGE_DURATION_H #define STD_MSGS_MESSAGE_DURATION_H #include #include #include #include #include #include #include namespace std_msgs { template struct Duration_ { typedef Duration_ Type; Duration_() : data() { } Duration_(const ContainerAllocator& _alloc) : data() { (void)_alloc; } typedef ros::Duration _data_type; _data_type data; typedef boost::shared_ptr< ::std_msgs::Duration_ > Ptr; typedef boost::shared_ptr< ::std_msgs::Duration_ const> ConstPtr; }; // struct Duration_ typedef ::std_msgs::Duration_ > Duration; typedef boost::shared_ptr< ::std_msgs::Duration > DurationPtr; typedef boost::shared_ptr< ::std_msgs::Duration const> DurationConstPtr; // constants requiring out of line definition template std::ostream& operator<<(std::ostream& s, const ::std_msgs::Duration_ & v) { ros::message_operations::Printer< ::std_msgs::Duration_ >::stream(s, "", v); return s; } template bool operator==(const ::std_msgs::Duration_ & lhs, const ::std_msgs::Duration_ & rhs) { return lhs.data == rhs.data; } template bool operator!=(const ::std_msgs::Duration_ & lhs, const ::std_msgs::Duration_ & rhs) { return !(lhs == rhs); } } // namespace std_msgs namespace ros { namespace message_traits { template struct IsMessage< ::std_msgs::Duration_ > : TrueType { }; template struct IsMessage< ::std_msgs::Duration_ const> : TrueType { }; template struct IsFixedSize< ::std_msgs::Duration_ > : TrueType { }; template struct IsFixedSize< ::std_msgs::Duration_ const> : TrueType { }; template struct HasHeader< ::std_msgs::Duration_ > : FalseType { }; template struct HasHeader< ::std_msgs::Duration_ const> : FalseType { }; template struct MD5Sum< ::std_msgs::Duration_ > { static const char* value() { return "3e286caf4241d664e55f3ad380e2ae46"; } static const char* value(const ::std_msgs::Duration_&) { return value(); } static const uint64_t static_value1 = 0x3e286caf4241d664ULL; static const uint64_t static_value2 = 0xe55f3ad380e2ae46ULL; }; template struct DataType< ::std_msgs::Duration_ > { static const char* value() { return "std_msgs/Duration"; } static const char* value(const ::std_msgs::Duration_&) { return value(); } }; template struct Definition< ::std_msgs::Duration_ > { static const char* value() { return "duration data\n" ; } static const char* value(const ::std_msgs::Duration_&) { return value(); } }; } // namespace message_traits } // namespace ros namespace ros { namespace serialization { template struct Serializer< ::std_msgs::Duration_ > { template inline static void allInOne(Stream& stream, T m) { stream.next(m.data); } ROS_DECLARE_ALLINONE_SERIALIZER }; // struct Duration_ } // namespace serialization } // namespace ros namespace ros { namespace message_operations { template struct Printer< ::std_msgs::Duration_ > { template static void stream(Stream& s, const std::string& indent, const ::std_msgs::Duration_& v) { s << indent << "data: "; Printer::stream(s, indent + " ", v.data); } }; } // namespace message_operations } // namespace ros #endif // STD_MSGS_MESSAGE_DURATION_H