GME  13
MgaMetaPointerItem.h
Go to the documentation of this file.
00001 
00002 #ifndef MGA_MGAMETAPOINTERITEM_H
00003 #define MGA_MGAMETAPOINTERITEM_H
00004 
00005 // --------------------------- CMgaMetaPointerItem
00006 
00007 class ATL_NO_VTABLE CMgaMetaPointerItem : 
00008         public CComObjectRootEx<CComSingleThreadModel>,
00009         public CComCoClass<CMgaMetaPointerItem, &__uuidof(MgaMetaPointerItem)>,
00010         public IDispatchImpl<IMgaMetaPointerItem, &__uuidof(IMgaMetaPointerItem), &__uuidof(__MGAMetaLib)>
00011 {
00012 public:
00013         IUnknown *GetUnknown() const { return (IMgaMetaPointerItem*)this; }
00014 
00015 DECLARE_REGISTRY_RESOURCEID(IDR_MGAMETAPOINTERITEM)
00016 DECLARE_ONLY_AGGREGATABLE(CMgaMetaPointerItem)
00017 
00018 BEGIN_COM_MAP(CMgaMetaPointerItem)
00019         COM_INTERFACE_ENTRY(IMgaMetaPointerItem)
00020         COM_INTERFACE_ENTRY2(IDispatch, IMgaMetaPointerItem)
00021 END_COM_MAP()
00022 
00023 public:
00024         STDMETHOD(get_Desc)(BSTR *p);
00025 
00026         STDMETHOD(get_Parent)(IMgaMetaPointerSpec **p)
00027         { return ComGetPointerValue(GetUnknown(), ATTRID_PTRITEMS_COLL, p); }
00028 
00029 // ------- Edit
00030 
00031 public:
00032         STDMETHOD(put_Desc)(BSTR p)
00033         { return ComPutAttrValue(GetUnknown(), ATTRID_PTRITEMDESC, p); }
00034 
00035 // ------- Methods
00036 
00037 public:
00038         static bool CheckToken(CComBstrObj &token, bstr_const_iterator i, bstr_const_iterator &e);
00039         static bool CheckPath(CCoreObjectPtr &self, pathitems_type &pathitems, bool global);
00040 
00041 };
00042 
00043 #endif//MGA_MGAMETAPOINTERITEM_H