Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages
comet::coclass< T, TM, > Struct Template Reference
[Classes used as bases for COM objects., Interface implementations.]
#include <comet/server.h>
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> { // ... };
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: