SelectorDigit.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------------
2 // (c) 2010 by Basler Vision Technologies
3 // Section: Vision Components
4 // Project: GenApi
5 // Author: Fritz Dierks
6 // $Header$
7 //
8 // License: This file is published under the license of the EMVA GenICam Standard Group.
9 // A text file describing the legal terms is included in your installation as 'GenICam_license.pdf'.
10 // If for some reason you are missing this file please contact the EMVA or visit the website
11 // (http://www.genicam.org) for a full copy.
12 //
13 // THIS SOFTWARE IS PROVIDED BY THE EMVA GENICAM STANDARD GROUP "AS IS"
14 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
15 // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE EMVA GENICAM STANDARD GROUP
17 // OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
20 // OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
21 // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
23 // POSSIBILITY OF SUCH DAMAGE.
24 //-----------------------------------------------------------------------------
29 #ifndef GENAPI_SELECTORDIGIT_H
30 #define GENAPI_SELECTORDIGIT_H
31 
32 #include "GenApi/ISelectorDigit.h"
33 #include "GenApi/IBase.h"
34 #include "GenApi/INode.h"
35 #include "GenApi/Pointer.h"
36 
37 #include <list>
38 #ifdef _MSC_VER
39 # pragma warning ( disable : 4251 ) // XXX needs to have dll-interface to be used by clients of class YYY
40 #endif
41 
42 namespace GENAPI_NAMESPACE
43 {
44  //-------------------------------------------------
45 
48  {
49  public:
52  IBase *pBase
53  );
54 
55  // Implementation of ISelectorDigit
56  public:
57  virtual bool SetFirst();
58  virtual bool SetNext(bool Tick = true);
59  virtual void Restore();
61  virtual void GetSelectorList( GENAPI_NAMESPACE::FeatureList_t &SelectorList, bool Incremental = false );
62 
63  protected:
65  bool SetSelector();
66 
69 
72 
74  NodeList_t::iterator m_itCurrentEntry;
75 
78 
81  };
82 
83  //-------------------------------------------------
84 
87  {
88  public:
91  IBase *pBase
92  );
93 
94  // Implementation of ISelectorDigit
95  public:
96  virtual bool SetFirst();
97  virtual bool SetNext(bool Tick = true);
98  virtual void Restore();
100  virtual void GetSelectorList( GENAPI_NAMESPACE::FeatureList_t &SelectorList, bool Incremental = false );
101 
102  protected:
105 
108 
111 
114  };
115 
116 }
117 #endif
118 
int64_t m_CurrentValue
the current value of this "digit"
Definition of interface IBase.
CIntegerPtr m_ptrIntSelector
the selecting node
Definition of interface INode and types NodeList_t and CallbackHandleType:
NodeList_t m_ptrEntries
the symbolics available for the enum selector
Definition: SelectorDigit.h:71
__int64 int64_t
Definition: config-win32.h:21
virtual GENICAM_NAMESPACE::gcstring ToString()
bool m_DigitHasChanged
indicates if the digit has changed
interface GENAPI_DECL_ABSTRACT ISelectorDigit
Interface of a "digit" of the "counter" formed by the selector set.
interface GENAPI_DECL_ABSTRACT IBase
Base interface common to all nodes.
Definition: IBase.h:55
virtual void GetSelectorList(GENAPI_NAMESPACE::FeatureList_t &SelectorList, bool Incremental=false)
A selector set counter digit formed by an integer.
Definition: SelectorDigit.h:86
node_vector NodeList_t
a list of node references
Definition: INode.h:55
CEnumerationPtr m_ptrEnumSelector
the selecting node
Definition: SelectorDigit.h:68
bool SetSelector()
Sets the selector value to the device.
NodeList_t::iterator m_itCurrentEntry
the current value of this "digit"
Definition: SelectorDigit.h:74
CEnumSelectorDigit(IBase *pBase)
Constructor.
bool m_DigitHasChanged
indicates if the digit has changed
Definition: SelectorDigit.h:80
int64_t m_OriginalEnumIntValue
stores the original value of the selector
Definition: SelectorDigit.h:77
Definition of template CPointer.
A string class which is a clone of std::string.
Definition: GCString.h:52
A selector set counter digit formed by an enumeration.
Definition: SelectorDigit.h:47
int64_t m_OriginalIntValue
stores the original value of the selector
virtual bool SetNext(bool Tick=true)
Part of the generic device API.
Definition: Autovector.h:48


rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Thu Jun 6 2019 19:10:54