FeatureContainer.h
Go to the documentation of this file.
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:        FeatureContainer.h
00010 
00011   Description: Definition of class AVT::VmbAPI::FeatureContainer.
00012 
00013 -------------------------------------------------------------------------------
00014 
00015   THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
00016   WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF TITLE,
00017   NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR  PURPOSE ARE
00018   DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, 
00019   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 
00020   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
00021   LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED  
00022   AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 
00023   TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
00024   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00025 
00026 =============================================================================*/
00027 
00028 #ifndef AVT_VMBAPI_FEATURECONTAINER_H
00029 #define AVT_VMBAPI_FEATURECONTAINER_H
00030 
00031 #include <VimbaC/Include/VmbCommonTypes.h>
00032 #include <VimbaCPP/Include/VimbaCPPCommon.h>
00033 #include <VimbaCPP/Include/BasicLockable.h>
00034 #include <VimbaCPP/Include/SharedPointerDefines.h>
00035 #include <VimbaCPP/Include/Feature.h>
00036 
00037 namespace AVT {
00038 namespace VmbAPI {
00039 
00040 class FeatureContainer : public virtual BasicLockable
00041 {
00042   public:
00043 
00044     //
00045     // Method:      FeatureContainer constructor
00046     //
00047     // Purpose:     Creates an instance of class FeatureContainer
00048     //
00049     IMEXPORT FeatureContainer();
00050 
00051     //
00052     // Method:      FeatureContainer destructor
00053     //
00054     // Purpose:     Destroys an instance of class FeatureContainer
00055     //
00056     IMEXPORT ~FeatureContainer();
00057 
00058     //
00059     // Method:      GetFeatureByName()
00060     //
00061     // Purpose:     Gets one particular feature of a feature container (e.g. a camera)
00062     //
00063     // Parameters:
00064     //
00065     // [in ]    const char*         name                The name of the feature to get
00066     // [out]    FeaturePtr&         pFeature            The queried feature
00067     //
00068     // Returns:
00069     //
00070     //  - VmbErrorSuccess:          If no error
00071     //  - VmbErrorDeviceNotOpen:    Base feature class (e.g. Camera) was not opened.
00072     //  - VmbErrorBadParameter:     "name" is NULL.
00073     //
00074     IMEXPORT VmbErrorType GetFeatureByName( const char *pName, FeaturePtr &pFeature );
00075     
00076     //
00077     // Method:      GetFeatures()
00078     //
00079     // Purpose:     Gets all features of a feature container (e.g. a camera)
00080     //
00081     // Parameters:
00082     //
00083     // [out]    FeaturePtrVector&   features        The container for all queried features
00084     //
00085     // Returns:
00086     //
00087     //  - VmbErrorSuccess:       If no error
00088     //  - VmbErrorBadParameter:  "features" is empty.
00089     //
00090     // Details:   Once queried, this information remains static throughout the object's lifetime
00091     //
00092     VmbErrorType GetFeatures( FeaturePtrVector &features );
00093 
00094     VmbHandle_t GetHandle() const;
00095 
00096   protected:
00097     // Sets the C handle of a feature container
00098     void SetHandle( const VmbHandle_t handle );
00099     
00100     // Sets the C handle of a feature container to NULL
00101     void RevokeHandle();
00102     
00103     // Sets the back reference to feature container that each feature holds to NULL
00104     // and resets all known features
00105     void Reset();
00106 
00107   private:
00108     struct Impl;
00109     Impl *m_pImpl;
00110 
00111     IMEXPORT VmbErrorType GetFeatures( FeaturePtr *pFeatures, VmbUint32_t &size );
00112 
00113     // No copy ctor
00114     FeatureContainer( const FeatureContainer& );
00115     // No assignment operator
00116     FeatureContainer& operator=( const FeatureContainer& );
00117 };
00118 
00119 #include <VimbaCPP/Include/FeatureContainer.hpp>
00120 
00121 }} // namespace AVT::VmbAPI
00122 
00123 #endif


avt_vimba_camera
Author(s): Miquel Massot , Allied Vision Technologies
autogenerated on Thu Jun 6 2019 18:23:39