Spinnaker SDK C++
4.1.0.157
 
 

 
Loading...
Searching...
No Matches
CEnumerationTRef< EnumT > Class Template Reference

Interface for string properties. More...

#include <EnumNodeT.h>

Inheritance diagram for CEnumerationTRef< EnumT >:
EnumNode ValueNode Node

Public Member Functions

 CEnumerationTRef ()
 
 CEnumerationTRef (std::shared_ptr< Node::NodeImpl > pEnumeration)
 
virtual ~CEnumerationTRef ()
 
virtual void SetValue (EnumT Value, bool Verify=true)
 Set node value.
 
virtual IEnumerationoperator= (EnumT Value)
 Set node value.
 
virtual EnumT GetValue (bool Verify=false, bool IgnoreCache=false)
 Get node value.
 
virtual EnumT operator() ()
 Get node value.
 
virtual IEnumerationoperator= (const GenICam::gcstring &ValueStr)
 Set node value.
 
virtual IEnumEntryGetEntry (const EnumT Value)
 returns the EnumEntry object belonging to the Value
 
virtual IEnumEntryGetEntry (const int64_t IntValue)
 Get an entry node by its IntValue.
 
virtual IEnumEntryGetCurrentEntry (bool Verify=false, bool IgnoreCache=false)
 Get the current entry.
 
virtual void SetReference (INode *pBase)
 overload SetReference for EnumerationT
 
virtual void SetEnumReference (int Index, GenICam::gcstring Name)
 sets the Enum value corresponding to a value
 
virtual void SetNumEnums (int NumEnums)
 sets the number of enum values
 
- Public Member Functions inherited from EnumNode
 EnumNode ()
 
 EnumNode (std::shared_ptr< Node::NodeImpl > pEnumeration)
 
virtual ~EnumNode ()
 
virtual void GetSymbolics (StringList_t &Symbolics)
 Get list of symbolic Values.
 
virtual void GetEntries (NodeList_t &Entries)
 Get list of entry nodes.
 
virtual IEnumerationoperator= (const GenICam::gcstring &ValueStr)
 Set string node value.
 
virtual void SetIntValue (int64_t Value, bool Verify=true)
 Set integer node value.
 
virtual GenICam::gcstring operator* ()
 Get string node value.
 
virtual int64_t GetIntValue (bool Verify=false, bool IgnoreCache=false)
 Get integer node value.
 
virtual IEnumEntryGetEntryByName (const GenICam::gcstring &Symbolic)
 Get an entry node by name.
 
virtual IEnumEntryGetEntry (const int64_t IntValue)
 Get an entry node by its IntValue.
 
virtual IEnumEntryGetCurrentEntry (bool Verify=false, bool IgnoreCache=false)
 Get the current entry.
 
virtual void SetReference (INode *pBase)
 overload SetReference for Enumeration
 
- Public Member Functions inherited from ValueNode
 ValueNode ()
 Constructor.
 
 ValueNode (std::shared_ptr< Node::NodeImpl > pValue)
 constructor with GenICam IValue
 
 ~ValueNode ()
 Destructor.
 
virtual INodeGetNode ()
 
virtual GenICam::gcstring ToString (bool Verify=false, bool IgnoreCache=false)
 Get content of the node as string.
 
virtual void FromString (const GenICam::gcstring &ValueStr, bool Verify=true)
 Set content of the node as string.
 
virtual bool IsValueCacheValid () const
 Checks if the value comes from cache or is requested from another node.
 
virtual void SetReference (INode *pBase)
 overload SetReference for Value
 
- Public Member Functions inherited from Node
 Node ()
 Constructor.
 
 Node (std::shared_ptr< Node::NodeImpl > pNodeHandle)
 Constructor.
 
 ~Node ()
 Destructor.
 
virtual GenICam::gcstring GetName (bool FullQualified=false) const
 Get node name.
 
virtual GenApi::ENameSpace GetNameSpace () const
 Get name space.
 
virtual EVisibility GetVisibility () const
 Get the recommended visibility of the node.
 
virtual void InvalidateNode ()
 Indicates that the node's value may have changed.
 
virtual bool IsCachable () const
 Is the node value cacheable.
 
virtual EYesNo IsAccessModeCacheable () const
 True if the AccessMode can be cached.
 
virtual ECachingMode GetCachingMode () const
 Get Caching Mode.
 
virtual int64_t GetPollingTime () const
 recommended polling time (for not cacheable nodes)
 
virtual GenICam::gcstring GetToolTip () const
 Get a short description of the node.
 
virtual GenICam::gcstring GetDescription () const
 Get a long description of the node.
 
virtual GenICam::gcstring GetDisplayName () const
 Get a name string for display.
 
virtual GenICam::gcstring GetDeviceName () const
 Get a name of the device.
 
virtual void GetChildren (GenApi::NodeList_t &Children, ELinkType LinkType=ctReadingChildren) const
 Get all nodes this node directly depends on.
 
virtual void GetParents (GenApi::NodeList_t &Parents) const
 Gets all nodes this node is directly depending on.
 
virtual void GetLockNodes (GenApi::NodeList_t &LockNodes) const
 Gets all nodes which can directly lock this node.
 
virtual CallbackHandleType RegisterCallback (CNodeCallback *pCallback)
 Register change callback Takes ownership of the CNodeCallback object.
 
virtual bool DeregisterCallback (CallbackHandleType hCallback)
 De register change callback Destroys CNodeCallback object.
 
virtual INodeMapGetNodeMap () const
 Retrieves the central node map.
 
