gigeinterface.h 4.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #ifndef __DAHUA_GENICAM_IGIGEINTERFACE_H__
  2. #define __DAHUA_GENICAM_IGIGEINTERFACE_H__
  3. #include "GenICam/Defs.h"
  4. #include "GenICam/Camera.h"
  5. #include "Infra/String.h"
  6. #include "Memory/SharedPtr.h"
  7. GENICAM_NAMESPACE_BEGIN
  8. class IGigEInterface;
  9. typedef Memory::TSharedPtr<IGigEInterface> IGigEInterfacePtr;
  10. /// \~chinese
  11. /// \brief 相机接口类
  12. /// \defgroup IGigEInterface 连接GigE相机的接口类
  13. /// \~english
  14. /// \brief camera interface class
  15. /// \defgroup IGigEInterface API for GigEVision interface Only
  16. /// @{
  17. /// \~chinese
  18. /// \brief Class IGigEInterface 连接GigE相机的接口类
  19. /// \~english
  20. /// \brief Class IGigEInterface interface class used to connect GigE Camera
  21. class GENICAM_API IGigEInterface
  22. {
  23. protected:
  24. virtual ~IGigEInterface(){}
  25. public:
  26. /// \~chinese
  27. /// \brief 连接GigE相机接口对象获取函数,同一个cameraPtr对应的是同一个接口对象
  28. /// \param [in] cameraPtr GigE相机智能指针对象
  29. /// \~english
  30. /// \brief GigE camera object access interface, same cameraPtr is correspond to same GigE camera object
  31. /// \param [in] cameraPtr GigE camera smart pointer object
  32. static IGigEInterfacePtr getInstance(const ICameraPtr &cameraPtr);
  33. /// \~chinese
  34. /// \brief 获取网卡描述信息
  35. /// \return 返回网卡描述信息
  36. /// \~english
  37. /// \brief get NIC description information
  38. /// \return success:return NIC description information, fail:return empty string
  39. virtual Infra::CString getDescription() const = 0;
  40. /// \~chinese
  41. /// \brief 获取网卡的IP地址
  42. /// \return 返回网卡的IP地址
  43. /// \~english
  44. /// \brief get NIC's IP Address
  45. /// \return success:return NIC's IP Address, fail:return empty string
  46. virtual Infra::CString getIpAddress() const = 0;
  47. /// \~chinese
  48. /// \brief 获取网卡的子网掩码
  49. /// \return 返回网卡的子网掩码
  50. /// \~english
  51. /// \brief get NIC's subnetMask
  52. /// \return success:return NIC's subnetMask, fail:return empty string
  53. virtual Infra::CString getSubnetMask() const = 0;
  54. /// \~chinese
  55. /// \brief 获取网卡的网关
  56. /// \return 返回网卡的网关
  57. /// \~english
  58. /// \brief get NIC's gateway
  59. /// \return success:return NIC's gateway, fail:return empty string
  60. virtual Infra::CString getGateway() const = 0;
  61. /// \~chinese
  62. /// \brief 获取网卡的Mac地址
  63. /// \return 返回网卡的Mac地址
  64. /// \~english
  65. /// \brief get NIC's MacAddress
  66. /// \return success:return NIC's MacAddress, fail:return empty string
  67. virtual Infra::CString getMacAddress() const = 0;
  68. };
  69. /// @}
  70. GENICAM_NAMESPACE_END
  71. #endif//__DAHUA_GENICAM_IGIGEINTERFACE_H__