comet::coclass< T, TM, > Struct Template Reference
[Classes used as bases for COM objects.Interface implementations.]

#include <comet/server.h>

List of all members.

Public Types

typedef coclass coclass_type
enum  { factory_type = impl::ft_standard }
enum  { thread_model = TM }

Static Public Member Functions

const TCHAR * get_progid ()


Detailed Description

template<typename T, enum thread_model::thread_model_t TM = thread_model::Apartment, COMET_LIST_TEMPLATE>
struct comet::coclass< T, TM, >

Implement a standard coclass with interfaces defined in TypeLibrary and implemented within the class T and thread model TM, followed by a list of extra interfaces to implement. Provides IProvideClassInfo and ISupportErrorInfo as standard.
           template<>
           class coclass_implementation<CoMyClass> : public coclass<CoMyClass>
           {
                  // ...
           };
The thread model can be specified for the coclass, and as well, extra interfaces can be implemented by specifying them at the end.
           template<>
           class coclass_implementation<CoMyClass> : public coclass<CoMyClass, thread_model::Apartment, >
           {
                  // ...
           };
See also:
FTM aggregates thread_model::thread_model_t


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