source: flair-src/trunk/lib/FlairCore/src/Buffer.h @ 121

Last change on this file since 121 was 121, checked in by Sanahuja Guillaume, 5 years ago

modifs camera

File size: 1.3 KB
Line 
1// %flair:license{
2// This file is part of the Flair framework distributed under the
3// CECILL-C License, Version 1.0.
4// %flair:license}
5/*!
6 * \file Buffer.h
7 * \brief Class defining a buffer, not for real time use
8 * \author Guillaume Sanahuja, Copyright Heudiasyc UMR UTC/CNRS 7253
9 * \date 2016/12/22
10 * \version 4.0
11 */
12
13#ifndef BUFFER_H
14#define BUFFER_H
15
16#include <io_data.h>
17#include <stdint.h>
18
19namespace flair {
20namespace core {
21/*! \class Buffer
22*
23* \brief Class defining a buffer, not for real time use
24*
25*
26*/
27class Buffer : public io_data {
28public:
29  class Type : public DataType {
30  public:
31    Type() {}
32
33    size_t GetSize() const {
34    }
35               
36    std::string GetDescription() const { return "buffer"; };
37
38  private:
39  };
40
41  /*!
42  * \brief Constructor
43  *
44  * Construct a buffer.
45  *
46  * \param parent parent
47  * \param name name
48        *
49  */
50  Buffer(const Object *parent, std::string name = "");
51
52  /*!
53  * \brief Destructor
54  *
55  */
56  ~Buffer();
57
58 
59
60  Type const &GetDataType() const { return dataType; };
61
62private:
63  /*!
64  * \brief Copy datas
65  *
66  * Reimplemented from io_data. \n
67  * See io_data::CopyDatas.
68  *
69  * \param dst destination buffer
70  */
71  void CopyDatas(char *dst) const;
72
73  Type dataType;
74};
75
76} // end namespace core
77} // end namespace flair
78
79#endif // BUFFER_H
Note: See TracBrowser for help on using the repository browser.