CGXAbstractUserAttribute Class Members

Construction

 CGXAbstractUserAttribute Constructs a CGXAbstractUserAttribute object.

Overridables

 Clone Clones this object. If you derive from CGXAbstractUserAttribute you have to provide this method.

Serialization

 Serialize Override this method if you want to support serialization and clipboard operations for this attribute class.

Profile, Registry and User Attribute Page

 SetValue SetValue is called with a CString and changes the value of your attribute. Override this method if you want to support reading values from registry or the user attribute page. In your override you should interprete the CString and convert it to your binary representation of the value.
 GetValue GetValue returns a CString with the textual representation of the binary stored in the user attribute. Override this method if you want to support writing values to registry or the user attribute page.
 GetDWordValue GetDWordValue returns a DWORD value. By default, the method returns (DWORD) atol(GetValue());
 GetLongValue GetLongValue returns a LONG value. By default, the method returns atol(GetValue());
 GetDoubleValue GetDoubleValue returns a double value. By default, the method returns atof(GetValue());

Operations

 IsEmpty Checks if the value is empty. By default it simply checks if GetValue returns an empty string. Override this method if you need a more specialized behavior for your user attribute.
 IsEqual Compares two user attributes. The default implementation will simply compare the values returned by GetValue for both attributes to be compared. Override this method if you need a more specialized behavior for your user attribute.

CGXAbstractUserAttribute

 Class Overview