/* Auto-generated by genmsg_cpp for file /work/a/ports/devel/ros/work/ros/test/test_roslib/msg/FillEmbedTime.msg */
#ifndef TEST_ROSLIB_MESSAGE_FILLEMBEDTIME_H
#define TEST_ROSLIB_MESSAGE_FILLEMBEDTIME_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/String.h"

namespace test_roslib
{
template <class ContainerAllocator>
struct FillEmbedTime_ : public ros::Message
{
  typedef FillEmbedTime_<ContainerAllocator> Type;

  FillEmbedTime_()
  : t()
  , d()
  , str_msg()
  , str_msg_array()
  , i32(0)
  {
  }

  FillEmbedTime_(const ContainerAllocator& _alloc)
  : t()
  , d()
  , str_msg(_alloc)
  , str_msg_array(_alloc)
  , i32(0)
  {
  }

  typedef ros::Time _t_type;
  ros::Time t;

  typedef ros::Duration _d_type;
  ros::Duration d;

  typedef  ::std_msgs::String_<ContainerAllocator>  _str_msg_type;
   ::std_msgs::String_<ContainerAllocator>  str_msg;

  typedef std::vector< ::std_msgs::String_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::String_<ContainerAllocator> >::other >  _str_msg_array_type;
  std::vector< ::std_msgs::String_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::String_<ContainerAllocator> >::other >  str_msg_array;

  typedef int32_t _i32_type;
  int32_t i32;


  ROSCPP_DEPRECATED uint32_t get_str_msg_array_size() const { return (uint32_t)str_msg_array.size(); }
  ROSCPP_DEPRECATED void set_str_msg_array_size(uint32_t size) { str_msg_array.resize((size_t)size); }
  ROSCPP_DEPRECATED void get_str_msg_array_vec(std::vector< ::std_msgs::String_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::String_<ContainerAllocator> >::other > & vec) const { vec = this->str_msg_array; }
  ROSCPP_DEPRECATED void set_str_msg_array_vec(const std::vector< ::std_msgs::String_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::String_<ContainerAllocator> >::other > & vec) { this->str_msg_array = vec; }
private:
  static const char* __s_getDataType_() { return "test_roslib/FillEmbedTime"; }
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 "90e08039be001a899b8c20e680c289b0"; }
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 "time t\n\
duration d\n\
std_msgs/String str_msg\n\
std_msgs/String[] str_msg_array\n\
int32 i32\n\
================================================================================\n\
MSG: std_msgs/String\n\
string data\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, t);
    ros::serialization::serialize(stream, d);
    ros::serialization::serialize(stream, str_msg);
    ros::serialization::serialize(stream, str_msg_array);
    ros::serialization::serialize(stream, i32);
    return stream.getData();
  }

  ROSCPP_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
  {
    ros::serialization::IStream stream(read_ptr, 1000000000);
    ros::serialization::deserialize(stream, t);
    ros::serialization::deserialize(stream, d);
    ros::serialization::deserialize(stream, str_msg);
    ros::serialization::deserialize(stream, str_msg_array);
    ros::serialization::deserialize(stream, i32);
    return stream.getData();
  }

  ROSCPP_DEPRECATED virtual uint32_t serializationLength() const
  {
    uint32_t size = 0;
    size += ros::serialization::serializationLength(t);
    size += ros::serialization::serializationLength(d);
    size += ros::serialization::serializationLength(str_msg);
    size += ros::serialization::serializationLength(str_msg_array);
    size += ros::serialization::serializationLength(i32);
    return size;
  }

  typedef boost::shared_ptr< ::test_roslib::FillEmbedTime_<ContainerAllocator> > Ptr;
  typedef boost::shared_ptr< ::test_roslib::FillEmbedTime_<ContainerAllocator>  const> ConstPtr;
}; // struct FillEmbedTime
typedef  ::test_roslib::FillEmbedTime_<std::allocator<void> > FillEmbedTime;

typedef boost::shared_ptr< ::test_roslib::FillEmbedTime> FillEmbedTimePtr;
typedef boost::shared_ptr< ::test_roslib::FillEmbedTime const> FillEmbedTimeConstPtr;


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

} // namespace test_roslib

namespace ros
{
namespace message_traits
{
template<class ContainerAllocator>
struct MD5Sum< ::test_roslib::FillEmbedTime_<ContainerAllocator> > {
  static const char* value() 
  {
    return "90e08039be001a899b8c20e680c289b0";
  }

  static const char* value(const  ::test_roslib::FillEmbedTime_<ContainerAllocator> &) { return value(); } 
  static const uint64_t static_value1 = 0x90e08039be001a89ULL;
  static const uint64_t static_value2 = 0x9b8c20e680c289b0ULL;
};

template<class ContainerAllocator>
struct DataType< ::test_roslib::FillEmbedTime_<ContainerAllocator> > {
  static const char* value() 
  {
    return "test_roslib/FillEmbedTime";
  }

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

template<class ContainerAllocator>
struct Definition< ::test_roslib::FillEmbedTime_<ContainerAllocator> > {
  static const char* value() 
  {
    return "time t\n\
duration d\n\
std_msgs/String str_msg\n\
std_msgs/String[] str_msg_array\n\
int32 i32\n\
================================================================================\n\
MSG: std_msgs/String\n\
string data\n\
\n\
";
  }

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

} // namespace message_traits
} // namespace ros

namespace ros
{
namespace serialization
{

template<class ContainerAllocator> struct Serializer< ::test_roslib::FillEmbedTime_<ContainerAllocator> >
{
  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  {
    stream.next(m.t);
    stream.next(m.d);
    stream.next(m.str_msg);
    stream.next(m.str_msg_array);
    stream.next(m.i32);
  }

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

namespace ros
{
namespace message_operations
{

template<class ContainerAllocator>
struct Printer< ::test_roslib::FillEmbedTime_<ContainerAllocator> >
{
  template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::test_roslib::FillEmbedTime_<ContainerAllocator> & v) 
  {
    s << indent << "t: ";
    Printer<ros::Time>::stream(s, indent + "  ", v.t);
    s << indent << "d: ";
    Printer<ros::Duration>::stream(s, indent + "  ", v.d);
    s << indent << "str_msg: ";
s << std::endl;
    Printer< ::std_msgs::String_<ContainerAllocator> >::stream(s, indent + "  ", v.str_msg);
    s << indent << "str_msg_array[]" << std::endl;
    for (size_t i = 0; i < v.str_msg_array.size(); ++i)
    {
      s << indent << "  str_msg_array[" << i << "]: ";
      s << std::endl;
      s << indent;
      Printer< ::std_msgs::String_<ContainerAllocator> >::stream(s, indent + "    ", v.str_msg_array[i]);
    }
    s << indent << "i32: ";
    Printer<int32_t>::stream(s, indent + "  ", v.i32);
  }
};


} // namespace message_operations
} // namespace ros

#endif // TEST_ROSLIB_MESSAGE_FILLEMBEDTIME_H

