libapogee  3.0.3179
FindDeviceEthernet.h
1 
13 #ifndef FINDDEVICEETHERNET_INCLUDE_H__
14 #define FINDDEVICEETHERNET_INCLUDE_H__
15 
16 
17 #include <string>
18 #include <stdint.h>
19 #include "DefDllExport.h"
20 
21 class UdpSocketBase;
22 
23 class DLL_EXPORT FindDeviceEthernet
24 {
25  public:
26 
30 
33  virtual ~FindDeviceEthernet();
34 
35 
43  std::string Find(const std::string & subnet);
44 
48  int32_t GetElapsedSecs();
49 
53  int32_t GetTimeout();
54  private:
55  std::string MakeDeviceStr(const std::string & input);
56  void GetId( const std::string & input, std::string & id );
57  void GetFirmwareRev( const std::string & input, std::string & firmwareRev );
58  void GetIpAddr( const std::string & input, std::string & ipAddr );
59  void GetPort( const std::string & input, std::string & port );
60  void GetMacAddr( const std::string & input, std::string & mac );
61  void GetInterfaceStatus( const std::string & input, std::string & interfaceStatus );
62  std::string CameraInfo(const std::string & rawIdStr,
63  const std::string & frmwRevStr);
64 
65  const std::string m_fileName;
66  const std::string m_CamResponse;
67  UdpSocketBase * m_socketPtr;
68 
69 
70  //disabling the copy ctor and assignment operator
71  //generated by the compiler - don't want them
72  //Effective C++ Item 6
75 
76 
77 };
78 
79 #endif
Class that tries to find apogee devices on the ethernet.
Definition: FindDeviceEthernet.h:23