Category.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 //-----------------------------------------------------------------------------
00031 #ifndef GENAPI_CATEGORY_H
00032 #define GENAPI_CATEGORY_H
00033 
00034 #include "../ICategory.h"
00035 #include "Node.h"
00036 #include "BaseT.h"
00037 #include "ValueT.h"
00038 #include "NodeT.h"
00039 
00040 namespace GENAPI_NAMESPACE
00041 {
00042 
00043     //*************************************************************
00044     // CCategory class
00045     //*************************************************************
00046 
00052     class CCategoryImpl : public CNodeImpl, public ICategory
00053     {
00054     public:
00055 
00057         CCategoryImpl();
00058 
00059         //-------------------------------------------------------------
00060         // IValue implementation (partial only)
00061         //-------------------------------------------------------------
00062 
00063     protected:
00065         virtual INode* InternalGetNode();
00066 
00068         virtual GENICAM_NAMESPACE::gcstring InternalToString(bool /*Verify = false*/, bool /*IgnoreCache = false*/)
00069         {
00070             return InternalGetNode()->GetDisplayName();
00071         }
00072 
00074         #pragma BullseyeCoverage off
00075         virtual void InternalFromString(const GENICAM_NAMESPACE::gcstring& /*ValueStr*/, bool /*Verify*/ )
00076         {
00077             // Categories are read-only
00078             assert(false);
00079         }
00080         #pragma BullseyeCoverage on
00081         virtual void Override(EVisibility newVisibility);
00082     public:
00083         //-------------------------------------------------------------
00084         // ICategory implementation
00085         //-------------------------------------------------------------
00086 
00088         virtual void GetFeatures(FeatureList_t &Features) const;
00089 
00090         
00091         virtual void SetProperty( CProperty &Property );
00092         virtual bool GetProperty(CNodeDataMap *pNodeDataMap, CPropertyID::EProperty_ID_t PropertyID, CNodeData::PropertyVector_t &PropertyList) const;
00093         
00094         virtual void FinalConstruct();
00095 
00097         virtual EAccessMode InternalGetAccessMode() const;
00098 
00100         virtual EInterfaceType InternalGetPrincipalInterfaceType() const
00101         {
00102             return intfICategory;
00103         }
00104 
00105         void SetInvalid(ESetInvalidMode simMode);
00106 
00108         FeatureList_t m_Features;
00109     };
00110 
00111     class CCategory : public BaseT< ValueT< NodeT< CCategoryImpl > > >
00112     {
00113     };
00114 
00115 }
00116 
00117 #endif // ifndef GENAPI_CATEGORY_H


rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Thu Jun 6 2019 18:42:46