Pleora Technologies Inc. eBUS SDK v6.2.8.5877 API



PvDeviceInfoPleoraProtocol.h
1 // *****************************************************************************
2 //
3 // Copyright (c) 2013, Pleora Technologies Inc., All rights reserved.
4 //
5 // *****************************************************************************
6 
7 #ifndef __PVDEVICEINFOPLEORAPROTOCOL_H__
8 #define __PVDEVICEINFOPLEORAPROTOCOL_H__
9 
10 #include <PvDeviceInfo.h>
11 
12 
13 class PV_SYSTEM_API PvDeviceInfoPleoraProtocol : public PvDeviceInfo
14 {
15 public:
16 
18  virtual ~PvDeviceInfoPleoraProtocol();
19 
21 
22  PvString GetMACAddress() const;
23  PvString GetIPAddress() const;
24  PvString GetSubnetMask() const;
25  PvString GetDefaultGateway() const;
26 
27  uint8_t GetDeviceID() const;
28  uint8_t GetModuleID() const;
29  uint8_t GetSubID() const;
30  uint8_t GetVendorID() const;
31  uint8_t GetSoftwareMajor() const;
32  uint8_t GetSoftwareMinor() const;
33 
34 protected:
35 
36 #ifndef PV_GENERATING_DOXYGEN_DOC
37 
39 
40  void Init();
41 
42  void SetIPAddress( const std::string &aValue ) { *mIPAddress = aValue; }
43  void SetMACAddress( const std::string &aValue ) { *mMACAddress = aValue; }
44  void SetSubnetMask( const std::string &aValue ) { *mSubnetMask = aValue; }
45  void SetDefaultGateway( const std::string &aValue ) { *mDefaultGateway = aValue; }
46 
47  void SetDeviceID( uint8_t aValue ) { mDeviceID = aValue; }
48  void SetModuleID( uint8_t aValue ) { mModuleID = aValue; }
49  void SetSubID( uint8_t aValue ) { mSubID = aValue; }
50  void SetVendorID( uint8_t aValue ) { mVendorID = aValue; }
51  void SetSoftwareMajor( uint8_t aValue ) { mSoftwareMajor = aValue; }
52  void SetSoftwareMinor( uint8_t aValue ) { mSoftwareMinor = aValue; }
53 
54 #endif // PV_GENERATING_DOXYGEN_DOC
55 
56 private:
57 
58  // Not implemented
60 
61  std::string *mIPAddress;
62  std::string *mMACAddress;
63  std::string *mSubnetMask;
64  std::string *mDefaultGateway;
65 
66  uint8_t mDeviceID;
67  uint8_t mModuleID;
68  uint8_t mSubID;
69  uint8_t mVendorID;
70  uint8_t mSoftwareMajor;
71  uint8_t mSoftwareMinor;
72 
73 };
74 
75 #endif
PvInterface
Represents one interface (network adapter or USB host controller) on a system (the PC)
Definition: PvInterface.h:25
PvString
String class.
Definition: PvString.h:21
PvDeviceInfo
Information identifying a device.
Definition: PvDeviceInfo.h:18
PvDeviceInfoPleoraProtocol
Information about a Pleora Protocol device.
Definition: PvDeviceInfoPleoraProtocol.h:13

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