Snowman  0.1.0
stream-itf.h
1 #pragma once
2 #include <string>
3 #include <vector>
4 
5 namespace snowboy {
6  struct FrameInfo;
7  struct MatrixBase;
8  struct Matrix;
9  struct StreamItf {
10  // vtable ptr
11  bool m_isConnected{false};
12  StreamItf* m_connectedStream{nullptr};
13 
14  virtual int Read(Matrix* mat, std::vector<FrameInfo>* info) = 0;
15  virtual bool Reset() = 0;
16  virtual std::string Name() const = 0;
17  virtual bool Connect(StreamItf* other);
18  virtual bool Disconnect();
19  virtual ~StreamItf();
20  };
21 } // namespace snowboy
Definition: matrix-wrapper.h:61
Definition: stream-itf.h:9