Pleora Technologies Inc. eBUS SDK v6.4.0.6670 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 
21 class PV_SYSTEM_API PvDeviceInfoPleoraProtocol : public PvDeviceInfo
22 {
23 public:
24 
29 
33  virtual ~PvDeviceInfoPleoraProtocol();
34 
43 
50  PvString GetMACAddress() const;
51 
58  PvString GetIPAddress() const;
59 
65  PvString GetSubnetMask() const;
66 
72  PvString GetDefaultGateway() const;
73 
79  uint8_t GetDeviceID() const;
80 
86  uint8_t GetModuleID() const;
87 
93  uint8_t GetSubID() const;
94 
100  uint8_t GetVendorID() const;
101 
107  uint8_t GetSoftwareMajor() const;
108 
114  uint8_t GetSoftwareMinor() const;
115 
116 protected:
117 
118 #ifndef PV_GENERATING_DOXYGEN_DOC
119 
121 
122  void Init();
123 
124  void SetIPAddress( const std::string &aValue ) { *mIPAddress = aValue; }
125  void SetMACAddress( const std::string &aValue ) { *mMACAddress = aValue; }
126  void SetSubnetMask( const std::string &aValue ) { *mSubnetMask = aValue; }
127  void SetDefaultGateway( const std::string &aValue ) { *mDefaultGateway = aValue; }
128 
129  void SetDeviceID( uint8_t aValue ) { mDeviceID = aValue; }
130  void SetModuleID( uint8_t aValue ) { mModuleID = aValue; }
131  void SetSubID( uint8_t aValue ) { mSubID = aValue; }
132  void SetVendorID( uint8_t aValue ) { mVendorID = aValue; }
133  void SetSoftwareMajor( uint8_t aValue ) { mSoftwareMajor = aValue; }
134  void SetSoftwareMinor( uint8_t aValue ) { mSoftwareMinor = aValue; }
135 
136 #endif // PV_GENERATING_DOXYGEN_DOC
137 
138 private:
139 
140  // Not implemented
142 
143  std::string *mIPAddress;
144  std::string *mMACAddress;
145  std::string *mSubnetMask;
146  std::string *mDefaultGateway;
147 
148  uint8_t mDeviceID;
149  uint8_t mModuleID;
150  uint8_t mSubID;
151  uint8_t mVendorID;
152  uint8_t mSoftwareMajor;
153  uint8_t mSoftwareMinor;
154 
155 };
156 
157 #endif
Information about a Pleora Protocol device.
Definition: PvDeviceInfoPleoraProtocol.h:21
String class.
Definition: PvString.h:25
Represents one interface (network adapter or USB host controller) on a system (the PC) ...
Definition: PvInterface.h:32
Information identifying a device.
Definition: PvDeviceInfo.h:26

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