CVB++ 15.0
Loading...
Searching...
No Matches
detail_stream_base.hpp
1#pragma once
2
3#include "../../_cexports/c_gev_server.h"
4#include "../../global.hpp"
5
6#include "../_decl/decl_node_map.hpp"
7
8#include "../_decl/decl_server.hpp"
9#include "../_decl/decl_stream_base.hpp"
10
11namespace Cvb
12{
13 CVB_BEGIN_INLINE_NS
14
15 namespace GevServer
16 {
17 inline bool StreamBase::IsRunning() const
18 {
19 return parent_->State() == State::AcquisitionEnabled;
20 }
21
23 {
24 CExports::cvbval_t numBuffers = 0;
25 CVB_CALL_CAPI(GSGetPacketResendBuffers(parent_->Handle(), numBuffers));
26 return static_cast<std::int64_t>(numBuffers);
27 }
28
29 inline void StreamBase::SetResendBuffersCount(const std::int64_t &numBuffers)
30 {
31 CVB_CALL_CAPI(GSSetPacketResendBuffers(parent_->Handle(), static_cast<CExports::cvbval_t>(numBuffers)));
32 }
33
34
35 } // namespace GevServer
36 CVB_END_INLINE_NS
37} // namespace Cvb
virtual void SetResendBuffersCount(const std::int64_t &numBuffers)
Sets the number of resend buffers.
Definition detail_stream_base.hpp:29
virtual std::int64_t ResendBuffersCount() const
Gets the number of resend buffers.
Definition detail_stream_base.hpp:22
virtual bool IsRunning() const
Gets whether this stream is running.
Definition detail_stream_base.hpp:17
Namespace for GevServer based device configuration.
Definition decl_int_swiss_knife_node.hpp:11
Root namespace for the Image Manager interface.
Definition version.hpp:11