Txtkey.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:  Hartmut Nebelung
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_TXTKEY_H
00032 #define GENAPI_TXTKEY_H
00033 
00034 #include "../IString.h"
00035 #include "IEEE1212Parser.h"
00036 #include "Node.h"
00037 #include "BaseT.h"
00038 #include "ValueT.h"
00039 #include "StringT.h"
00040 #include "NodeT.h"
00041 
00042 namespace GENAPI_NAMESPACE
00043 {
00044     //*************************************************************
00045     // CTxtKey class
00046     //*************************************************************
00047 
00055     class CTxtKeyImpl : public IString, public CNodeImpl
00056     {
00057     public:
00059         CTxtKeyImpl();
00060 
00061 
00062     protected:
00063         //-------------------------------------------------------------
00064         // IValue implementation
00065         //-------------------------------------------------------------
00067         #pragma BullseyeCoverage off
00068         virtual void InternalFromString(const GENICAM_NAMESPACE::gcstring& ValueStr, bool /*Verify*/)
00069         {
00070             //assert(false);
00071             throw LOGICAL_ERROR_EXCEPTION_NODE("NodeImpl %s can't set value from string  : %s. Use derived class!", m_Name.c_str(), ValueStr.c_str() );
00072         }
00073         #pragma BullseyeCoverage on
00074 
00076         virtual GENICAM_NAMESPACE::gcstring InternalToString(bool Verify = false, bool IgnoreCache = false);
00077 
00078         virtual EAccessMode InternalGetAccessMode() const;
00079 
00081         virtual EInterfaceType InternalGetPrincipalInterfaceType() const
00082         {
00083             return intfIString;
00084         }
00085 
00086 
00087     public:
00088         //-------------------------------------------------------------
00089         // Implementation of INodePrivate
00090         //-------------------------------------------------------------
00092         // \{
00093         virtual void SetProperty(CProperty &Property);
00094         virtual bool GetProperty(CNodeDataMap *pNodeDataMap, CPropertyID::EProperty_ID_t PropertyID, CNodeData::PropertyVector_t &PropertyList) const;
00095         virtual void FinalConstruct();
00096         // \}
00097 
00098         //-------------------------------------------------------------
00099         // IString implementation
00100         //-------------------------------------------------------------
00101     protected:
00103         virtual void InternalSetValue(const GENICAM_NAMESPACE::gcstring& Value, bool /*Verify = true*/){
00104             // assert(false);
00105             throw ACCESS_EXCEPTION_NODE("TxtKey : %s SetValue to %s failed. TxtKey is read only", m_Name.c_str(),Value.c_str() );
00106         }
00107 
00109         virtual GENICAM_NAMESPACE::gcstring InternalGetValue(bool Verify = false, bool IgnoreCache = false);
00110 
00112         virtual int64_t InternalGetMaxLength()
00113         {
00114             // assert(false);
00115             throw ACCESS_EXCEPTION_NODE("TxtKey : %s GetMaxLength failed. TxtKey is read only" );
00116         }
00117 
00118     protected:
00119         // inititialize when childs are initialized
00120         //-------------------------------------------------------------
00121         // Memeber variables
00122         //-------------------------------------------------------------
00123 
00124 
00126         uint16_t m_Key;
00127 
00129         GENICAM_NAMESPACE::gcstring m_Value;
00130 
00132         CIEEE1212Parser *m_pParser;
00133     };
00134 
00135     class CTxtKey : public BaseT< ValueT< NodeT< StringT< CTxtKeyImpl > > > >
00136     {
00137     };
00138 
00139 }
00140 
00141 #endif // GENAPI_TXTKEY_H


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