EnumEntry.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:  Margret Albrecht
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_ENUMENTRY_H
00032 #define GENAPI_ENUMENTRY_H
00033 
00034 #include "../IEnumEntry.h"
00035 #include "Node.h"
00036 #include "NodeT.h"
00037 #include "BaseT.h"
00038 #include "ValueT.h"
00039 #include "EnumEntry.h"
00040 
00041 namespace GENAPI_NAMESPACE
00042 {
00043 
00045     class CEnumEntryImpl: public CNodeImpl, public IEnumEntry
00046     {
00047     public:
00048         //-------------------------------------------------------------
00050 
00051 
00052             CEnumEntryImpl();
00054 
00055         //-------------------------------------------------------------
00057 
00058 
00060             virtual EAccessMode InternalGetAccessMode() const;
00061 
00062 
00064             virtual EInterfaceType InternalGetPrincipalInterfaceType() const
00065             {
00066                 return intfIEnumEntry;
00067             }
00069 
00070         //-------------------------------------------------------------
00072 
00073 
00074             GENICAM_NAMESPACE::gcstring InternalGetDisplayName() const;
00076 
00077         //-------------------------------------------------------------
00079 
00080 
00081             virtual void FinalConstruct();
00083 
00084         //-------------------------------------------------------------
00086 
00087 
00088             virtual GENICAM_NAMESPACE::gcstring InternalToString(bool Verify = false, bool IgnoreCache = false);
00089 
00091             virtual void InternalFromString(const GENICAM_NAMESPACE::gcstring& ValueStr, bool Verify=true);
00093 
00094 
00095         //-------------------------------------------------------------
00097 
00098             virtual GENICAM_NAMESPACE::gcstring GetSymbolic() const;
00099             virtual int64_t GetValue();
00100             virtual double GetNumericValue();
00101             virtual bool IsSelfClearing();
00103 
00104 
00105 
00106             virtual void SetProperty( CProperty &Property );
00107             virtual bool GetProperty( CNodeDataMap *pNodeDataMap, CPropertyID::EProperty_ID_t PropertyID, CNodeData::PropertyVector_t &PropertyList ) const;
00108 
00109 
00110     private:
00112         int64_t m_Value;
00113 
00115         GENICAM_NAMESPACE::gcstring m_Symbolic;
00116 
00118         double m_NumericValue;
00119 
00121         EYesNo m_IsSelfClearing;
00122 
00123     };
00124 
00126     class CEnumEntry : public BaseT< ValueT< NodeT < CEnumEntryImpl > > >
00127     {
00128     };
00129 }
00130 
00131 #endif // ifndef GENAPI_ENUMENTRY_H


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