Pleora Technologies Inc. eBUS SDK v6.2.8.5877 API



PvTftpClient.h
1 // *****************************************************************************
2 //
3 // Copyright (c) 2013, Pleora Technologies Inc., All rights reserved.
4 //
5 // *****************************************************************************
6 
7 #ifndef __PVTFTPCLIENT_H__
8 #define __PVTFTPCLIENT_H__
9 
10 #include <PvBaseLib.h>
11 #include <PvResult.h>
12 #include <PvString.h>
13 
14 
15 namespace PvBaseLib
16 {
17  class TftpClient;
18 }
19 
20 
21 class PV_BASE_API PvTftpClient
22 {
23 public:
24 
25  PvTftpClient();
26  ~PvTftpClient();
27 
28  PvResult Init( const PvString &aDeviceIPAddress, const PvString &aDeviceFilename );
29 
30  PvResult SendFile( const PvString &aHostFilename = "" );
31  PvResult SendData( const uint8_t *aBuffer, uint32_t aBufferLength );
32  PvResult GetFile( const PvString &aHostFilename = "" );
33  PvResult GetData( uint8_t *aBuffer, uint32_t aBufferLength, uint32_t *aBytesRead );
34 
35  PvResult Abort();
36  PvResult GetWarning( PvString &aWarning );
37  PvResult GetTransferResult() const;
38  PvResult GetProgress( int64_t &aCompleted, int64_t &aTotal );
39 
40 protected:
41 
42 private:
43 
44 #ifndef PV_GENERATING_DOXYGEN_DOC
45 
46  PvBaseLib::TftpClient *mThis;
47 
48 #endif // PV_GENERATING_DOXYGEN_DOC
49 
50  // Not implemented
51  PvTftpClient( const PvTftpClient & );
52  const PvTftpClient &operator=( const PvTftpClient & );
53 
54 };
55 
56 
57 #endif
PvResult
Result information.
Definition: PvResult.h:13
PvString
String class.
Definition: PvString.h:21
PvTftpClient
Sends or receives files from a GigE Vision video interface using the TFTP protocol.
Definition: PvTftpClient.h:21
PvResult.h

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