/* Auto-generated by genmsg_cpp for file /work/a/ports/devel/ros-common/work/common-1.4.3/actionlib/msg/TestRequestGoal.msg */
#ifndef ACTIONLIB_MESSAGE_TESTREQUESTGOAL_H
#define ACTIONLIB_MESSAGE_TESTREQUESTGOAL_H
#include <string>
#include <vector>
#include <ostream>
#include "ros/serialization.h"
#include "ros/builtin_message_traits.h"
#include "ros/message_operations.h"
#include "ros/message.h"
#include "ros/time.h"


namespace actionlib
{
template <class ContainerAllocator>
struct TestRequestGoal_ : public ros::Message
{
  typedef TestRequestGoal_<ContainerAllocator> Type;

  TestRequestGoal_()
  : terminate_status(0)
  , ignore_cancel(false)
  , result_text()
  , the_result(0)
  , is_simple_client(false)
  , delay_accept()
  , delay_terminate()
  , pause_status()
  {
  }

  TestRequestGoal_(const ContainerAllocator& _alloc)
  : terminate_status(0)
  , ignore_cancel(false)
  , result_text(_alloc)
  , the_result(0)
  , is_simple_client(false)
  , delay_accept()
  , delay_terminate()
  , pause_status()
  {
  }

  typedef int32_t _terminate_status_type;
  int32_t terminate_status;

  typedef uint8_t _ignore_cancel_type;
  uint8_t ignore_cancel;

  typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _result_text_type;
  std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  result_text;

  typedef int32_t _the_result_type;
  int32_t the_result;

  typedef uint8_t _is_simple_client_type;
  uint8_t is_simple_client;

  typedef ros::Duration _delay_accept_type;
  ros::Duration delay_accept;

  typedef ros::Duration _delay_terminate_type;
  ros::Duration delay_terminate;

  typedef ros::Duration _pause_status_type;
  ros::Duration pause_status;

  enum { TERMINATE_SUCCESS = 0 };
  enum { TERMINATE_ABORTED = 1 };
  enum { TERMINATE_REJECTED = 2 };
  enum { TERMINATE_LOSE = 3 };
  enum { TERMINATE_DROP = 4 };
  enum { TERMINATE_EXCEPTION = 5 };

private:
  static const char* __s_getDataType_() { return "actionlib/TestRequestGoal"; }
public:
  ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }

  ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }

private:
  static const char* __s_getMD5Sum_() { return "db5d00ba98302d6c6dd3737e9a03ceea"; }
public:
  ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }

  ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }

private:
  static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
int32 TERMINATE_SUCCESS = 0\n\
int32 TERMINATE_ABORTED = 1\n\
int32 TERMINATE_REJECTED = 2\n\
int32 TERMINATE_LOSE = 3\n\
int32 TERMINATE_DROP = 4\n\
int32 TERMINATE_EXCEPTION = 5\n\
int32 terminate_status\n\
bool ignore_cancel  # If true, ignores requests to cancel\n\
string result_text\n\
int32 the_result    # Desired value for the_result in the Result\n\
bool is_simple_client\n\
duration delay_accept  # Delays accepting the goal by this amount of time\n\
duration delay_terminate  # Delays terminating for this amount of time\n\
duration pause_status  # Pauses the status messages for this amount of time\n\
\n\
"; }
public:
  ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }

  ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }

  ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
  {
    ros::serialization::OStream stream(write_ptr, 1000000000);
    ros::serialization::serialize(stream, terminate_status);
    ros::serialization::serialize(stream, ignore_cancel);
    ros::serialization::serialize(stream, result_text);
    ros::serialization::serialize(stream, the_result);
    ros::serialization::serialize(stream, is_simple_client);
    ros::serialization::serialize(stream, delay_accept);
    ros::serialization::serialize(stream, delay_terminate);
    ros::serialization::serialize(stream, pause_status);
    return stream.getData();
  }

  ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
  {
    ros::serialization::IStream stream(read_ptr, 1000000000);
    ros::serialization::deserialize(stream, terminate_status);
    ros::serialization::deserialize(stream, ignore_cancel);
    ros::serialization::deserialize(stream, result_text);
    ros::serialization::deserialize(stream, the_result);
    ros::serialization::deserialize(stream, is_simple_client);
    ros::serialization::deserialize(stream, delay_accept);
    ros::serialization::deserialize(stream, delay_terminate);
    ros::serialization::deserialize(stream, pause_status);
    return stream.getData();
  }

  ROS_DEPRECATED virtual uint32_t serializationLength() const
  {
    uint32_t size = 0;
    size += ros::serialization::serializationLength(terminate_status);
    size += ros::serialization::serializationLength(ignore_cancel);
    size += ros::serialization::serializationLength(result_text);
    size += ros::serialization::serializationLength(the_result);
    size += ros::serialization::serializationLength(is_simple_client);
    size += ros::serialization::serializationLength(delay_accept);
    size += ros::serialization::serializationLength(delay_terminate);
    size += ros::serialization::serializationLength(pause_status);
    return size;
  }

  typedef boost::shared_ptr< ::actionlib::TestRequestGoal_<ContainerAllocator> > Ptr;
  typedef boost::shared_ptr< ::actionlib::TestRequestGoal_<ContainerAllocator>  const> ConstPtr;
}; // struct TestRequestGoal
typedef  ::actionlib::TestRequestGoal_<std::allocator<void> > TestRequestGoal;

