31 #ifndef GENAPI_ENUMERATIONT_H 32 #define GENAPI_ENUMERATIONT_H 35 #include "GenApi/impl/Internal_Compatibility.h" 36 #include "GenApi/impl/Log.h" 53 return Base::InternalGetSymbolics(Symbolics);
61 return Base::InternalGetEntries(Entries);
75 std::list<CNodeCallback*> CallbacksToFire;
86 typename Base::PostSetValueFinalizer PostSetValueCaller(
this, CallbacksToFire);
90 Base::InternalSetIntValue(Value,
Verify);
94 Base::InternalCheckError();
99 std::list<CNodeCallback*>::iterator ptrCallback;
100 for( ptrCallback = CallbacksToFire.begin(); ptrCallback != CallbacksToFire.end(); ptrCallback++ )
107 std::list<CNodeCallback*>::iterator ptrCallback;
108 for( ptrCallback = CallbacksToFire.begin(); ptrCallback != CallbacksToFire.end(); ptrCallback++ )
124 typename Base::EntryMethodFinalizer E(
this,
meGetIntValue, IgnoreCache );
132 int64_t IntValue = Base::InternalGetIntValue(
Verify, IgnoreCache);
135 Base::InternalCheckError();
149 return Base::InternalGetEntry(IntValue);
167 return Base::InternalGetEntryByName(Symbolic);
virtual IEnumEntry * GetEntry(const int64_t IntValue)
Get an entry node by its IntValue.
Implementation of the IEnumeration Interface.
virtual IEnumEntry * GetEntryByName(const GENICAM_NAMESPACE::gcstring &Symbolic)
Implementation of IEnumeration::GetEntryByName()
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT bool Verify
virtual GENICAM_NAMESPACE::gcstring operator*()
Implementation of IEnumeration::operator*()
virtual void GetSymbolics(StringList_t &Symbolics)
Implementation of IEnumeration::GetSymbolics()
virtual IEnumEntry * GetCurrentEntry(bool Verify=false, bool IgnoreCache=false)
Get the current entry.
bool IsReadable(EAccessMode AccessMode)
Tests if readable.
virtual void FromString(const GENICAM_NAMESPACE::gcstring &ValueStr, bool Verify=true)=0
Set content of the node as string.
node_vector NodeList_t
a list of node references
virtual GENICAM_NAMESPACE::gcstring ToString()=0
Returns a string representation of the digit.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IEnumeration
Interface for enumeration properties.
virtual void GetEntries(NodeList_t &Entries)
Implementation of IEnumeration::GetEntries()
virtual IEnumeration & operator=(const GENICAM_NAMESPACE::gcstring &ValueStr)
Implementation of IEnumeration::operator=()
#define ACCESS_EXCEPTION_NODE
Fires a access error exception, e.g. throw ACCESS_ERROR_EXCEPTION("Not everybody") ...
#define GCLOGINFOPUSH(cat,...)
virtual void SetIntValue(int64_t Value, bool Verify=true)
Implementation of IEnumeration::SetIntValue()
A string class which is a clone of std::string.
bool IsWritable(EAccessMode AccessMode)
Tests if writable.
Definition of interface IEnumeration.
#define GCLOGINFOPOP(cat,...)
GENICAM_NAMESPACE::gcstring_vector StringList_t
A list of strings.
virtual int64_t GetIntValue(bool Verify=false, bool IgnoreCache=false)
Implementation of IEnumeration::GetIntValue()
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IEnumEntry
Interface of single enum value.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IValue
Interface for value properties.
Lexical analyzer for CIntSwissKnife.
callback is fired on leaving the tree inside the lock-guarded area
virtual CLock & GetLock() const =0
Returns the lock which guards the node map.