Digital Barriers
Digital Barriers EdgeVis Decoder SDK
Loading...
Searching...
No Matches
PassThruStream.h
Go to the documentation of this file.
1
2// Copyright (c) 2016 Digital Barriers
4
35
36#pragma once
37
38#include "Stream.h"
39
40namespace EdgeVisDecoderSDK
41{
42 class PassThruStreamImpl;
43
44 class PassThruStream : public Stream
45 {
46 public:
47 DB_EDGEVIS_SDK virtual ~PassThruStream();
48
49 DB_EDGEVIS_SDK PassThruStream();
50
51 PassThruStream(std::weak_ptr<EncoderImpl> encoder, const std::wstring& name = L"");
52
53 PassThruStream(std::weak_ptr<PassThruStreamImpl> pimpl);
54
55 PassThruStream(const Stream &other);
56
57 public:
58
64 DB_EDGEVIS_SDK virtual bool IsConnected() const;
65
73 DB_EDGEVIS_SDK bool SendData(byte_array data);
74
93 DB_EDGEVIS_SDK int32_t GetBytesFree() const;
94
101 DB_EDGEVIS_SDK int32_t GetBufferSize() const;
102
103 DB_EDGEVIS_SDK Stream* AsStream();
104 };
105}
DB_EDGEVIS_SDK bool SendData(byte_array data)
Send some data on this pass thru stream,.
DB_EDGEVIS_SDK int32_t GetBytesFree() const
A frame of data will be transmitted to the Encoder.
virtual DB_EDGEVIS_SDK bool IsConnected() const
Determines if the stream is currently connected (in use).
DB_EDGEVIS_SDK int32_t GetBufferSize() const
Get the size of the pass thru stream buffer.
The EdgeVis Decoder SDK namespace.