CODIntProperty Class
class CODIntProperty: public CODProperty
This class encapsulates an int value as a property object.Defined in: OdIntProp.h
Class Members
CODIntProperty(int nId = OD_UNDEFINED)
Constructor.
CODIntProperty(const CODIntProperty& propInt)
Copy constructor.
virtual ~CODIntProperty()
Destructor.
int m_nValue
Integer value.
int GetValue() const
Get value of the integer.
virtual void GetValue(int& nValue) const
Get the value of this property as a signed integer.
virtual void GetValue(UINT& nValue) const
Get the value of this property as an unsigned integer.
virtual void GetValue(CString& strValue) const
Get the value of this property as a string.
virtual void GetValue(VARIANT& value) const
Get the value of this property as a VARIANT.
virtual void SetValue(const int nValue)
Set the value of this property as a signed integer.
virtual void SetValue(const UINT nValue)
Set the value of this property as an unsigned integer.
virtual void SetValue(const LPCTSTR lpszValue)
Set the value of this property as a string.
virtual void SetValue(const VARIANT& value)
Set the value of this property as a VARIANT.
CODIntProperty& operator=(const CODIntProperty& propInt)
Assign one integer property to another.
BOOL operator==(const CODIntProperty propInt) const
Compare two integer properties for equality.
virtual CODProperty* Dup()
Creates a copy of this integer property.
virtual void Merge(CODProperty* pProperty, DWORD dwChangeFlags = OD_CHANGE_ALL)
Merges another set of properties with this one.
virtual BOOL IsEqual(CODProperty* pProp)
Determines if this set of properties is equal to another.
virtual void Serialize(CArchive& ar)
Serializes the line properties.