typedef boost::shared_ptr< ::actionlib::TestRequestGoal> TestRequestGoalPtr;
typedef boost::shared_ptr< ::actionlib::TestRequestGoal const> TestRequestGoalConstPtr;


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

} // namespace actionlib

namespace ros
{
namespace message_traits
{
template<class ContainerAllocator>
struct MD5Sum< ::actionlib::TestRequestGoal_<ContainerAllocator> > {
  static const char* value() 
  {
    return "db5d00ba98302d6c6dd3737e9a03ceea";
  }

  static const char* value(const  ::actionlib::TestRequestGoal_<ContainerAllocator> &) { return value(); } 
  static const uint64_t static_value1 = 0xdb5d00ba98302d6cULL;
  static const uint64_t static_value2 = 0x6dd3737e9a03ceeaULL;
};

template<class ContainerAllocator>
struct DataType< ::actionlib::TestRequestGoal_<ContainerAllocator> > {
  static const char* value() 
  {
    return "actionlib/TestRequestGoal";
  }

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

template<class ContainerAllocator>
struct Definition< ::actionlib::TestRequestGoal_<ContainerAllocator> > {
  static const char* value() 
  {
    return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
int32 TERMINATE_SUCCESS = 0\n\
int32 TERMINATE_ABORTED = 1\n\
int32 TERMINATE_REJECTED = 2\n\
int32 TERMINATE_LOSE = 3\n\
int32 TERMINATE_DROP = 4\n\
int32 TERMINATE_EXCEPTION = 5\n\
int32 terminate_status\n\
bool ignore_cancel  # If true, ignores requests to cancel\n\
string result_text\n\
int32 the_result    # Desired value for the_result in the Result\n\
bool is_simple_client\n\
duration delay_accept  # Delays accepting the goal by this amount of time\n\
duration delay_terminate  # Delays terminating for this amount of time\n\
duration pause_status  # Pauses the status messages for this amount of time\n\
\n\
";
  }

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

} // namespace message_traits
} // namespace ros

namespace ros
{
namespace serialization
{

template<class ContainerAllocator> struct Serializer< ::actionlib::TestRequestGoal_<ContainerAllocator> >
{
  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  {
    stream.next(m.terminate_status);
    stream.next(m.ignore_cancel);
    stream.next(m.result_text);
    stream.next(m.the_result);
    stream.next(m.is_simple_client);
    stream.next(m.delay_accept);
    stream.next(m.delay_terminate);
    stream.next(m.pause_status);
  }

  ROS_DECLARE_ALLINONE_SERIALIZER;
}; // struct TestRequestGoal_
} // namespace serialization
} // namespace ros

namespace ros
{
namespace message_operations
{

template<class ContainerAllocator>
struct Printer< ::actionlib::TestRequestGoal_<ContainerAllocator> >
{
  template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::actionlib::TestRequestGoal_<ContainerAllocator> & v) 
  {
    s << indent << "terminate_status: ";
    Printer<int32_t>::stream(s, indent + "  ", v.terminate_status);
    s << indent << "ignore_cancel: ";
    Printer<uint8_t>::stream(s, indent + "  ", v.ignore_cancel);
    s << indent << "result_text: ";
    Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.result_text);
    s << indent << "the_result: ";
    Printer<int32_t>::stream(s, indent + "  ", v.the_result);
    s << indent << "is_simple_client: ";
    Printer<uint8_t>::stream(s, indent + "  ", v.is_simple_client);
    s << indent << "delay_accept: ";
    Printer<ros::Duration>::stream(s, indent + "  ", v.delay_accept);
    s << indent << "delay_terminate: ";
    Printer<ros::Duration>::stream(s, indent + "  ", v.delay_terminate);
    s << indent << "pause_status: ";
    Printer<ros::Duration>::stream(s, indent + "  ", v.pause_status);
  }
};


} // namespace message_operations
} // namespace ros

#endif // ACTIONLIB_MESSAGE_TESTREQUESTGOAL_H

