GME
13
|
00001 // Attribute.h: interface for the CAttribute class. 00002 // 00004 00005 #if !defined(AFX_ATTRIBUTE_H__895B04C9_5A11_4D55_ABCD_49E020BE4C5E__INCLUDED_) 00006 #define AFX_ATTRIBUTE_H__895B04C9_5A11_4D55_ABCD_49E020BE4C5E__INCLUDED_ 00007 00008 #if _MSC_VER > 1000 00009 #pragma once 00010 #endif // _MSC_VER > 1000 00011 00012 typedef CComPtr<IMgaMetaAttribute>MgaMetaAttributePtr; 00013 #define ADAPT_META_ATTRIBUTE(x) CAdapt<MgaMetaAttributePtr>(x) 00014 typedef CList<CAdapt<MgaMetaAttributePtr>,CAdapt<MgaMetaAttributePtr>&>CMgaMetaAttributePtrList; 00015 00016 00017 class CAttribute 00018 { 00019 CMgaMetaAttributePtrList m_MetaAttributePtrList; 00020 public: 00021 CAttribute(); 00022 virtual ~CAttribute(); 00023 void CreateList(const CMgaFCOPtrList& MgaFCOPtrList,CArray<CListItem,CListItem&> &ListItemArray); 00024 void CreateList(CComPtr<IMgaProject> ccpProject, CArray<CListItem,CListItem&> &ListItemArray); 00025 void WriteItemToMga(CListItem ListItem,const CMgaFCOPtrList& MgaFCOPtrList); 00026 void WriteItemToMga(CListItem ListItem, CComPtr<IMgaProject> ccpProject); 00027 00028 private: 00029 bool CreateListItem(CListItem& ListItem, const CComVariant& ccvtValue, bool bIsDirty, bool bIsDefault, DWORD dwKey); 00030 bool isViewable( const CComPtr<IMgaFCO>& r, const CComPtr<IMgaMetaAttribute>& a) const; 00031 }; 00032 00033 #endif // !defined(AFX_ATTRIBUTE_H__895B04C9_5A11_4D55_ABCD_49E020BE4C5E__INCLUDED_)