IntFeature.cpp
Go to the documentation of this file.
1 /*=============================================================================
2  Copyright (C) 2012 Allied Vision Technologies. All Rights Reserved.
3 
4  Redistribution of this file, in original or modified form, without
5  prior written consent of Allied Vision Technologies is prohibited.
6 
7 -------------------------------------------------------------------------------
8 
9  File: IntFeature.cpp
10 
11  Description: Implementation of class AVT::VmbAPI::IntFeature.
12  (For internal use only)
13 
14 -------------------------------------------------------------------------------
15 
16  THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
17  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF TITLE,
18  NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19  DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
20  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
23  AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
24  TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 
27 =============================================================================*/
28 
30 
31 namespace AVT {
32 namespace VmbAPI {
33 
34 IntFeature::IntFeature( const VmbFeatureInfo_t *featureInfo, FeatureContainer* const pFeatureContainer )
35  : BaseFeature( featureInfo, pFeatureContainer )
36 {
37 }
38 
40 {
41  if ( NULL == m_pFeatureContainer )
42  {
43  return VmbErrorDeviceNotOpen;
44  }
45 
47 }
48 
50 {
51  if ( NULL == m_pFeatureContainer )
52  {
53  return VmbErrorDeviceNotOpen;
54  }
55 
57 }
58 
59 VmbErrorType IntFeature::GetRange( VmbInt64_t &rnMinimum, VmbInt64_t &rnMaximum ) const
60 {
61  if ( NULL == m_pFeatureContainer )
62  {
63  return VmbErrorDeviceNotOpen;
64  }
65 
66  return (VmbErrorType)VmbFeatureIntRangeQuery( m_pFeatureContainer->GetHandle(), m_featureInfo.name.c_str(), &rnMinimum, &rnMaximum );
67 }
68 
69 VmbErrorType IntFeature::HasIncrement( VmbBool_t & incrementSupported) const
70 {
71  incrementSupported = VmbBoolTrue;
72  return VmbErrorSuccess;
73 }
75 {
76  if ( NULL == m_pFeatureContainer )
77  {
78  return VmbErrorDeviceNotOpen;
79  }
80 
82 }
83 
84 
85 }} // namespace AVT::VmbAPI
char VmbBool_t
IMEXPORTC VmbError_t VMB_CALL VmbFeatureIntIncrementQuery(const VmbHandle_t handle, const char *name, VmbInt64_t *pValue)
long long VmbInt64_t
virtual IMEXPORT VmbErrorType HasIncrement(VmbBool_t &incrementSupported) const
Definition: IntFeature.cpp:69
virtual IMEXPORT VmbErrorType GetRange(VmbInt64_t &minimum, VmbInt64_t &maximum) const
Definition: IntFeature.cpp:59
virtual IMEXPORT VmbErrorType SetValue(const VmbInt64_t &value)
Definition: IntFeature.cpp:49
VmbErrorType
IMEXPORTC VmbError_t VMB_CALL VmbFeatureIntSet(const VmbHandle_t handle, const char *name, VmbInt64_t value)
virtual IMEXPORT VmbErrorType GetIncrement(VmbInt64_t &increment) const
Definition: IntFeature.cpp:74
IntFeature(const VmbFeatureInfo_t *featureInfo, FeatureContainer *const pFeatureContainer)
Definition: IntFeature.cpp:34
IMEXPORTC VmbError_t VMB_CALL VmbFeatureIntGet(const VmbHandle_t handle, const char *name, VmbInt64_t *pValue)
virtual IMEXPORT VmbErrorType GetValue(VmbInt64_t &value) const
Definition: IntFeature.cpp:39
IMEXPORTC VmbError_t VMB_CALL VmbFeatureIntRangeQuery(const VmbHandle_t handle, const char *name, VmbInt64_t *pMin, VmbInt64_t *pMax)
FeatureContainer * m_pFeatureContainer
Definition: BaseFeature.h:108


avt_vimba_camera
Author(s): Miquel Massot , Allied Vision Technologies
autogenerated on Wed Jun 5 2019 22:22:40