00001 /*============================================================================= 00002 Copyright (C) 2012 Allied Vision Technologies. All Rights Reserved. 00003 00004 Redistribution of this file, in original or modified form, without 00005 prior written consent of Allied Vision Technologies is prohibited. 00006 00007 ------------------------------------------------------------------------------- 00008 00009 File: DefaultCameraFactory.cpp 00010 00011 Description: Implementation of class AVT::VmbAPI::DefaultCameraFactory used to 00012 create new Camera objects if no user defined camera factory 00013 class was provided. 00014 (For internal use only) 00015 00016 ------------------------------------------------------------------------------- 00017 00018 THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED 00019 WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF TITLE, 00020 NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00021 DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, 00022 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 00023 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 00024 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 00025 AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 00026 TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00027 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00028 00029 =============================================================================*/ 00030 00031 #include <VimbaCPP/Source/DefaultCameraFactory.h> 00032 00033 namespace AVT { 00034 namespace VmbAPI { 00035 00036 CameraPtr DefaultCameraFactory::CreateCamera( const char *pCameraID, 00037 const char *pCameraName, 00038 const char *pCameraModel, 00039 const char *pCameraSerialNumber, 00040 const char *pInterfaceID, 00041 VmbInterfaceType eInterfaceType, 00042 const char * /*pInterfaceName*/, 00043 const char * /*pInterfaceSerialNumber*/, 00044 VmbAccessModeType /*interfacePermittedAccess*/ ) 00045 { 00046 return CameraPtr( new Camera( pCameraID, pCameraName, pCameraModel, pCameraSerialNumber, pInterfaceID, eInterfaceType )); 00047 } 00048 00049 }} // namespace AVT::VmbAPI