IntReg.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_INTREG_H
00032 #define GENAPI_INTREG_H
00033 
00034 #include "Register.h"
00035 #include "../IRegister.h"
00036 #include "BaseT.h"
00037 #include "ValueT.h"
00038 #include "NodeT.h"
00039 #include "IntegerT.h"
00040 #include "RegisterT.h"
00041 
00042 namespace GENAPI_NAMESPACE
00043 {
00044     //*************************************************************
00045     // CIntRegImpl class
00046     //*************************************************************
00047 
00054     class CIntRegImpl
00055         : public IInteger
00056         , public CRegisterImpl
00057     {
00058     public:
00060         CIntRegImpl();
00061 
00063         virtual EInterfaceType InternalGetPrincipalInterfaceType() const
00064         {
00065             return intfIInteger;
00066         }
00067 
00068     protected:
00069 
00070         //-------------------------------------------------------------
00071         // IRegister implementation
00072         //-------------------------------------------------------------
00073 
00075         virtual int64_t InternalGetLength();
00076 
00078         void UpdateMasks() const;
00079 
00081         mutable bool m_MasksAreValid;
00082 
00083         //-------------------------------------------------------------
00084         // IInteger implementation
00085         //-------------------------------------------------------------
00086 
00088         virtual void InternalSetValue(int64_t Value, bool Verify = true);
00089 
00091         virtual int64_t InternalGetValue(bool Verify = false, bool IgnoreCache = false);
00092 
00094         virtual int64_t InternalGetMin() const;
00095 
00097         virtual int64_t InternalGetMax() const;
00098 
00100         virtual const int64_autovector_t InternalGetListOfValidValues()
00101         {
00102             return int64_autovector_t();
00103         }
00104 
00106         virtual int64_t InternalGetInc() const;
00107 
00109         virtual  ERepresentation InternalGetRepresentation() const;
00110 
00112         virtual GENICAM_NAMESPACE::gcstring InternalGetUnit();
00113 
00114         //-------------------------------------------------------------
00115         // INodePrivate implementation
00116         //-------------------------------------------------------------
00117 
00118         virtual void SetInvalid(ESetInvalidMode simMode);
00119 
00120     public:
00121         //-------------------------------------------------------------
00122         // Initializing
00123         //-------------------------------------------------------------
00124 
00125         
00126     virtual void SetProperty( CProperty &Property );
00127     virtual bool GetProperty(CNodeDataMap *pNodeDataMap, CPropertyID::EProperty_ID_t PropertyID, CNodeData::PropertyVector_t &PropertyList) const;
00128         
00129 
00130     protected:
00132         void ReadReg(uint8_t* ValueBytes, bool Verify = false, bool IgnoreCache = false);
00133 
00135         void WriteReg(uint8_t* ValueBytes, bool Verify = true);
00136 
00137         //-------------------------------------------------------------
00138         // Member variables
00139         //-------------------------------------------------------------
00140 
00142         mutable int64_t  m_Min;
00143 
00145         mutable int64_t  m_Max;
00146 
00148         ESign m_Sign;
00149 
00151         ERepresentation  m_Representation;
00152 
00154         GENICAM_NAMESPACE::gcstring m_Unit;
00155 
00157         EEndianess m_Endianess;
00158 
00160         mutable uint64_t m_SignBit;
00161 
00163         mutable uint64_t m_SignMask;
00164 
00165     };
00166 
00168     class CIntReg : public BaseT < ValueT < IntegerT < RegisterT < NodeT <  CIntRegImpl > > > > >
00169     {
00170     };
00171 }
00172 
00173 #endif // GENAPI_INTREG_H


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