rwlogo

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
List of all members | Public Member Functions
IlvCOMInterface< INTERFACE > Class Template Reference

This class queries for a specific interface from an IUnknown* or from another IlvAbstractCOMInterface. More...

#include <ilviews/windows/com.h>

Inheritance diagram for IlvCOMInterface< INTERFACE >:
IlvAbstractCOMInterface< INTERFACE >

Public Member Functions

 IlvCOMInterface ()
 Default constructor. More...
 
 IlvCOMInterface (IlvCOMInterface const &)
 Copy constructor. More...
 
 IlvCOMInterface (INTERFACE *interf)
 Constructor used to encapsulate a pointer to an INTERFACE. More...
 
 IlvCOMInterface (IUnknown *iUnknown, REFIID rIID)
 Constructor from an IUnknown*. More...
 
 IlvCOMInterface (IlvAbstractCOMInterface< INTERFACE > *inter, REFIID rIID)
 Constructor from an IUnknown*. More...
 
virtual ~IlvCOMInterface ()
 The destructor. More...
 
- Public Member Functions inherited from IlvAbstractCOMInterface< INTERFACE >
virtual ~IlvAbstractCOMInterface ()=0
 Destructor. More...
 
INTERFACE * getInterface () const
 This member function returns the interface associated to this class. More...
 
 operator INTERFACE * () const
 This operator returns the interface associated to this class. More...
 
 operator INTERFACE const * () const
 This const operator returns the interface associated to this class. More...
 
INTERFACE * operator-> () const
 This operator lets the class to be used as a plain pointer. More...
 
HRESULT setInterface (IUnknown *iunk, REFIID iid)
 This function modifies the interface stored by this object through a call to the function QueryInterface of the IUnknown interface. More...
 
void setInterface (INTERFACE *interf)
 This function replaces the previous interface stored in this object by a new one. More...
 

Additional Inherited Members

- Protected Member Functions inherited from IlvAbstractCOMInterface< INTERFACE >
 IlvAbstractCOMInterface ()
 Default constructor. More...
 
 IlvAbstractCOMInterface (IlvAbstractCOMInterface const &other)
 Copy constructor. More...
 
 IlvAbstractCOMInterface (CntPtr const &initObj)
 Constructor. More...
 
CntPtr const & getInitializer () const
 This function returns a reference counter to the library initializer. More...
 
IlvAbstractCOMInterfaceoperator= (IlvAbstractCOMInterface const &other)
 Assignment operator. More...
 

Detailed Description

template<class INTERFACE>
class IlvCOMInterface< INTERFACE >

This class queries for a specific interface from an IUnknown* or from another IlvAbstractCOMInterface.

Library: ilvcom

Constructor & Destructor Documentation

template<class INTERFACE >
IlvCOMInterface< INTERFACE >::IlvCOMInterface ( )

Default constructor.

This constructor initializes the internal data members. It also initializes the COM library if required.

template<class INTERFACE >
IlvCOMInterface< INTERFACE >::IlvCOMInterface ( IlvCOMInterface< INTERFACE > const &  interf)

Copy constructor.

This constructor initializes the internal data members by copying the values of the object other.

template<class INTERFACE>
IlvCOMInterface< INTERFACE >::IlvCOMInterface ( INTERFACE *  interf)

Constructor used to encapsulate a pointer to an INTERFACE.

This lets this class to be used as a shared pointer.

Parameters
interfA pointer to an INTERFACE (type of the template) to be encapsulated into this class.
See Also
IlvCOMInterface::IlvCOMInterface(IlvAbstractCOMInterface<INTERFACE>*, REFIID),
IlvCOMInterface::~IlvCOMInterface.
template<class INTERFACE>
IlvCOMInterface< INTERFACE >::IlvCOMInterface ( IUnknown *  iUnknown,
REFIID  rIID 
)

Constructor from an IUnknown*.

This constructor queries for an interface, described by the REFIID rIID from the IUnknown given as first parameter.

Parameters
iUnknownA pointer to an IUnknown.
rIIDA REFIID that describes the interface to query for.
See Also
IlvCOMInterface::IlvCOMInterface(IlvAbstractCOMInterface<INTERFACE>*, REFIID),
IlvCOMInterface::~IlvCOMInterface.
template<class INTERFACE>
IlvCOMInterface< INTERFACE >::IlvCOMInterface ( IlvAbstractCOMInterface< INTERFACE > *  inter,
REFIID  rIID 
)

Constructor from an IUnknown*.

This constructor queries for an interface, described by the REFIID rIID from the IlvAbstractCOMInterface given as first parameter.

Parameters
interA pointer to an IlvAbstractCOMInterface<INTERFACE>*.
rIIDA REFIID that describes the interface to query for.
See Also
IlvCOMInterface::IlvCOMInterface(IUnknown*, REFIID),
IlvCOMInterface::~IlvCOMInterface.
template<class INTERFACE >
IlvCOMInterface< INTERFACE >::~IlvCOMInterface ( )
virtual

© Copyright 2015, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.