virtual GenICam::gcstring GetEventID () const
 Get the EventId of the node.
 
virtual bool IsStreamable () const
 True if the node is streamable.
 
virtual void GetPropertyNames (GenICam::gcstring_vector &PropertyNames) const
 Returns a list of the names all properties set during initialization.
 
virtual bool GetProperty (const GenICam::gcstring &PropertyName, GenICam::gcstring &ValueStr, GenICam::gcstring &AttributeStr)
 Retrieves a property plus an additional attribute by name If a property has multiple values/attribute they come with Tabs as delimiters.
 
virtual void ImposeAccessMode (EAccessMode ImposedAccessMode)
 Imposes an access mode to the natural access mode of the node.
 
virtual void ImposeVisibility (EVisibility ImposedVisibility)
 Imposes a visibility to the natural visibility of the node.
 
virtual INodeGetAlias () const
 Retrieves the a node which describes the same feature in a different way.
 
virtual INodeGetCastAlias () const
 Retrieves the a node which describes the same feature so that it can be casted.
 
virtual GenICam::gcstring GetDocuURL () const
 Gets a URL pointing to the documentation of that feature.
 
virtual bool IsDeprecated () const
 True if the node should not be used any more.
 
virtual EInterfaceType GetPrincipalInterfaceType () const
 Get the type of the main interface of a node.
 
virtual bool IsFeature () const
 True if the node can be reached via category nodes from a category node named "Root".
 
void SetNodeHandle (std::shared_ptr< Node::NodeImpl > pNodeHandle)
 Set Node handle.
 
std::shared_ptr< Node::NodeImpl > GetNodeHandle () const
 Get Node handle.
 
virtual EAccessMode GetAccessMode () const
 Base interface overrides.
 
virtual bool IsSelector () const
 Selector interface overrides.
 
virtual void GetSelectedFeatures (FeatureList_t &) const
 retrieve the group of selected features
 
virtual void GetSelectingFeatures (FeatureList_t &) const
 retrieve the group of features selecting this node
 
virtual void SetReference (INode *pBase)
 Reference interface overrides \ingroup Spinnaker_GenApi_PublicImpl.
 
virtual void SetReference (ISelector *pBase)
 
void SetNodeMap (INodeMap *pNodeMap)
 
virtual bool operator== (int nullPtr) const
 
virtual bool operator!= (int nullPtr) const
 

Additional Inherited Members

- Protected Attributes inherited from EnumNode
std::shared_ptr< Node::NodeImpl > m_pEnumeration
 
- Protected Attributes inherited from Node
std::shared_ptr< Node::NodeImpl > m_pNodeData
 
std::list< CallbackHandleType_t * > m_Callbacks
 List of callbacks.
 
INodeMapm_pNodeMap
 

Detailed Description

template<class EnumT>
class Spinnaker::GenApi::CEnumerationTRef< EnumT >

Interface for string properties.

Constructor & Destructor Documentation

◆ CEnumerationTRef() [1/2]

template<class EnumT >
CEnumerationTRef ( )

◆ CEnumerationTRef() [2/2]

template<class EnumT >
CEnumerationTRef ( std::shared_ptr< Node::NodeImpl >  pEnumeration)

◆ ~CEnumerationTRef()

template<class EnumT >
virtual ~CEnumerationTRef ( )
virtual

Member Function Documentation

◆ GetCurrentEntry()

template<class EnumT >
virtual IEnumEntry * GetCurrentEntry ( bool  Verify = false,
bool  IgnoreCache = false 
)
virtual

Get the current entry.

Reimplemented from EnumNode.

◆ GetEntry() [1/2]

template<class EnumT >
virtual IEnumEntry * GetEntry ( const EnumT  Value)
virtual

returns the EnumEntry object belonging to the Value

◆ GetEntry() [2/2]

template<class EnumT >
virtual IEnumEntry * GetEntry ( const int64_t  IntValue)
virtual

Get an entry node by its IntValue.

Reimplemented from EnumNode.

◆ GetValue()

template<class EnumT >
virtual EnumT GetValue ( bool  Verify = false,
bool  IgnoreCache = false 
)
virtual

Get node value.

Parameters
VerifyEnables Range verification (default = false). The AccessMode is always checked
IgnoreCacheIf true the value is read ignoring any caches (default = false)
Returns
The value read

◆ operator()()

template<class EnumT >
virtual EnumT operator() ( )
virtual

Get node value.

◆ operator=() [1/2]

template<class EnumT >
virtual IEnumeration & operator= ( const GenICam::gcstring ValueStr)
virtual

Set node value.

Note : the operator= is not inherited thus the operator= versions from IEnumeration must be implemented again

Reimplemented from EnumNode.

◆ operator=() [2/2]

template<class EnumT >
virtual IEnumeration & operator= ( EnumT  Value)
virtual

Set node value.

◆ SetEnumReference()

template<class EnumT >
virtual void SetEnumReference ( int  Index,
GenICam::gcstring  Name 
)
virtual

sets the Enum value corresponding to a value

◆ SetNumEnums()

template<class EnumT >
virtual void SetNumEnums ( int  NumEnums)
virtual

sets the number of enum values

◆ SetReference()

template<class EnumT >
virtual void SetReference ( INode pBase)
virtual

overload SetReference for EnumerationT

Reimplemented from EnumNode.

◆ SetValue()

template<class EnumT >
virtual void SetValue ( EnumT  Value,
bool  Verify = true 
)
virtual

Set node value.

Parameters
ValueThe value to set
VerifyEnables AccessMode and Range verification (default = true)

The documentation for this class was generated from the following file: