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);
93 Base::InternalCheckError();
100 std::list<CNodeCallback*>::iterator ptrCallback;
101 for( ptrCallback = CallbacksToFire.begin(); ptrCallback != CallbacksToFire.end(); ptrCallback++ )
108 std::list<CNodeCallback*>::iterator ptrCallback;
109 for( ptrCallback = CallbacksToFire.begin(); ptrCallback != CallbacksToFire.end(); ptrCallback++ )
125 typename Base::EntryMethodFinalizer E(
this,
meGetIntValue, IgnoreCache );
133 int64_t IntValue = Base::InternalGetIntValue(
Verify, IgnoreCache);
136 Base::InternalCheckError();
150 return Base::InternalGetEntry(IntValue);
168 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()
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.
interface GENAPI_DECL_ABSTRACT IEnumeration
Interface for enumeration properties.
bool IsReadable(EAccessMode AccessMode)
Tests if readable.
interface GENAPI_DECL_ABSTRACT IEnumEntry
Interface of single enum value.
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.
virtual void GetEntries(NodeList_t &Entries)
Implementation of IEnumeration::GetEntries()
virtual IEnumeration & operator=(const GENICAM_NAMESPACE::gcstring &ValueStr)
Implementation of IEnumeration::operator=()
interface GENAPI_DECL_ABSTRACT IValue
Interface for value properties.
#define ACCESS_EXCEPTION_NODE
Fires a access error exception, e.g. throw ACCESS_ERROR_EXCEPTION("Not everybody") ...
interface GENAPI_DECL_ABSTRACT bool Verify
#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()
Part of the generic device API.
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.