libapogee  3.0.2865
apogee/FindDeviceEthernet.h
00001 
00013 #ifndef FINDDEVICEETHERNET_INCLUDE_H__ 
00014 #define FINDDEVICEETHERNET_INCLUDE_H__ 
00015 
00016 
00017 #include <string>
00018 #include <stdint.h>
00019 #include "DefDllExport.h"
00020 
00021 class UdpSocketBase;
00022 
00023 class DLL_EXPORT FindDeviceEthernet 
00024 { 
00025     public: 
00026 
00029         FindDeviceEthernet();
00030 
00033         virtual ~FindDeviceEthernet(); 
00034 
00035 
00043         std::string Find(const std::string & subnet);
00044 
00048         int32_t GetElapsedSecs();
00049 
00053         int32_t GetTimeout();
00054     private:
00055         std::string MakeDeviceStr(const std::string & input);
00056         void GetId( const std::string & input, std::string & id );
00057         void GetFirmwareRev( const std::string & input, std::string & firmwareRev );
00058         void GetIpAddr( const std::string & input, std::string & ipAddr );
00059         void GetPort( const std::string & input, std::string & port );
00060         void GetMacAddr( const std::string & input, std::string & mac );
00061         void GetInterfaceStatus( const std::string & input, std::string & interfaceStatus );
00062         std::string CameraInfo(const std::string & rawIdStr, 
00063                                            const std::string & frmwRevStr);
00064 
00065         const std::string m_fileName;
00066         const std::string m_CamResponse;
00067         UdpSocketBase * m_socketPtr;
00068 
00069 
00070         //disabling the copy ctor and assignment operator
00071         //generated by the compiler - don't want them
00072         //Effective C++ Item 6
00073         FindDeviceEthernet(const FindDeviceEthernet&);
00074         FindDeviceEthernet& operator=(FindDeviceEthernet&);
00075 
00076 
00077 }; 
00078 
00079 #endif