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 #ifdef _MSC_VER
00039 #   pragma warning ( disable : 4251 ) // XXX needs to have dll-interface to be used by clients of class YYY
00040 #endif
00041 
00042 namespace GENAPI_NAMESPACE
00043 {
00044     //-------------------------------------------------
00045 
00047     class CEnumSelectorDigit : public ISelectorDigit
00048     {
00049     public:
00051         CEnumSelectorDigit( 
00052             IBase *pBase 
00053             );
00054 
00055         // Implementation of ISelectorDigit
00056     public:
00057         virtual bool SetFirst();
00058         virtual bool SetNext(bool Tick = true);
00059         virtual void Restore();
00060         virtual GENICAM_NAMESPACE::gcstring ToString();
00061         virtual void GetSelectorList( GENAPI_NAMESPACE::FeatureList_t &SelectorList, bool Incremental = false );
00062 
00063     protected:
00065         bool SetSelector();
00066 
00068         CEnumerationPtr m_ptrEnumSelector;
00069 
00071         NodeList_t m_ptrEntries;
00072 
00074         NodeList_t::iterator m_itCurrentEntry;
00075 
00077         int64_t m_OriginalEnumIntValue;
00078 
00080         bool m_DigitHasChanged;
00081     };
00082 
00083     //-------------------------------------------------
00084 
00086     class CIntSelectorDigit : public ISelectorDigit
00087     {
00088     public:
00090         CIntSelectorDigit( 
00091             IBase *pBase 
00092             );
00093 
00094         // Implementation of ISelectorDigit
00095     public:
00096         virtual bool SetFirst();
00097         virtual bool SetNext(bool Tick = true);
00098         virtual void Restore();
00099         virtual GENICAM_NAMESPACE::gcstring ToString();
00100         virtual void GetSelectorList( GENAPI_NAMESPACE::FeatureList_t &SelectorList, bool Incremental = false );
00101 
00102     protected:
00104         CIntegerPtr m_ptrIntSelector;
00105 
00107         int64_t m_CurrentValue;
00108 
00110         int64_t m_OriginalIntValue;
00111 
00113         bool m_DigitHasChanged;
00114     };
00115 
00116 }
00117 #endif
00118 


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