Pleora Technologies Inc. eBUS SDK v6.2.8.5877 API



PvSystem.h
1 // *****************************************************************************
2 //
3 // Copyright (c) 2008, Pleora Technologies Inc., All rights reserved.
4 //
5 // *****************************************************************************
6 
7 #ifndef __PVSYSTEM_H__
8 #define __PVSYSTEM_H__
9 
10 #include <PvSystemEventSink.h>
11 #include <PvNetworkAdapter.h>
12 #include <PvUSBHostController.h>
13 
14 
15 namespace PvSystemLib
16 {
17  class System;
18 }
19 
20 typedef struct {
21  PvString mName;
22  PvString mAddress;
23  uint16_t mPort;
24  PvString mLocalAddress;
26 
27 class PV_SYSTEM_API PvSystem
28 {
29 public:
30 
31  PvSystem();
32  virtual ~PvSystem();
33 
34  PvResult Find();
35  PvResult FindDevice( const PvString &aDeviceToFind, const PvDeviceInfo **aDeviceInfo );
36 
37  void SetDetectionTimeout( uint32_t aTimeout );
38  uint32_t GetDetectionTimeout() const;
39 
40  void SetSubnetBroadcastEnabled( bool aValue );
41  bool GetSubnetBroadcastEnabled() const;
42 
43  uint32_t GetGEVSupportedVersion() const;
44  uint32_t GetU3VSupportedVersion() const;
45 
46  PvResult RegisterEventSink( PvSystemEventSink *aEventSink );
47  PvResult UnregisterEventSink( PvSystemEventSink *aEventSink );
48 
49  uint32_t GetInterfaceCount() const;
50  const PvInterface *GetInterface( uint32_t aIndex ) const;
51 
52  uint32_t GetDeviceCount() const;
53  const PvDeviceInfo *GetDeviceInfo( uint32_t aIndex ) const;
54 
55  uint32_t DiscoverSessions() const;
56  PvResult GetSessionInfo( uint32_t aIndex, PvSessionInfo &aSessionInfo ) const;
57 
58 protected:
59 
60 private:
61 
62  // Not implemented
63  PvSystem( const PvSystem & );
64  const PvSystem &operator=( const PvSystem & );
65 
66  PvSystemLib::System *mThis;
67 
68 };
69 
70 #endif
Definition: PvInterface.h:14
String class.
Definition: PvString.h:21
Result information.
Definition: PvResult.h:13
Observer interface for an observable PvSystem object.
Definition: PvSystemEventSink.h:17
Represents one interface (network adapter or USB host controller) on a system (the PC) ...
Definition: PvInterface.h:25
Information identifying a device.
Definition: PvDeviceInfo.h:18
Find interfaces (network adapters or USB host controllers) and devices reachable from this PC...
Definition: PvSystem.h:27
Definition: PvSystem.h:20

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