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_MASKEDINTREG_H 00032 #define GENAPI_MASKEDINTREG_H 00033 00034 #include "IntReg.h" 00035 00036 00037 namespace GENAPI_NAMESPACE 00038 { 00039 //************************************************************* 00040 // CMaskedIntReg class 00041 //************************************************************* 00042 00044 00046 class CMaskedIntRegImpl : public CIntRegImpl 00047 { 00048 public: 00050 CMaskedIntRegImpl(); 00051 00053 virtual EInterfaceType InternalGetPrincipalInterfaceType() const 00054 { 00055 return intfIInteger; 00056 } 00057 00058 //------------------------------------------------------------- 00059 // INodePrivate implementation 00060 //------------------------------------------------------------- 00061 00062 00064 virtual void FinalConstruct(); 00065 00066 //------------------------------------------------------------- 00067 // IRegister implementation 00068 //------------------------------------------------------------- 00069 00071 virtual int64_t InternalGetLength(); 00072 00073 00074 //------------------------------------------------------------- 00075 // IInteger implementation 00076 //------------------------------------------------------------- 00077 00078 protected: 00080 virtual void InternalSetValue(int64_t Value, bool Verify = true); 00081 00082 00084 virtual int64_t InternalGetValue(bool Verify = false, bool IgnoreCache = false); 00085 00086 public: 00087 00088 00089 //------------------------------------------------------------- 00090 // Initializing 00091 //------------------------------------------------------------- 00092 00093 00094 virtual void SetProperty( CProperty &Property ); 00095 virtual bool GetProperty(CNodeDataMap *pNodeDataMap, CPropertyID::EProperty_ID_t PropertyID, CNodeData::PropertyVector_t &PropertyList) const; 00096 00097 protected: 00098 //------------------------------------------------------------- 00099 // Memeber variables 00100 //------------------------------------------------------------- 00102 uint32_t m_LSB; 00103 00105 uint32_t m_LSB_property; 00106 00108 uint32_t m_MSB; 00109 00111 uint32_t m_MSB_property; 00112 00114 uint64_t m_Mask; 00115 00116 }; 00117 00118 class CMaskedIntReg 00119 : public BaseT< ValueT< NodeT < IntegerT< RegisterT< CMaskedIntRegImpl> > > > > 00120 { 00121 }; 00122 00123 } 00124 00125 #endif // GENAPI_MASKEDINTREG_H