Pleora Technologies Inc. eBUS SDK v7.0.1.7536 API



Loading...
Searching...
No Matches
PvStreamGEV.h
1// *****************************************************************************
2//
3// Copyright (c) 2013, Pleora Technologies Inc., All rights reserved.
4//
5// *****************************************************************************
6
7#ifndef __PVSTREAMGEV_H__
8#define __PVSTREAMGEV_H__
9
10#include <PvStream.h>
11
12
14typedef enum
15{
17 PvDataReceiverTypeUnknown = -1,
19 PvDataReceiverTypeEBusDriver = 0,
21 PvDataReceiverTypeUserMode = 1,
23 PvDataReceiverTypeTCP = 2,
25 PvDataReceiverTypeGEVDriverDMA = 3
26
27} PvDataReceiverType;
28
29
37class PV_STREAM_API PvStreamGEV : public PvStream
38{
39public:
40
45
49 virtual ~PvStreamGEV();
50
67 PvResult Open( const PvDeviceInfo *aDeviceInfo );
68
89 PvResult Open( const PvDeviceInfo *aDeviceInfo, uint16_t aLocalPort, uint16_t aChannel = 0, const PvString & aLocalIpAddress = PvString(), uint32_t aBuffersCapacity = 64 );
90
112 PvResult Open( const PvDeviceInfo *aDeviceInfo, const PvString & aMulticastAddr, uint16_t aDataPort, uint16_t aChannel = 0, const PvString & aLocalIPAddress = PvString(), uint32_t aBuffersCapacity = 64 );
113
131 PvResult Open( const PvString &aInfo );
132
154 PvResult Open( const PvString &aInfo, uint16_t aLocalPort, uint16_t aChannel = 0, const PvString & aLocalIpAddress = PvString(), uint32_t aBuffersCapacity = 64 );
155
203 PvResult Open( const PvString &aInfo, const PvString & aMulticastAddr, uint16_t aDataPort, uint16_t aChannel = 0, const PvString & aLocalIPAddress = PvString(), uint32_t aBuffersCapacity = 64 );
204
210 virtual PvStreamType GetType() const;
211
217 PvDataReceiverType GetDataReceiverType() const;
218
231 PvResult FlushPacketQueue();
232
238 bool GetWaitForFirstPacketOfBlockToStart() const;
239
247 PvResult SetWaitForFirstPacketOfBlockToStart( bool aWaitForFirstPacketOfBlockToStart );
248
254 uint16_t GetLocalPort() const;
255
261 PvString GetLocalIPAddress() const;
262
268 PvString GetMulticastIPAddress() const;
269
275 PvString GetDeviceIPAddress() const;
276
284 uint16_t GetSpecificLocalPort() const;
285
293 uint32_t GetUserModeDataReceiverThreadPriority() const;
294
315 PvResult SetUserModeDataReceiverThreadPriority( uint32_t aPriority );
316
332 PvResult GetUserModeSocketRxBufferSize( uint32_t &aBufferSize );
333
377 PvResult SetUserModeSocketRxBufferSize( uint32_t aSize );
378
406 PvResult SetUserModeRxPacketBufferSize( uint32_t aSize );
407
420 static PvResult IsDriverInstalled( PvString &aIPAddress, bool &aInstalled, const PvString & aLocalIPAddress = PvString() );
421
422protected:
423
424private:
425
426 // Not implemented
427 PvStreamGEV( const PvStreamGEV & );
428 const PvStreamGEV &operator=( const PvStreamGEV & );
429
430
431};
432
433#endif
Information identifying a device.
Definition PvDeviceInfo.h:27
Result information.
Definition PvResult.h:30
Receive data from a GigE Vision.
Definition PvStreamGEV.h:38
Receive data from a GigE Vision or USB3 Vision transmitter.
Definition PvStream.h:51
virtual PvStreamType GetType() const
Returns whether the object is a GigE Vision or USB3 Vision stream receiver.
Definition PvStream.cpp:206
String class.
Definition PvString.h:26

Copyright (c) 2002-2026 Pleora Technologies Inc.
www.pleora.com