// Generated by gencpp from file common_msgs/TaskInfo.msg
// DO NOT EDIT!


#ifndef COMMON_MSGS_MESSAGE_TASKINFO_H
#define COMMON_MSGS_MESSAGE_TASKINFO_H


#include <string>
#include <vector>
#include <memory>

#include <ros/types.h>
#include <ros/serialization.h>
#include <ros/builtin_message_traits.h>
#include <ros/message_operations.h>


namespace common_msgs
{
template <class ContainerAllocator>
struct TaskInfo_
{
  typedef TaskInfo_<ContainerAllocator> Type;

  TaskInfo_()
    : task_id()
    , task_type(0)
    , sub_task_type(0)  {
    }
  TaskInfo_(const ContainerAllocator& _alloc)
    : task_id(_alloc)
    , task_type(0)
    , sub_task_type(0)  {
  (void)_alloc;
    }



   typedef std::basic_string<char, std::char_traits<char>, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<char>> _task_id_type;
  _task_id_type task_id;

   typedef int32_t _task_type_type;
  _task_type_type task_type;

   typedef int32_t _sub_task_type_type;
  _sub_task_type_type sub_task_type;





  typedef boost::shared_ptr< ::common_msgs::TaskInfo_<ContainerAllocator> > Ptr;
  typedef boost::shared_ptr< ::common_msgs::TaskInfo_<ContainerAllocator> const> ConstPtr;

}; // struct TaskInfo_

typedef ::common_msgs::TaskInfo_<std::allocator<void> > TaskInfo;

typedef boost::shared_ptr< ::common_msgs::TaskInfo > TaskInfoPtr;
typedef boost::shared_ptr< ::common_msgs::TaskInfo const> TaskInfoConstPtr;

// constants requiring out of line definition



template<typename ContainerAllocator>
std::ostream& operator<<(std::ostream& s, const ::common_msgs::TaskInfo_<ContainerAllocator> & v)
{
ros::message_operations::Printer< ::common_msgs::TaskInfo_<ContainerAllocator> >::stream(s, "", v);
return s;
}


template<typename ContainerAllocator1, typename ContainerAllocator2>
bool operator==(const ::common_msgs::TaskInfo_<ContainerAllocator1> & lhs, const ::common_msgs::TaskInfo_<ContainerAllocator2> & rhs)
{
  return lhs.task_id == rhs.task_id &&
    lhs.task_type == rhs.task_type &&
    lhs.sub_task_type == rhs.sub_task_type;
}

template<typename ContainerAllocator1, typename ContainerAllocator2>
bool operator!=(const ::common_msgs::TaskInfo_<ContainerAllocator1> & lhs, const ::common_msgs::TaskInfo_<ContainerAllocator2> & rhs)
{
  return !(lhs == rhs);
}


} // namespace common_msgs

namespace ros
{
namespace message_traits
{





template <class ContainerAllocator>
struct IsFixedSize< ::common_msgs::TaskInfo_<ContainerAllocator> >
  : FalseType
  { };

template <class ContainerAllocator>
struct IsFixedSize< ::common_msgs::TaskInfo_<ContainerAllocator> const>
  : FalseType
  { };

template <class ContainerAllocator>
struct IsMessage< ::common_msgs::TaskInfo_<ContainerAllocator> >
  : TrueType
  { };

template <class ContainerAllocator>
struct IsMessage< ::common_msgs::TaskInfo_<ContainerAllocator> const>
  : TrueType
  { };

template <class ContainerAllocator>
struct HasHeader< ::common_msgs::TaskInfo_<ContainerAllocator> >
  : FalseType
  { };

template <class ContainerAllocator>
struct HasHeader< ::common_msgs::TaskInfo_<ContainerAllocator> const>
  : FalseType
  { };


template<class ContainerAllocator>
struct MD5Sum< ::common_msgs::TaskInfo_<ContainerAllocator> >
{
  static const char* value()
  {
    return "04c0b0a7fd79f8f0f2d4d3d069c8739b";
  }

  static const char* value(const ::common_msgs::TaskInfo_<ContainerAllocator>&) { return value(); }
  static const uint64_t static_value1 = 0x04c0b0a7fd79f8f0ULL;
  static const uint64_t static_value2 = 0xf2d4d3d069c8739bULL;
};

template<class ContainerAllocator>
struct DataType< ::common_msgs::TaskInfo_<ContainerAllocator> >
{
  static const char* value()
  {
    return "common_msgs/TaskInfo";
  }

  static const char* value(const ::common_msgs::TaskInfo_<ContainerAllocator>&) { return value(); }
};

template<class ContainerAllocator>
struct Definition< ::common_msgs::TaskInfo_<ContainerAllocator> >
{
  static const char* value()
  {
    return "#任务id\n"
"string task_id\n"
"#任务类型\n"
"int32 task_type\n"
"#子任务类型\n"
"int32 sub_task_type\n"
;
  }

  static const char* value(const ::common_msgs::TaskInfo_<ContainerAllocator>&) { return value(); }
};

} // namespace message_traits
} // namespace ros

namespace ros
{
namespace serialization
{

  template<class ContainerAllocator> struct Serializer< ::common_msgs::TaskInfo_<ContainerAllocator> >
  {
    template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
    {
      stream.next(m.task_id);
      stream.next(m.task_type);
      stream.next(m.sub_task_type);
    }

    ROS_DECLARE_ALLINONE_SERIALIZER
  }; // struct TaskInfo_

} // namespace serialization
} // namespace ros

namespace ros
{
namespace message_operations
{

template<class ContainerAllocator>
struct Printer< ::common_msgs::TaskInfo_<ContainerAllocator> >
{
  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::common_msgs::TaskInfo_<ContainerAllocator>& v)
  {
    s << indent << "task_id: ";
    Printer<std::basic_string<char, std::char_traits<char>, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<char>>>::stream(s, indent + "  ", v.task_id);
    s << indent << "task_type: ";
    Printer<int32_t>::stream(s, indent + "  ", v.task_type);
    s << indent << "sub_task_type: ";
    Printer<int32_t>::stream(s, indent + "  ", v.sub_task_type);
  }
};

} // namespace message_operations
} // namespace ros

#endif // COMMON_MSGS_MESSAGE_TASKINFO_H