CODIntProperty Class

class CODIntProperty: public CODProperty

This class encapsulates an int value as a property object.

Defined in: OdIntProp.h

Class Members

VIEWS_API CODIntProperty(int nId = OD_UNDEFINED)

Constructor.

VIEWS_API CODIntProperty(const CODIntProperty& propInt)

Copy constructor.

VIEWS_API virtual ~CODIntProperty()

Destructor.

int m_nValue

Integer value.

VIEWS_API int GetValue() const

Get value of the integer.

VIEWS_API virtual void GetValue(int& nValue) const

Get the value of this property as a signed integer.

VIEWS_API virtual void GetValue(UINT& nValue) const

Get the value of this property as an unsigned integer.

VIEWS_API virtual void GetValue(CString& strValue) const

Get the value of this property as a string.

VIEWS_API virtual void GetValue(VARIANT& value) const

Get the value of this property as a VARIANT.

VIEWS_API virtual void SetValue(const int nValue)

Set the value of this property as a signed integer.

VIEWS_API virtual void SetValue(const UINT nValue)

Set the value of this property as an unsigned integer.

VIEWS_API virtual void SetValue(const LPCTSTR lpszValue)

Set the value of this property as a string.

VIEWS_API virtual void SetValue(const VARIANT& value)

Set the value of this property as a VARIANT.

VIEWS_API CODIntProperty& operator=(const CODIntProperty& propInt)

Assign one integer property to another.

VIEWS_API BOOL operator==(const CODIntProperty propInt) const

Compare two integer properties for equality.

VIEWS_API virtual CODProperty* Dup()

Creates a copy of this integer property.

VIEWS_API virtual void Merge(CODProperty* pProperty, DWORD dwChangeFlags = OD_CHANGE_ALL)

Merges another set of properties with this one.

VIEWS_API virtual BOOL IsEqual(CODProperty* pProp)

Determines if this set of properties is equal to another.

VIEWS_API virtual void Serialize(CArchive& ar)

Serializes the line properties.