ICategory.h
Go to the documentation of this file.
00001 //-----------------------------------------------------------------------------
00002 //  (c) 2006 by Basler Vision Technologies
00003 //  Section: Vision Components
00004 //  Project: GenApi
00005 //  Author:  Fritz Dierks
00006 //  $Header$
00007 //
00008 //  License: This file is published under the license of the EMVA GenICam  Standard Group.
00009 //  A text file describing the legal terms is included in  your installation as 'GenICam_license.pdf'.
00010 //  If for some reason you are missing  this file please contact the EMVA or visit the website
00011 //  (http://www.genicam.org) for a full copy.
00012 //
00013 //  THIS SOFTWARE IS PROVIDED BY THE EMVA GENICAM STANDARD GROUP "AS IS"
00014 //  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
00015 //  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
00016 //  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE EMVA GENICAM STANDARD  GROUP
00017 //  OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,  SPECIAL,
00018 //  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT  LIMITED TO,
00019 //  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,  DATA, OR PROFITS;
00020 //  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY  THEORY OF LIABILITY,
00021 //  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT  (INCLUDING NEGLIGENCE OR OTHERWISE)
00022 //  ARISING IN ANY WAY OUT OF THE USE  OF THIS SOFTWARE, EVEN IF ADVISED OF THE
00023 //  POSSIBILITY OF SUCH DAMAGE.
00024 //-----------------------------------------------------------------------------
00032 #ifndef GENAPI_ICATEGORY_H
00033 #define GENAPI_ICATEGORY_H
00034 
00035 #include <Base/GCString.h>
00036 #include <GenApi/GenApiDll.h>
00037 #include <GenApi/Types.h>
00038 #include <GenApi/IValue.h>
00039 #include <GenApi/Container.h>
00040 
00041 #include <assert.h>
00042 
00043 #pragma warning ( push )
00044 #pragma warning ( disable : 4251 ) // XXX needs to have dll-interface to be used by clients of class YYY
00045 
00046 
00047 namespace GENAPI_NAMESPACE
00048 {
00049 
00050     interface INode;
00051 
00052 
00053     //*************************************************************
00054     // ICategory interface
00055     //*************************************************************
00056 
00061     interface GENAPI_DECL_ABSTRACT ICategory  : virtual public IValue
00062     {
00063 
00065         virtual void GetFeatures(FeatureList_t &Features) const =  0;
00066 
00067     };
00068 
00069 
00070     //*************************************************************
00071     // CCategoryRef class
00072     //*************************************************************
00073 
00074 #ifndef DOXYGEN_IGNORE
00075 
00081     template <class T>
00082     class CCategoryRefT : public CValueRefT<T>
00083     {
00084         typedef CValueRefT<T> ref;
00085 
00086     public:
00087         /*--------------------------------------------------------*/
00088         // ICategory
00089         /*--------------------------------------------------------*/
00090 
00092         virtual void GetFeatures(FeatureList_t &Features) const
00093         {
00094             if(ref::m_Ptr)
00095                 return ref::m_Ptr->GetFeatures(Features);
00096             else
00097                 throw ACCESS_EXCEPTION("Feature not present (reference not valid)");
00098         }
00099 
00100     };
00101 
00104     typedef CCategoryRefT<ICategory> CCategoryRef;
00105 
00106 #endif
00107 
00108 }
00109 #pragma warning ( pop )
00110 
00111 #endif // ifndef GENAPI_ICATEGORY_H


rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:04