SelectorDigit.h
Go to the documentation of this file.
00001 //-----------------------------------------------------------------------------
00002 //  (c) 2010 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 //-----------------------------------------------------------------------------
00029 #ifndef GENAPI_SELECTORDIGIT_H
00030 #define GENAPI_SELECTORDIGIT_H
00031 
00032 #include "GenApi/ISelectorDigit.h"
00033 #include "GenApi/IBase.h"
00034 #include "GenApi/INode.h"
00035 #include "GenApi/Pointer.h"
00036 
00037 #include <list>
00038 #pragma warning ( disable : 4251 ) // XXX needs to have dll-interface to be used by clients of class YYY
00039 
00040 namespace GENAPI_NAMESPACE
00041 {
00042     //-------------------------------------------------
00043 
00045     class CEnumSelectorDigit : public ISelectorDigit
00046     {
00047     public:
00049         CEnumSelectorDigit( 
00050             IBase *pBase 
00051             );
00052 
00053         // Implementation of ISelectorDigit
00054     public:
00055         virtual bool SetFirst();
00056         virtual bool SetNext(bool Tick = true);
00057         virtual void Restore();
00058         virtual GENICAM_NAMESPACE::gcstring ToString();
00059         virtual void GetSelectorList( GENAPI_NAMESPACE::FeatureList_t &SelectorList, bool Incremental = false );
00060 
00061     protected:
00063         bool SetSelector();
00064 
00066         CEnumerationPtr m_ptrEnumSelector;
00067 
00069         NodeList_t m_ptrEntries;
00070 
00072         NodeList_t::iterator m_itCurrentEntry;
00073 
00075         int64_t m_OriginalEnumIntValue;
00076 
00078         bool m_DigitHasChanged;
00079     };
00080 
00081     //-------------------------------------------------
00082 
00084     class CIntSelectorDigit : public ISelectorDigit
00085     {
00086     public:
00088         CIntSelectorDigit( 
00089             IBase *pBase 
00090             );
00091 
00092         // Implementation of ISelectorDigit
00093     public:
00094         virtual bool SetFirst();
00095         virtual bool SetNext(bool Tick = true);
00096         virtual void Restore();
00097         virtual GENICAM_NAMESPACE::gcstring ToString();
00098         virtual void GetSelectorList( GENAPI_NAMESPACE::FeatureList_t &SelectorList, bool Incremental = false );
00099 
00100     protected:
00102         CIntegerPtr m_ptrIntSelector;
00103 
00105         int64_t m_CurrentValue;
00106 
00108         int64_t m_OriginalIntValue;
00109 
00111         bool m_DigitHasChanged;
00112     };
00113 
00114 }
00115 #endif
00116 


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