PylonGigEDevice.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. //-----------------------------------------------------------------------------
  2. // Basler pylon SDK
  3. // Copyright (c) 2007-2021 Basler AG
  4. // http://www.baslerweb.com
  5. // Author: AH
  6. //-----------------------------------------------------------------------------
  7. /*!
  8. \file
  9. \brief Low Level API: The IPylonGigEDevice interface
  10. */
  11. #include "PylonGigE.h"
  12. #ifndef __PYLON_PYLONGIGEDEVICE__H__
  13. #define __PYLON_PYLONGIGEDEVICE__H__
  14. #if _MSC_VER > 1000
  15. #pragma once
  16. #endif //_MSC_VER > 1000
  17. #include <pylon/Platform.h>
  18. #ifdef _MSC_VER
  19. # pragma pack(push, PYLON_PACKING)
  20. #endif /* _MSC_VER */
  21. #include <pylon/Device.h>
  22. #include "PylonGigE.h"
  23. namespace Pylon
  24. {
  25. /**
  26. \ingroup Pylon_LowLevelApi
  27. \interface IPylonGigEDevice
  28. \brief Low Level API: The interface for Basler GigE camera devices
  29. This interface extends the IPylonDevice interface.
  30. */
  31. interface PUBLIC_INTERFACE IPylonGigEDevice : public IPylonDevice
  32. {
  33. //! Enables/disables use of persistent IP address and DHCP usage
  34. virtual void ChangeIpConfiguration( bool EnablePersistentIp, bool EnableDhcp ) = 0;
  35. //! Reads the persistent IP address from the device
  36. virtual void GetPersistentIpAddress( String_t& IpAddress, String_t& SubnetMask, String_t& DefaultGateway ) = 0;
  37. //! Writes a persistent IP address to the device.
  38. /** Writing the persistent IP address does not change the IP configuration.
  39. Use the ChangeIpConfiguration() method to enable the usage of persistent IP addresses.
  40. */
  41. virtual void SetPersistentIpAddress( const String_t& IpAddress,
  42. const String_t& SubnetMask,
  43. const String_t& DefaultGateway ) = 0;
  44. };
  45. }
  46. #ifdef _MSC_VER
  47. # pragma pack(pop)
  48. #endif /* _MSC_VER */
  49. #endif /* __PYLON_PYLONGIGEDEVICE__H__ */