/* Auto-generated by genmsg_cpp for file /work/a/ports/devel/ros/work/ros/test/test_rospy/msg/EmbedTest.msg */
#ifndef TEST_ROSPY_MESSAGE_EMBEDTEST_H
#define TEST_ROSPY_MESSAGE_EMBEDTEST_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"

#include "std_msgs/String.h"
#include "std_msgs/Int32.h"
#include "std_msgs/Int32.h"
#include "test_rospy/Val.h"
#include "test_rospy/Val.h"
#include "test_rospy/ArrayVal.h"

namespace test_rospy
{
template <class ContainerAllocator>
struct EmbedTest_ : public ros::Message
{
  typedef EmbedTest_<ContainerAllocator> Type;

  EmbedTest_()
  : str1()
  , int1()
  , ints()
  , val()
  , vals()
  , arrayval()
  {
  }

  EmbedTest_(const ContainerAllocator& _alloc)
  : str1(_alloc)
  , int1(_alloc)
  , ints(_alloc)
  , val(_alloc)
  , vals(_alloc)
  , arrayval(_alloc)
  {
  }

  typedef  ::std_msgs::String_<ContainerAllocator>  _str1_type;
   ::std_msgs::String_<ContainerAllocator>  str1;

  typedef  ::std_msgs::Int32_<ContainerAllocator>  _int1_type;
   ::std_msgs::Int32_<ContainerAllocator>  int1;

  typedef std::vector< ::std_msgs::Int32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::Int32_<ContainerAllocator> >::other >  _ints_type;
  std::vector< ::std_msgs::Int32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::Int32_<ContainerAllocator> >::other >  ints;

  typedef  ::test_rospy::Val_<ContainerAllocator>  _val_type;
   ::test_rospy::Val_<ContainerAllocator>  val;

  typedef std::vector< ::test_rospy::Val_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_rospy::Val_<ContainerAllocator> >::other >  _vals_type;
  std::vector< ::test_rospy::Val_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_rospy::Val_<ContainerAllocator> >::other >  vals;

  typedef std::vector< ::test_rospy::ArrayVal_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_rospy::ArrayVal_<ContainerAllocator> >::other >  _arrayval_type;
  std::vector< ::test_rospy::ArrayVal_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_rospy::ArrayVal_<ContainerAllocator> >::other >  arrayval;


  ROSCPP_DEPRECATED uint32_t get_ints_size() const { return (uint32_t)ints.size(); }
  ROSCPP_DEPRECATED void set_ints_size(uint32_t size) { ints.resize((size_t)size); }
  ROSCPP_DEPRECATED void get_ints_vec(std::vector< ::std_msgs::Int32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::Int32_<ContainerAllocator> >::other > & vec) const { vec = this->ints; }
  ROSCPP_DEPRECATED void set_ints_vec(const std::vector< ::std_msgs::Int32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::Int32_<ContainerAllocator> >::other > & vec) { this->ints = vec; }
  ROSCPP_DEPRECATED uint32_t get_vals_size() const { return (uint32_t)vals.size(); }
  ROSCPP_DEPRECATED void set_vals_size(uint32_t size) { vals.resize((size_t)size); }
  ROSCPP_DEPRECATED void get_vals_vec(std::vector< ::test_rospy::Val_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_rospy::Val_<ContainerAllocator> >::other > & vec) const { vec = this->vals; }
  ROSCPP_DEPRECATED void set_vals_vec(const std::vector< ::test_rospy::Val_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_rospy::Val_<ContainerAllocator> >::other > & vec) { this->vals = vec; }
  ROSCPP_DEPRECATED uint32_t get_arrayval_size() const { return (uint32_t)arrayval.size(); }
  ROSCPP_DEPRECATED void set_arrayval_size(uint32_t size) { arrayval.resize((size_t)size); }
  ROSCPP_DEPRECATED void get_arrayval_vec(std::vector< ::test_rospy::ArrayVal_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_rospy::ArrayVal_<ContainerAllocator> >::other > & vec) const { vec = this->arrayval; }
  ROSCPP_DEPRECATED void set_arrayval_vec(const std::vector< ::test_rospy::ArrayVal_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_rospy::ArrayVal_<ContainerAllocator> >::other > & vec) { this->arrayval = vec; }
private:
  static const char* __s_getDataType_() { return "test_rospy/EmbedTest"; }
public:
  ROSCPP_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }

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

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

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

private:
  static const char* __s_getMessageDefinition_() { return "std_msgs/String str1\n\
std_msgs/Int32 int1\n\
std_msgs/Int32[] ints\n\
Val val\n\
Val[] vals\n\
ArrayVal[] arrayval\n\
\n\
================================================================================\n\
MSG: std_msgs/String\n\
string data\n\
\n\
================================================================================\n\
MSG: std_msgs/Int32\n\
int32 data\n\
================================================================================\n\
MSG: test_rospy/Val\n\
string val\n\
================================================================================\n\
MSG: test_rospy/ArrayVal\n\
Val[] vals\n\
#Val[10] vals_fixed\n\
\n\
"; }
public:
  ROSCPP_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }

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

  ROSCPP_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
  {
    ros::serialization::OStream stream(write_ptr, 1000000000);
    ros::serialization::serialize(stream, str1);
    ros::serialization::serialize(stream, int1);
    ros::serialization::serialize(stream, ints);
    ros::serialization::serialize(stream, val);
    ros::serialization::serialize(stream, vals);
    ros::serialization::serialize(stream, arrayval);
    return stream.getData();
  }

  ROSCPP_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
  {
    ros::serialization::IStream stream(read_ptr, 1000000000);
    ros::serialization::deserialize(stream, str1);
    ros::serialization::deserialize(stream, int1);
    ros::serialization::deserialize(stream, ints);
    ros::serialization::deserialize(stream, val);
    ros::serialization::deserialize(stream, vals);
    ros::serialization::deserialize(stream, arrayval);
    return stream.getData();
  }

  ROSCPP_DEPRECATED virtual uint32_t serializationLength() const
  {
    uint32_t size = 0;
    size += ros::serialization::serializationLength(str1);
    size += ros::serialization::serializationLength(int1);
    size += ros::serialization::serializationLength(ints);
    size += ros::serialization::serializationLength(val);
    size += ros::serialization::serializationLength(vals);
    size += ros::serialization::serializationLength(arrayval);
    return size;
  }

  typedef boost::shared_ptr< ::test_rospy::EmbedTest_<ContainerAllocator> > Ptr;
  typedef boost::shared_ptr< ::test_rospy::EmbedTest_<ContainerAllocator>  const> ConstPtr;
}; // struct EmbedTest
typedef  ::test_rospy::EmbedTest_<std::allocator<void> > EmbedTest;

