Pleora Technologies Inc. eBUS SDK v6.4.0.6670 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 
37 class PV_SYSTEM_API PvSystem
38 {
39 public:
40 
44  PvSystem();
45 
49  virtual ~PvSystem();
50 
61  PvResult Find();
62 
85  PvResult FindDevice( const PvString &aDeviceToFind, const PvDeviceInfo **aDeviceInfo );
86 
107  void SetDetectionTimeout( uint32_t aTimeout );
108 
122  uint32_t GetDetectionTimeout() const;
123 
129  void SetSubnetBroadcastEnabled( bool aValue );
130 
136  bool GetSubnetBroadcastEnabled() const;
137 
145  uint32_t GetGEVSupportedVersion() const;
146 
154  uint32_t GetU3VSupportedVersion() const;
155 
169  PvResult RegisterEventSink( PvSystemEventSink *aEventSink );
170 
183  PvResult UnregisterEventSink( PvSystemEventSink *aEventSink );
184 
190  uint32_t GetInterfaceCount() const;
191 
201  const PvInterface *GetInterface( uint32_t aIndex ) const;
202 
208  uint32_t GetDeviceCount() const;
209 
221  const PvDeviceInfo *GetDeviceInfo( uint32_t aIndex ) const;
222 
223  uint32_t DiscoverSessions() const;
224 
225  PvResult GetSessionInfo( uint32_t aIndex, PvSessionInfo &aSessionInfo ) const;
226 
227 protected:
228 
229 private:
230 
231  // Not implemented
232  PvSystem( const PvSystem & );
233  const PvSystem &operator=( const PvSystem & );
234 
235  PvSystemLib::System *mThis;
236 
237 };
238 
239 #endif
Information identifying a device.
Definition: PvDeviceInfo.h:27
Represents one interface (network adapter or USB host controller) on a system (the PC)
Definition: PvInterface.h:33
Result information.
Definition: PvResult.h:30
String class.
Definition: PvString.h:26
Observer interface for an observable PvSystem object.
Definition: PvSystemEventSink.h:40
Find interfaces (network adapters or USB host controllers) and devices reachable from this PC.
Definition: PvSystem.h:38
Definition: PvSystem.h:20

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