Go to the documentation of this file.00001
00002 #ifndef RVE_MSGS_MESSAGE_NVPERFCOUNTER_H
00003 #define RVE_MSGS_MESSAGE_NVPERFCOUNTER_H
00004 #include <string>
00005 #include <vector>
00006 #include <map>
00007 #include <ostream>
00008 #include "ros/serialization.h"
00009 #include "ros/builtin_message_traits.h"
00010 #include "ros/message_operations.h"
00011 #include "ros/time.h"
00012
00013 #include "ros/macros.h"
00014
00015 #include "ros/assert.h"
00016
00017
00018 namespace rve_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct NVPerfCounter_ {
00022 typedef NVPerfCounter_<ContainerAllocator> Type;
00023
00024 NVPerfCounter_()
00025 : name()
00026 , value(0)
00027 , cycles(0)
00028 , value_as_pct(0.0)
00029 {
00030 }
00031
00032 NVPerfCounter_(const ContainerAllocator& _alloc)
00033 : name(_alloc)
00034 , value(0)
00035 , cycles(0)
00036 , value_as_pct(0.0)
00037 {
00038 }
00039
00040 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type;
00041 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > name;
00042
00043 typedef uint64_t _value_type;
00044 uint64_t value;
00045
00046 typedef uint64_t _cycles_type;
00047 uint64_t cycles;
00048
00049 typedef double _value_as_pct_type;
00050 double value_as_pct;
00051
00052
00053 typedef boost::shared_ptr< ::rve_msgs::NVPerfCounter_<ContainerAllocator> > Ptr;
00054 typedef boost::shared_ptr< ::rve_msgs::NVPerfCounter_<ContainerAllocator> const> ConstPtr;
00055 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00056 };
00057 typedef ::rve_msgs::NVPerfCounter_<std::allocator<void> > NVPerfCounter;
00058
00059 typedef boost::shared_ptr< ::rve_msgs::NVPerfCounter> NVPerfCounterPtr;
00060 typedef boost::shared_ptr< ::rve_msgs::NVPerfCounter const> NVPerfCounterConstPtr;
00061
00062
00063 template<typename ContainerAllocator>
00064 std::ostream& operator<<(std::ostream& s, const ::rve_msgs::NVPerfCounter_<ContainerAllocator> & v)
00065 {
00066 ros::message_operations::Printer< ::rve_msgs::NVPerfCounter_<ContainerAllocator> >::stream(s, "", v);
00067 return s;}
00068
00069 }
00070
00071 namespace ros
00072 {
00073 namespace message_traits
00074 {
00075 template<class ContainerAllocator> struct IsMessage< ::rve_msgs::NVPerfCounter_<ContainerAllocator> > : public TrueType {};
00076 template<class ContainerAllocator> struct IsMessage< ::rve_msgs::NVPerfCounter_<ContainerAllocator> const> : public TrueType {};
00077 template<class ContainerAllocator>
00078 struct MD5Sum< ::rve_msgs::NVPerfCounter_<ContainerAllocator> > {
00079 static const char* value()
00080 {
00081 return "3d667dbed14291a3e9dc320a09c15f64";
00082 }
00083
00084 static const char* value(const ::rve_msgs::NVPerfCounter_<ContainerAllocator> &) { return value(); }
00085 static const uint64_t static_value1 = 0x3d667dbed14291a3ULL;
00086 static const uint64_t static_value2 = 0xe9dc320a09c15f64ULL;
00087 };
00088
00089 template<class ContainerAllocator>
00090 struct DataType< ::rve_msgs::NVPerfCounter_<ContainerAllocator> > {
00091 static const char* value()
00092 {
00093 return "rve_msgs/NVPerfCounter";
00094 }
00095
00096 static const char* value(const ::rve_msgs::NVPerfCounter_<ContainerAllocator> &) { return value(); }
00097 };
00098
00099 template<class ContainerAllocator>
00100 struct Definition< ::rve_msgs::NVPerfCounter_<ContainerAllocator> > {
00101 static const char* value()
00102 {
00103 return "string name\n\
00104 uint64 value\n\
00105 uint64 cycles\n\
00106 float64 value_as_pct\n\
00107 ";
00108 }
00109
00110 static const char* value(const ::rve_msgs::NVPerfCounter_<ContainerAllocator> &) { return value(); }
00111 };
00112
00113 }
00114 }
00115
00116 namespace ros
00117 {
00118 namespace serialization
00119 {
00120
00121 template<class ContainerAllocator> struct Serializer< ::rve_msgs::NVPerfCounter_<ContainerAllocator> >
00122 {
00123 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00124 {
00125 stream.next(m.name);
00126 stream.next(m.value);
00127 stream.next(m.cycles);
00128 stream.next(m.value_as_pct);
00129 }
00130
00131 ROS_DECLARE_ALLINONE_SERIALIZER;
00132 };
00133 }
00134 }
00135
00136 namespace ros
00137 {
00138 namespace message_operations
00139 {
00140
00141 template<class ContainerAllocator>
00142 struct Printer< ::rve_msgs::NVPerfCounter_<ContainerAllocator> >
00143 {
00144 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::rve_msgs::NVPerfCounter_<ContainerAllocator> & v)
00145 {
00146 s << indent << "name: ";
00147 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name);
00148 s << indent << "value: ";
00149 Printer<uint64_t>::stream(s, indent + " ", v.value);
00150 s << indent << "cycles: ";
00151 Printer<uint64_t>::stream(s, indent + " ", v.cycles);
00152 s << indent << "value_as_pct: ";
00153 Printer<double>::stream(s, indent + " ", v.value_as_pct);
00154 }
00155 };
00156
00157
00158 }
00159 }
00160
00161 #endif // RVE_MSGS_MESSAGE_NVPERFCOUNTER_H
00162