CProperty Class
class CProperty: public IQueryGuid, public IRefCount
This class provides a default implementation of the IProperty interface.Defined in: Property.h
Class Members
CProperty(const PropertyId id = 0, LPCTSTR lpszName = _T(""), LPCTSTR lpszDesc = _T(""), const int nCatId = -1)
Construct a property.
virtual ~CProperty()
Destroy a property.
ULONG m_ulRefCount
Reference count
DWORD m_dwStyleFlags
Style flags
PropertyId m_id
Property identifier
VARTYPE m_varType
Property type
_bstr_t m_name
Property name
_bstr_t m_desc
Property description
IEnumeration* m_pEnumeration
Pointer to enumeration for enumerated properties
int m_nCatId
Category identifier
virtual PropertyId GetId() const
Get the ID of the property.
void SetId(const PropertyId id)
Set the ID of the property.
virtual VARTYPE GetVariantType() const
Get the variant type of the property.
virtual void SetVariantType(const VARTYPE varType)
Set the variant type of the property.
virtual DWORD GetStyleFlags() const
Get the style flags for the property.
void SetStyleFlags(const DWORD dwStyleFlags)
Set the style flags for the property.
virtual void GetName(BSTR& bName) const
Get the name of the property.
void SetName(const OLECHAR* pszName)
Set the name of the property.
virtual void GetDescription(BSTR& bDesc) const
Get the description of the property.
void SetDescription(const OLECHAR* pszDesc)
Set the description of the property.
virtual int GetCategory() const
Get the category of the property.
void SetCategory(const int nCatId)
Set the category of the property.
virtual IEnumeration* GetEnumeration() const
Get the enumeration for the property.
void SetEnumeration(IEnumeration* pIEnumVals)
Set the enumerated values for the property.
CProperty& operator=(const CProperty& src)
Assignment operator to assign one property to another.
virtual ULONG STDMETHODCALLTYPE AddRef()
Add a reference to this object.
virtual ULONG STDMETHODCALLTYPE Release()
Release a reference to this object.