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 #include "GenApi/IBoolean.h"
37 
38 #include <list>
39 #ifdef _MSC_VER
40 # pragma warning ( disable : 4251 ) // XXX needs to have dll-interface to be used by clients of class YYY
41 #endif
42 
43 namespace GENAPI_NAMESPACE
44 {
45  //-------------------------------------------------
46 
49  {
50  public:
53  IBase *pBase
54  );
55 
56  // Implementation of ISelectorDigit
57  public:
58  virtual bool SetFirst();
59  virtual bool SetNext(bool Tick = true);
60  virtual void Restore();
62  virtual void GetSelectorList( GENAPI_NAMESPACE::FeatureList_t &SelectorList, bool Incremental = false );
63 
64  protected:
66  bool SetSelector();
67 
70 
73 
75  NodeList_t::iterator m_itCurrentEntry;
76 
79 
82  };
83 
84  //-------------------------------------------------
85 
88  {
89  public:
92  IBase *pBase
93  );
94 
95  // Implementation of ISelectorDigit
96  public:
97  virtual bool SetFirst();
98  virtual bool SetNext(bool Tick = true);
99  virtual void Restore();
101  virtual void GetSelectorList( GENAPI_NAMESPACE::FeatureList_t &SelectorList, bool Incremental = false );
102 
103  protected:
106 
109 
112 
115  };
116 
117  //-----------------------------------------------------
119  {
120  public:
121  explicit CBooleanSelectorDigit( IBase* pBase );
122  public:
123  virtual bool SetFirst();
124  virtual bool SetNext( bool Tick = true );
125  virtual void Restore();
127  virtual void GetSelectorList( GENAPI_NAMESPACE::FeatureList_t& SelectorList, bool Incremental = false );
128  private:
132  };
133 }
134 #endif
135 
int64_t m_CurrentValue
the current value of this "digit"
Definition of interface IBase.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT ISelectorDigit
Interface of a "digit" of the "counter" formed by the selector set.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IBase
Base interface common to all nodes.
Definition: IBase.h:55
Definition of IBoolean interface.
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:72
__int64 int64_t
Definition: config-win32.h:21
virtual GENICAM_NAMESPACE::gcstring ToString()
bool m_DigitHasChanged
indicates if the digit has changed
virtual void GetSelectorList(GENAPI_NAMESPACE::FeatureList_t &SelectorList, bool Incremental=false)
A selector set counter digit formed by an integer.
Definition: SelectorDigit.h:87
node_vector NodeList_t
a list of node references
Definition: INode.h:55
CEnumerationPtr m_ptrEnumSelector
the selecting node
Definition: SelectorDigit.h:69
bool SetSelector()
Sets the selector value to the device.
NodeList_t::iterator m_itCurrentEntry
the current value of this "digit"
Definition: SelectorDigit.h:75
CEnumSelectorDigit(IBase *pBase)
Constructor.
bool m_DigitHasChanged
indicates if the digit has changed
Definition: SelectorDigit.h:81
int64_t m_OriginalEnumIntValue
stores the original value of the selector
Definition: SelectorDigit.h:78
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:48
int64_t m_OriginalIntValue
stores the original value of the selector
virtual bool SetNext(bool Tick=true)
Lexical analyzer for CIntSwissKnife.
Definition: Autovector.h:48


rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Wed Mar 17 2021 02:48:41