STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ... ATLSTL - Template Software for the Active Template Library COMSTL - The Standard Template Library meets the Component Object Model .netSTL - Standard Template Library meets the Microsoft.NET Common Language Runtime InetSTL - The Standard Template Library meets WinInet MFCSTL - Template Software for the Microsoft Foundation Classes UNIXSTL - Template Software for the UNIX Operating System WinSTL - where the Standard Template Library meets the Win32 API

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

IID_traits Struct Template Reference
[Interface Library]

Interface identifier traits. More...

#include <comstl_interface_traits.h>

List of all members.

Static Public Methods

REFIID iid ()
 Returns a reference to the IID for the parameterising interface.


Detailed Description

template<class I>
struct comstl::IID_traits< I >

Interface identifier traits.

This traits class takes an interface type and provides a specialisation that has a statid iid() method which returns the interface identifier (IID) for that type.

To use, simply have the expression IID_traits<I>::iid() where I is your interface type.

On compilers that support the __uuidof pseudo-operator this is used, otherwise you must specify specialisations - using the COMSTL_IID_TRAITS_DEFINE macro - for your interfaces, as in

COMSTL_IID_TRAITS_DEFINE(IMyInterface)

All the interfaces currently defined in unknown.idl and objidl.idl are so defined in the file comstl_interface_traits_std.h, which is included in for non-__uuidof compilations.

Parameters:
I  The interface


Member Function Documentation

REFIID iid   [static]
 

Returns a reference to the IID for the parameterising interface.


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

STLSoft Libraries documentation © Synesis Software Pty Ltd, 2001-2004