Go to the documentation of this file.
31 #ifndef GENAPI_POINTER_H
32 #define GENAPI_POINTER_H
50 template <
class T,
class B = IBase>
63 :
m_pT( dynamic_cast<T*>(pB) )
74 m_pT =
dynamic_cast<T*
>(pB);
79 operator T*(void)
const
117 operator bool(
void)
const throw()
137 if (0 != nMustBeNull)
244 return dynamic_cast<IInteger*
>(
m_pT->GetNode()->GetCastAlias());
270 # pragma warning (push) // icc -W4 complains: controlling expression is constant
271 # pragma warning (disable : 279)
273 assert(pBase &&
"don't call this with a NULL pointer");
275 # pragma warning (pop)
278 switch(ptrNode->GetPrincipalInterfaceType())
311 template <
class T,
class B>
318 template <
class T,
class B>
325 template <
class T,
class B>
332 template <
class T,
class B>
344 #endif // ifndef GENAPI_POINTER_H
GENICAM_INTERFACE IInteger
Interface for integer properties.
@ intfIString
IString interface.
@ intfIBoolean
IBoolean interface.
Lexical analyzer for CIntSwissKnife.
CPointer< ICommand > CCommandPtr
SmartPointer for ICommand interface pointer.
@ intfIBase
IBase interface.
@ intfIRegister
IRegister interface.
CPointer< IUserData, INodeMap > CNodeMapUserDataPtr
SmartPointer for IUserData interface pointer.
@ intfIInteger
IInteger interface.
Definition of the IFloat interface.
bool IsWritable(EAccessMode AccessMode)
Tests if writable.
CFloatPtr & operator=(IBase *pB)
Assign IBase Pointer.
Definition of interface IEnumeration.
CPointer< IPort > CPortPtr
SmartPointer for IPort interface pointer.
CFloatPtr()
Default constructor.
A string class which is a clone of std::string.
CPointer< IChunkPort > CChunkPortPtr
SmartPointer for IChunkPort interface pointer.
CPointer< ISelector > CSelectorPtr
SmartPointer for ISelector interface pointer.
CFloatPtr(IBase *pB)
Constructor from IBase pointer type.
T * operator->(void) const
Dereferencing.
@ intfIValue
IValue interface.
@ intfIEnumEntry
IEnumEntry interface.
CPointer(B *pB)
Constructor from INode pointer type.
Forward declarations for GenICam types.
CPointer< IEnumEntry > CEnumEntryPtr
SmartPointer for IEnumEntry interface pointer.
T & operator()(void) const
Dereferencing.
@ intfIFloat
IFloat interface.
CPointer< IPortReplay > CPortReplayPtr
SmartPointer for IPortReplay interface pointer.
CPointer< IValue > CValuePtr
SmartPointer for IValue interface pointer.
bool operator==(const CPointer< T, B > &rT) const
pointer equal
CPointer< IPortRecorder > CPortRecorderPtr
SmartPointer for IPortRecorder interface pointer.
T & operator*(void) const
Dereferencing.
IEnumeration * GetEnumAlias()
gets the interface of an enum alias node.
IInteger * GetIntAlias()
gets the interface of an integer alias node.
CPointer< IPortWriteList, IPortWriteList > CPortWriteListPtr
SmartPointer for IPortWriteList interface pointer.
bool IsAvailable(EAccessMode AccessMode)
Tests if available.
@ intfIEnumeration
IEnumeration interface.
Definition of the interface IInteger.
@ intfIPort
IPort interface.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IEnumeration
Interface for enumeration properties.
bool IsReadable(EAccessMode AccessMode)
Tests if readable.
CPointer< IPortStackedConstruct > CPortStackedConstructPtr
SmartPointer for IPortStackedConstruct interface pointer.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IFloat
Interface for float properties.
CPointer< IDeviceInfo, INodeMap > CDeviceInfoPtr
SmartPointer for IDeviceInfo interface pointer.
bool IsImplemented(EAccessMode AccessMode)
Tests if implemented.
CPointer< ICategory > CCategoryPtr
SmartPointer for ICategory interface pointer.
@ intfICommand
ICommand interface.
CPointer< IUserData > CNodeUserDataPtr
SmartPointer for IUserData interface pointer.
Encapsulates a GenApi pointer dealing with the dynamic_cast automatically.
CPointer< IBoolean > CBooleanPtr
SmartPointer for IBoolean interface pointer.
@ intfICategory
ICategory interface.
CPointer< IPortConstruct > CPortConstructPtr
SmartPointer for IPortConstruct interface pointer.
CPointer & operator=(B *pB)
Assign INode Pointer.
CPointer< INodeMap, INodeMap > CNodeMapPtr
SmartPointer for INodeMap interface pointer.
bool IsValid() const
true if the pointer is valid
#define LOGICAL_ERROR_EXCEPTION
Fires a logical error exception, e.g. throw LOGICAL_ERROR_EXCEPTION("Should never reach this point")
CPointer< INode > CNodePtr
SmartPointer for INode interface pointer.
CPointer< IString > CStringPtr
SmartPointer for IString interface pointer.
CPointer< IEnumeration > CEnumerationPtr
SmartPointer for IEnumeration interface pointer.
T * m_pT
Underlying raw pointer.
bool operator==(T *pT) const
pointer equal
CPointer< IInteger > CIntegerPtr
SmartPointer for IInteger interface pointer.
CPointer< IBase > CBasePtr
SmartPointer for IBase interface pointer.
SmartPointer for IFloat interface pointer.
GENICAM_NAMESPACE::gcstring GetInterfaceName(IBase *pBase)
Returns the name of the main interface as string DEPRECATED, use IBase::GetPrincipalInterfaceType() i...
CPointer(void)
Default constructor.
CPointer< IRegister > CRegisterPtr
SmartPointer for IRegister interface pointer.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IBase
Base interface common to all nodes.
bool operator==(int nMustBeNull) const
pointer equal
rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Wed Dec 4 2024 03:10:11