ICameraFactory.h 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /*=============================================================================
  2. Copyright (C) 2012 Allied Vision Technologies. All Rights Reserved.
  3. Redistribution of this file, in original or modified form, without
  4. prior written consent of Allied Vision Technologies is prohibited.
  5. -------------------------------------------------------------------------------
  6. File: ICameraFactory.h
  7. Description: Definition of interface AVT::VmbAPI::ICameraFactory.
  8. -------------------------------------------------------------------------------
  9. THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
  10. WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF TITLE,
  11. NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  12. DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
  13. INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  14. (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  15. LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  16. AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
  17. TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  18. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  19. =============================================================================*/
  20. #ifndef AVT_VMBAPI_ICAMERAFACTORY_H
  21. #define AVT_VMBAPI_ICAMERAFACTORY_H
  22. #include <VimbaC/Include/VimbaC.h>
  23. #include <VimbaCPP/Include/VimbaCPPCommon.h>
  24. #include <VimbaCPP/Include/SharedPointerDefines.h>
  25. #include <VimbaCPP/Include/Camera.h>
  26. namespace AVT {
  27. namespace VmbAPI {
  28. class ICameraFactory
  29. {
  30. public:
  31. //
  32. // Method: CreateCamera()
  33. //
  34. // Purpose: Factory method to create a camera that extends the Camera class
  35. //
  36. // Parameters:
  37. //
  38. // [in ] const char* pCameraID The ID of the camera
  39. // [in ] const char* pCameraName The name of the camera
  40. // [in ] const char* pCameraModel The model name of the camera
  41. // [in ] const char* pCameraSerialNumber The serial number of the camera
  42. // [in ] const char* pInterfaceID The ID of the interface the camera is connected to
  43. // [in ] VmbInterfaceType interfaceType The type of the interface the camera is connected to
  44. // [in ] const char* pInterfaceName The name of the interface
  45. // [in ] const char* pInterfaceSerialNumber The serial number of the interface
  46. // [in ] VmbAccessModeType interfacePermittedAccess The access privileges for the interface
  47. //
  48. // Details: The ID of the camera may be, among others, one of the following: "169.254.12.13",
  49. // "000f31000001", a plain serial number: "1234567890", or the device ID
  50. // of the underlying transport layer.
  51. //
  52. IMEXPORT virtual CameraPtr CreateCamera( const char *pCameraID,
  53. const char *pCameraName,
  54. const char *pCameraModel,
  55. const char *pCameraSerialNumber,
  56. const char *pInterfaceID,
  57. VmbInterfaceType interfaceType,
  58. const char *pInterfaceName,
  59. const char *pInterfaceSerialNumber,
  60. VmbAccessModeType interfacePermittedAccess) = 0;
  61. //
  62. // Method: ICameraFactory destructor
  63. //
  64. // Purpose: Destroys an instance of class Camera
  65. //
  66. IMEXPORT virtual ~ICameraFactory() {}
  67. };
  68. }} // namespace AVT::VmbAPI
  69. #endif