GenApi  3.5.1
IEnumeration.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------------
2 // (c) 2006 by Basler Vision Technologies
3 // Author: Fritz Dierks
4 //
5 // License: This file is published under the license of the EMVA GenICam Standard Group.
6 // A text file describing the legal terms is included in your installation as 'GenICam_license.pdf'.
7 // If for some reason you are missing this file please contact the EMVA or visit the website
8 // (http://www.genicam.org) for a full copy.
9 //
10 // THIS SOFTWARE IS PROVIDED BY THE EMVA GENICAM STANDARD GROUP "AS IS"
11 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
12 // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
13 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE EMVA GENICAM STANDARD GROUP
14 // OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
15 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
16 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
17 // OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
18 // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
19 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
20 // POSSIBILITY OF SUCH DAMAGE.
21 //
22 //-----------------------------------------------------------------------------
29 #ifndef GENAPI_IENUMERATION_H
30 #define GENAPI_IENUMERATION_H
31 
32 #include <Base/GCStringVector.h>
33 #include <GenApi/GenApiDll.h>
34 #include <GenApi/IEnumEntry.h>
35 #include <GenApi/Types.h>
36 #include <GenApi/IValue.h>
37 
38 #ifdef _MSC_VER
39 # pragma warning ( push )
40 # pragma warning ( disable : 4251 ) // XXX needs to have dll-interface to be used by clients of class YYY
41 #endif
42 
43 
44 namespace GENAPI_NAMESPACE
45 {
46  //*************************************************************
47  // Enumeration interface
48  //*************************************************************
49 
54  GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IEnumeration : virtual public IValue
55  {
56 
58  virtual void GetSymbolics(StringList_t & Symbolics) = 0;
59 
61  virtual void GetEntries(NodeList_t & Entries) = 0;
62 
64  virtual IEnumeration& operator=(const GENICAM_NAMESPACE::gcstring& ValueStr) = 0;
65 
67 
71  virtual void SetIntValue(int64_t Value, bool Verify = true) = 0;
72 
75 
77 
82  virtual int64_t GetIntValue(bool Verify = false, bool IgnoreCache = false) = 0;
83 
85  virtual IEnumEntry *GetEntryByName(const GENICAM_NAMESPACE::gcstring& Symbolic) = 0;
86 
88  virtual IEnumEntry *GetEntry(const int64_t IntValue) = 0;
89 
91  virtual IEnumEntry *GetCurrentEntry(bool Verify = false, bool IgnoreCache = false) = 0;
92 
93  };
94 
95 }
96 
97 #ifdef _MSC_VER
98 # pragma warning ( pop )
99 #endif
100 
101 #endif // ifndef GENAPI_IENUMERATION_H
virtual int64_t GetIntValue(bool Verify=false, bool IgnoreCache=false)=0
Get integer node value.
Common types used in the public GenApi interface.
Portable string vector implementation.
GENICAM_NAMESPACE::gcstring_vector StringList_t
Definition: Types.h:147
virtual void GetEntries(NodeList_t &Entries)=0
Get list of entry nodes.
node_vector NodeList_t
a list of node references
Definition: INode.h:53
virtual GENICAM_NAMESPACE::gcstring operator*()=0
Get string node value.
virtual IBoolean & operator=(bool Value)
Set node value.
Definition: IBoolean.h:62
virtual IEnumEntry * GetEntryByName(const GENICAM_NAMESPACE::gcstring &Symbolic)=0
Get an entry node by name.
virtual void SetIntValue(int64_t Value, bool Verify=true)=0
Set integer node value.
virtual IEnumEntry * GetCurrentEntry(bool Verify=false, bool IgnoreCache=false)=0
Get the current entry.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IEnumeration
Interface for enumeration properties.
Definition: IEnumeration.h:58
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IValue
Interface for value properties.
Definition: IValue.h:59
A string class which is a clone of std::string.
Definition: GCString.h:50
virtual IEnumEntry * GetEntry(const int64_t IntValue)=0
Get an entry node by its IntValue.
declspec&#39;s to be used for GenApi Windows dll
Definition of the interface IValue.
Definition: ChunkAdapter.h:37
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IEnumEntry
Interface of single enum value.
Definition: IEnumEntry.h:58