typedef boost::shared_ptr< ::test_rospy::EmbedTest> EmbedTestPtr;
typedef boost::shared_ptr< ::test_rospy::EmbedTest const> EmbedTestConstPtr;


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

} // namespace test_rospy

namespace ros
{
namespace message_traits
{
template<class ContainerAllocator>
struct MD5Sum< ::test_rospy::EmbedTest_<ContainerAllocator> > {
  static const char* value() 
  {
    return "f8b1fc6a0f70f541c9d6bd2886b9e249";
  }

  static const char* value(const  ::test_rospy::EmbedTest_<ContainerAllocator> &) { return value(); } 
  static const uint64_t static_value1 = 0xf8b1fc6a0f70f541ULL;
  static const uint64_t static_value2 = 0xc9d6bd2886b9e249ULL;
};

template<class ContainerAllocator>
struct DataType< ::test_rospy::EmbedTest_<ContainerAllocator> > {
  static const char* value() 
  {
    return "test_rospy/EmbedTest";
  }

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

template<class ContainerAllocator>
struct Definition< ::test_rospy::EmbedTest_<ContainerAllocator> > {
  static const char* value() 
  {
    return "std_msgs/String str1\n\
std_msgs/Int32 int1\n\
std_msgs/Int32[] ints\n\
Val val\n\
Val[] vals\n\
ArrayVal[] arrayval\n\
\n\
================================================================================\n\
MSG: std_msgs/String\n\
string data\n\
\n\
================================================================================\n\
MSG: std_msgs/Int32\n\
int32 data\n\
================================================================================\n\
MSG: test_rospy/Val\n\
string val\n\
================================================================================\n\
MSG: test_rospy/ArrayVal\n\
Val[] vals\n\
#Val[10] vals_fixed\n\
\n\
";
  }

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

} // namespace message_traits
} // namespace ros

namespace ros
{
namespace serialization
{

template<class ContainerAllocator> struct Serializer< ::test_rospy::EmbedTest_<ContainerAllocator> >
{
  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  {
    stream.next(m.str1);
    stream.next(m.int1);
    stream.next(m.ints);
    stream.next(m.val);
    stream.next(m.vals);
    stream.next(m.arrayval);
  }

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

namespace ros
{
namespace message_operations
{

template<class ContainerAllocator>
struct Printer< ::test_rospy::EmbedTest_<ContainerAllocator> >
{
  template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::test_rospy::EmbedTest_<ContainerAllocator> & v) 
  {
    s << indent << "str1: ";
s << std::endl;
    Printer< ::std_msgs::String_<ContainerAllocator> >::stream(s, indent + "  ", v.str1);
    s << indent << "int1: ";
s << std::endl;
    Printer< ::std_msgs::Int32_<ContainerAllocator> >::stream(s, indent + "  ", v.int1);
    s << indent << "ints[]" << std::endl;
    for (size_t i = 0; i < v.ints.size(); ++i)
    {
      s << indent << "  ints[" << i << "]: ";
      s << std::endl;
      s << indent;
      Printer< ::std_msgs::Int32_<ContainerAllocator> >::stream(s, indent + "    ", v.ints[i]);
    }
    s << indent << "val: ";
s << std::endl;
    Printer< ::test_rospy::Val_<ContainerAllocator> >::stream(s, indent + "  ", v.val);
    s << indent << "vals[]" << std::endl;
    for (size_t i = 0; i < v.vals.size(); ++i)
    {
      s << indent << "  vals[" << i << "]: ";
      s << std::endl;
      s << indent;
      Printer< ::test_rospy::Val_<ContainerAllocator> >::stream(s, indent + "    ", v.vals[i]);
    }
    s << indent << "arrayval[]" << std::endl;
    for (size_t i = 0; i < v.arrayval.size(); ++i)
    {
      s << indent << "  arrayval[" << i << "]: ";
      s << std::endl;
      s << indent;
      Printer< ::test_rospy::ArrayVal_<ContainerAllocator> >::stream(s, indent + "    ", v.arrayval[i]);
    }
  }
};


} // namespace message_operations
} // namespace ros

#endif // TEST_ROSPY_MESSAGE_EMBEDTEST_H

