soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
sguid.h
1#ifndef __SGUID_H_
2#define __SGUID_H_
3
4#define __suidof(ClassName) IID_##ClassName
5
6#ifdef __cplusplus
7
8#define DECLARE_CLASS_SIID(cls_id) \
9 static GUID GetIID(){ return cls_id;}
10
11template<class T>
12GUID TGuidOf(const T * obj=NULL)// specialize by class
13{
14 return T::GetIID();
15}
16
17#else
18
19#define DECLARE_CLASS_SIID(cls_id)
20
21#endif
22
23
24#endif//__SGUID_H_