$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-applanix_driver/doc_stacks/2013-03-01_14-05-02.457261/applanix_driver/applanix_msgs/msg/SaveRestoreControl.msg */ 00002 #ifndef APPLANIX_MSGS_MESSAGE_SAVERESTORECONTROL_H 00003 #define APPLANIX_MSGS_MESSAGE_SAVERESTORECONTROL_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 applanix_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct SaveRestoreControl_ { 00022 typedef SaveRestoreControl_<ContainerAllocator> Type; 00023 00024 SaveRestoreControl_() 00025 : transaction(0) 00026 , control(0) 00027 { 00028 } 00029 00030 SaveRestoreControl_(const ContainerAllocator& _alloc) 00031 : transaction(0) 00032 , control(0) 00033 { 00034 } 00035 00036 typedef uint16_t _transaction_type; 00037 uint16_t transaction; 00038 00039 typedef uint8_t _control_type; 00040 uint8_t control; 00041 00042 enum { CONTROL_NONE = 0 }; 00043 enum { CONTROL_SAVE_NVM = 1 }; 00044 enum { CONTROL_RESTORE_NVM = 2 }; 00045 enum { CONTROL_RESTORE_FACTORY = 3 }; 00046 00047 private: 00048 static const char* __s_getDataType_() { return "applanix_msgs/SaveRestoreControl"; } 00049 public: 00050 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00051 00052 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00053 00054 private: 00055 static const char* __s_getMD5Sum_() { return "3efdec76f093fc9ea602f0a5eb05f685"; } 00056 public: 00057 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00058 00059 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00060 00061 private: 00062 static const char* __s_getMessageDefinition_() { return "# Msg 54\n\ 00063 uint16 transaction\n\ 00064 \n\ 00065 uint8 CONTROL_NONE=0\n\ 00066 uint8 CONTROL_SAVE_NVM=1\n\ 00067 uint8 CONTROL_RESTORE_NVM=2\n\ 00068 uint8 CONTROL_RESTORE_FACTORY=3\n\ 00069 uint8 control\n\ 00070 \n\ 00071 "; } 00072 public: 00073 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00074 00075 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00076 00077 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00078 { 00079 ros::serialization::OStream stream(write_ptr, 1000000000); 00080 ros::serialization::serialize(stream, transaction); 00081 ros::serialization::serialize(stream, control); 00082 return stream.getData(); 00083 } 00084 00085 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00086 { 00087 ros::serialization::IStream stream(read_ptr, 1000000000); 00088 ros::serialization::deserialize(stream, transaction); 00089 ros::serialization::deserialize(stream, control); 00090 return stream.getData(); 00091 } 00092 00093 ROS_DEPRECATED virtual uint32_t serializationLength() const 00094 { 00095 uint32_t size = 0; 00096 size += ros::serialization::serializationLength(transaction); 00097 size += ros::serialization::serializationLength(control); 00098 return size; 00099 } 00100 00101 typedef boost::shared_ptr< ::applanix_msgs::SaveRestoreControl_<ContainerAllocator> > Ptr; 00102 typedef boost::shared_ptr< ::applanix_msgs::SaveRestoreControl_<ContainerAllocator> const> ConstPtr; 00103 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00104 }; // struct SaveRestoreControl 00105 typedef ::applanix_msgs::SaveRestoreControl_<std::allocator<void> > SaveRestoreControl; 00106 00107 typedef boost::shared_ptr< ::applanix_msgs::SaveRestoreControl> SaveRestoreControlPtr; 00108 typedef boost::shared_ptr< ::applanix_msgs::SaveRestoreControl const> SaveRestoreControlConstPtr; 00109 00110 00111 template<typename ContainerAllocator> 00112 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::SaveRestoreControl_<ContainerAllocator> & v) 00113 { 00114 ros::message_operations::Printer< ::applanix_msgs::SaveRestoreControl_<ContainerAllocator> >::stream(s, "", v); 00115 return s;} 00116 00117 } // namespace applanix_msgs 00118 00119 namespace ros 00120 { 00121 namespace message_traits 00122 { 00123 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::SaveRestoreControl_<ContainerAllocator> > : public TrueType {}; 00124 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::SaveRestoreControl_<ContainerAllocator> const> : public TrueType {}; 00125 template<class ContainerAllocator> 00126 struct MD5Sum< ::applanix_msgs::SaveRestoreControl_<ContainerAllocator> > { 00127 static const char* value() 00128 { 00129 return "3efdec76f093fc9ea602f0a5eb05f685"; 00130 } 00131 00132 static const char* value(const ::applanix_msgs::SaveRestoreControl_<ContainerAllocator> &) { return value(); } 00133 static const uint64_t static_value1 = 0x3efdec76f093fc9eULL; 00134 static const uint64_t static_value2 = 0xa602f0a5eb05f685ULL; 00135 }; 00136 00137 template<class ContainerAllocator> 00138 struct DataType< ::applanix_msgs::SaveRestoreControl_<ContainerAllocator> > { 00139 static const char* value() 00140 { 00141 return "applanix_msgs/SaveRestoreControl"; 00142 } 00143 00144 static const char* value(const ::applanix_msgs::SaveRestoreControl_<ContainerAllocator> &) { return value(); } 00145 }; 00146 00147 template<class ContainerAllocator> 00148 struct Definition< ::applanix_msgs::SaveRestoreControl_<ContainerAllocator> > { 00149 static const char* value() 00150 { 00151 return "# Msg 54\n\ 00152 uint16 transaction\n\ 00153 \n\ 00154 uint8 CONTROL_NONE=0\n\ 00155 uint8 CONTROL_SAVE_NVM=1\n\ 00156 uint8 CONTROL_RESTORE_NVM=2\n\ 00157 uint8 CONTROL_RESTORE_FACTORY=3\n\ 00158 uint8 control\n\ 00159 \n\ 00160 "; 00161 } 00162 00163 static const char* value(const ::applanix_msgs::SaveRestoreControl_<ContainerAllocator> &) { return value(); } 00164 }; 00165 00166 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::SaveRestoreControl_<ContainerAllocator> > : public TrueType {}; 00167 } // namespace message_traits 00168 } // namespace ros 00169 00170 namespace ros 00171 { 00172 namespace serialization 00173 { 00174 00175 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::SaveRestoreControl_<ContainerAllocator> > 00176 { 00177 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00178 { 00179 stream.next(m.transaction); 00180 stream.next(m.control); 00181 } 00182 00183 ROS_DECLARE_ALLINONE_SERIALIZER; 00184 }; // struct SaveRestoreControl_ 00185 } // namespace serialization 00186 } // namespace ros 00187 00188 namespace ros 00189 { 00190 namespace message_operations 00191 { 00192 00193 template<class ContainerAllocator> 00194 struct Printer< ::applanix_msgs::SaveRestoreControl_<ContainerAllocator> > 00195 { 00196 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::SaveRestoreControl_<ContainerAllocator> & v) 00197 { 00198 s << indent << "transaction: "; 00199 Printer<uint16_t>::stream(s, indent + " ", v.transaction); 00200 s << indent << "control: "; 00201 Printer<uint8_t>::stream(s, indent + " ", v.control); 00202 } 00203 }; 00204 00205 00206 } // namespace message_operations 00207 } // namespace ros 00208 00209 #endif // APPLANIX_MSGS_MESSAGE_SAVERESTORECONTROL_H 00210