Overte C++ Documentation
BufferClip.h
1 //
2 // Created by Bradley Austin Davis 2015/11/05
3 // Copyright 2015 High Fidelity, Inc.
4 //
5 // Distributed under the Apache License, Version 2.0.
6 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
7 //
8 
9 #pragma once
10 #ifndef hifi_Recording_Impl_BufferClip_h
11 #define hifi_Recording_Impl_BufferClip_h
12 
13 #include "ArrayClip.h"
14 
15 #include <QtCore/QUuid>
16 
17 namespace recording {
18 
19 class BufferClip : public ArrayClip<Frame> {
20 public:
21  using Pointer = std::shared_ptr<BufferClip>;
22 
23  virtual QString getName() const override;
24  virtual void addFrame(FrameConstPointer) override;
25 
26 private:
27  virtual FrameConstPointer readFrame(size_t index) const override;
28  QString _name { QUuid().toString() };
29 
30  //mutable size_t _frameIndex { 0 }; // FIXME - not in use
31 };
32 
33 }
34 
35 #endif