ReadWriteHelper.h
Go to the documentation of this file.
00001 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
00002 
00003 // -- BEGIN LICENSE BLOCK ----------------------------------------------
00004 
00024 // -- END LICENSE BLOCK ------------------------------------------------
00025 
00026 //----------------------------------------------------------------------
00033 //----------------------------------------------------------------------
00034 
00035 #ifndef SICK_SAFETYSCANNERS_DATA_PROCESSING_READWRITEHELPER_H
00036 #define SICK_SAFETYSCANNERS_DATA_PROCESSING_READWRITEHELPER_H
00037 
00038 #include <stdint.h>
00039 
00040 namespace sick {
00041 namespace data_processing {
00042 
00046 class ReadWriteHelper
00047 {
00048 public:
00052   ReadWriteHelper();
00053 
00061   void writeuint8_t(uint8_t*& buf, const uint8_t v, const uint16_t offset) const;
00062 
00070   void writeuint8_tBigEndian(uint8_t*& buf, const uint8_t v, const uint16_t offset) const;
00071 
00079   void writeuint8_tLittleEndian(uint8_t*& buf, const uint8_t v, const uint16_t offset) const;
00080 
00088   void writeint8_t(uint8_t*& buf, const uint8_t v, const uint16_t offset) const;
00089 
00097   void writeint8_tBigEndian(uint8_t*& buf, const uint8_t v, const uint16_t offset) const;
00098 
00106   void writeint8_tLittleEndian(uint8_t*& buf, const uint8_t v, const uint16_t offset) const;
00107 
00115   void writeuint16_tBigEndian(uint8_t*& buf, const uint16_t v, const uint16_t offset) const;
00116 
00124   void writeuint16_tLittleEndian(uint8_t*& buf, const uint16_t v, const uint16_t offset) const;
00125 
00133   void writeuint32_tBigEndian(uint8_t*& buf, const uint32_t v, const uint16_t offset) const;
00141   void writeuint32_tLittleEndian(uint8_t*& buf, const uint32_t v, const uint16_t offset) const;
00142 
00151   uint8_t readuint8_t(const uint8_t*& buf, const uint16_t offset) const;
00152 
00161   uint8_t readuint8_tBigEndian(const uint8_t*& buf, const uint16_t offset) const;
00162 
00171   uint8_t readuint8_tLittleEndian(const uint8_t*& buf, const uint16_t offset) const;
00172 
00181   int8_t readint8_t(const uint8_t*& buffer, const uint16_t offset) const;
00182 
00191   int8_t readint8_tBigEndian(const uint8_t*& buf, const uint16_t offset) const;
00192 
00201   int8_t readint8_tLittleEndian(const uint8_t*& buf, const uint16_t offset) const;
00202 
00211   uint16_t readuint16_tBigEndian(const uint8_t*& buf, const uint16_t offset) const;
00212 
00221   uint16_t readuint16_tLittleEndian(const uint8_t*& buf, const uint16_t offset) const;
00222 
00231   int16_t readint16_tBigEndian(const uint8_t*& buf, const uint16_t offset) const;
00232 
00241   int16_t readint16_tLittleEndian(const uint8_t*& buf, const uint16_t offset) const;
00242 
00251   uint32_t readuint32_tBigEndian(const uint8_t*& buf, const uint16_t offset) const;
00252 
00261   uint32_t readuint32_tLittleEndian(const uint8_t*& buf, const uint16_t offset) const;
00262 
00271   int32_t readint32_tBigEndian(const uint8_t*& buf, const uint16_t offset) const;
00272 
00281   int32_t readint32_tLittleEndian(const uint8_t*& buf, const uint16_t offset) const;
00282 };
00283 
00284 } // namespace data_processing
00285 } // namespace sick
00286 
00287 #endif // SICK_SAFETYSCANNERS_DATA_PROCESSING_READWRITEHELPER_H


sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Tue May 7 2019 03:27:36