Changeset 76 in flair-dev for trunk/include/FlairCore/io_data.h


Ignore:
Timestamp:
Sep 12, 2018, 5:43:31 PM (2 years ago)
Author:
Sanahuja Guillaume
Message:

m

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/FlairCore/io_data.h

    r68 r76  
    176176
    177177  virtual DataType const &GetDataType() const = 0;
     178 
     179  /*!
     180  * \brief Raw write datas
     181  *
     182  * Copy the source to the internal datas. Source must be of the corresponding size.
     183  *
     184  * \param src source buffer
     185  */
     186  virtual void RawWrite(char *src)  {};//todo put pure virtual
     187 
     188  /*!
     189  * \brief Raw read datas
     190  *
     191  * This method is automatically called by IODevice::ProcessUpdate to log
     192  * io_data datas. \n
     193  * This method must be reimplemented, in order to copy the datas to the logs.
     194  * Copy the internal datas to destination. Destination must be of the corresponding size.
     195  *
     196  * \param dst destination buffer
     197  */
     198  virtual void RawRead(char *dst) const = 0;
     199
    178200
    179201protected:
     
    208230
    209231private:
    210   /*!
    211   * \brief Copy datas
    212   *
    213   * This method is automatically called by IODevice::ProcessUpdate to log
    214   *io_data datas. \n
    215   * This method must be reimplemented, in order to copy the datas to the logs.
    216   * Copied datas must be of size io_data::Size.
    217   *
    218   * \param dst destination buffer
    219   */
    220   virtual void CopyDatas(char *dst) const = 0;
    221 
    222232  io_data_impl *pimpl_;
    223233};
Note: See TracChangeset for help on using the changeset viewer.