// Generated by gencpp from file uavpos_ros/genom_state_task.msg
// DO NOT EDIT!


#ifndef UAVPOS_ROS_MESSAGE_GENOM_STATE_TASK_H
#define UAVPOS_ROS_MESSAGE_GENOM_STATE_TASK_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>

#include <uavpos_ros/genom_state_rusage.h>
#include <uavpos_ros/genom_state_activity.h>

namespace uavpos_ros
{
template <class ContainerAllocator>
struct genom_state_task_
{
  typedef genom_state_task_<ContainerAllocator> Type;

  genom_state_task_()
    : name()
    , rusage()
    , activity()  {
    }
  genom_state_task_(const ContainerAllocator& _alloc)
    : name(_alloc)
    , rusage(_alloc)
    , activity(_alloc)  {
  (void)_alloc;
    }



   typedef std::basic_string<char, std::char_traits<char>, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<char>> _name_type;
  _name_type name;

   typedef  ::uavpos_ros::genom_state_rusage_<ContainerAllocator>  _rusage_type;
  _rusage_type rusage;

   typedef std::vector< ::uavpos_ros::genom_state_activity_<ContainerAllocator> , typename std::allocator_traits<ContainerAllocator>::template rebind_alloc< ::uavpos_ros::genom_state_activity_<ContainerAllocator> >> _activity_type;
  _activity_type activity;





  typedef boost::shared_ptr< ::uavpos_ros::genom_state_task_<ContainerAllocator> > Ptr;
  typedef boost::shared_ptr< ::uavpos_ros::genom_state_task_<ContainerAllocator> const> ConstPtr;

}; // struct genom_state_task_

typedef ::uavpos_ros::genom_state_task_<std::allocator<void> > genom_state_task;

typedef boost::shared_ptr< ::uavpos_ros::genom_state_task > genom_state_taskPtr;
typedef boost::shared_ptr< ::uavpos_ros::genom_state_task const> genom_state_taskConstPtr;

// constants requiring out of line definition



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


template<typename ContainerAllocator1, typename ContainerAllocator2>
bool operator==(const ::uavpos_ros::genom_state_task_<ContainerAllocator1> & lhs, const ::uavpos_ros::genom_state_task_<ContainerAllocator2> & rhs)
{
  return lhs.name == rhs.name &&
    lhs.rusage == rhs.rusage &&
    lhs.activity == rhs.activity;
}

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


} // namespace uavpos_ros

namespace ros
{
namespace message_traits
{





template <class ContainerAllocator>
struct IsMessage< ::uavpos_ros::genom_state_task_<ContainerAllocator> >
  : TrueType
  { };

template <class ContainerAllocator>
struct IsMessage< ::uavpos_ros::genom_state_task_<ContainerAllocator> const>
  : TrueType
  { };

template <class ContainerAllocator>
struct IsFixedSize< ::uavpos_ros::genom_state_task_<ContainerAllocator> >
  : FalseType
  { };

template <class ContainerAllocator>
struct IsFixedSize< ::uavpos_ros::genom_state_task_<ContainerAllocator> const>
  : FalseType
  { };

template <class ContainerAllocator>
struct HasHeader< ::uavpos_ros::genom_state_task_<ContainerAllocator> >
  : FalseType
  { };

template <class ContainerAllocator>
struct HasHeader< ::uavpos_ros::genom_state_task_<ContainerAllocator> const>
  : FalseType
  { };


template<class ContainerAllocator>
struct MD5Sum< ::uavpos_ros::genom_state_task_<ContainerAllocator> >
{
  static const char* value()
  {
    return "b6ebe21c3b706530495c8ef9b94c0cf3";
  }

  static const char* value(const ::uavpos_ros::genom_state_task_<ContainerAllocator>&) { return value(); }
  static const uint64_t static_value1 = 0xb6ebe21c3b706530ULL;
  static const uint64_t static_value2 = 0x495c8ef9b94c0cf3ULL;
};

template<class ContainerAllocator>
struct DataType< ::uavpos_ros::genom_state_task_<ContainerAllocator> >
{
  static const char* value()
  {
    return "uavpos_ros/genom_state_task";
  }

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

template<class ContainerAllocator>
struct Definition< ::uavpos_ros::genom_state_task_<ContainerAllocator> >
{
  static const char* value()
  {
    return "# IDL struct ::genom::state::task\n"
"string name\n"
"genom_state_rusage rusage\n"
"genom_state_activity[] activity\n"
"\n"
"================================================================================\n"
"MSG: uavpos_ros/genom_state_rusage\n"
"# IDL struct ::genom::state::rusage\n"
"uint32 cycles\n"
"genom_state_stats timings\n"
"genom_state_stats load\n"
"\n"
"================================================================================\n"
"MSG: uavpos_ros/genom_state_stats\n"
"# IDL struct ::genom::state::stats\n"
"float32 last\n"
"float32 max\n"
"float32 avg\n"
"\n"
"================================================================================\n"
"MSG: uavpos_ros/genom_state_activity\n"
"# IDL struct ::genom::state::activity\n"
"uint32 id\n"
"string name\n"
;
  }

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

} // namespace message_traits
} // namespace ros

namespace ros
{
namespace serialization
{

  template<class ContainerAllocator> struct Serializer< ::uavpos_ros::genom_state_task_<ContainerAllocator> >
  {
    template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
    {
      stream.next(m.name);
      stream.next(m.rusage);
      stream.next(m.activity);
    }

    ROS_DECLARE_ALLINONE_SERIALIZER
  }; // struct genom_state_task_

} // namespace serialization
} // namespace ros

namespace ros
{
namespace message_operations
{

template<class ContainerAllocator>
struct Printer< ::uavpos_ros::genom_state_task_<ContainerAllocator> >
{
  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::uavpos_ros::genom_state_task_<ContainerAllocator>& v)
  {
    if (false || !indent.empty())
      s << std::endl;
    s << indent << "name: ";
    Printer<std::basic_string<char, std::char_traits<char>, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<char>>>::stream(s, indent + "  ", v.name);
    if (true || !indent.empty())
      s << std::endl;
    s << indent << "rusage: ";
    Printer< ::uavpos_ros::genom_state_rusage_<ContainerAllocator> >::stream(s, indent + "  ", v.rusage);
    if (true || !indent.empty())
      s << std::endl;
    s << indent << "activity: ";
    if (v.activity.empty() || false)
      s << "[";
    for (size_t i = 0; i < v.activity.size(); ++i)
    {
      if (false && i > 0)
        s << ", ";
      else if (!false)
        s << std::endl << indent << "  -";
      Printer< ::uavpos_ros::genom_state_activity_<ContainerAllocator> >::stream(s, false ? std::string() : indent + "    ", v.activity[i]);
    }
    if (v.activity.empty() || false)
      s << "]";
  }
};

} // namespace message_operations
} // namespace ros

#endif // UAVPOS_ROS_MESSAGE_GENOM_STATE_TASK_H
