|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class CPropertyMap: public CInterface { public: CPropertyMap(); ~CPropertyMap(); public: void Add( const CPropertyName &propertyName, int nSelector, bool bReadOnly=false); int Find(const CPropertyName &propertyName); CString GetName(int nIndex); int GetSelector(int nIndex); int GetAttributes(int nIndex); int Next(int nIndex); };
The property map of a native object.
A property map is a collection of object properties which require custom implementation of get and/or put operations. Each property in the property map has associated integer selector. Selectors are unique within property maps; they are used by the interpreter to select appropriate get/put procedures for each property in the property map.
Property maps can be attached to native objects
(see the
CNativeObject
class).
CPropertyName
Constructor/Destructor Summary | |
CPropertyMap
();
����������Constructs the property map. |
|
~CPropertyMap
();
����������Destroys the property map. |
Function Summary | |
void
|
Add
(const CPropertyName &propertyName, int nSelector, bool bReadOnly=false);
����������Adds a property to this property map. |
int
|
Find
(const CPropertyName &propertyName);
����������Looks up a property in this property map. |
CString
|
GetName
(int nIndex);
����������Returns a string representation of a property name at the specified index in this property map. |
int
|
GetSelector
(int nIndex);
����������Returns a selector at the specified index in this property map. |
int
|
GetAttributes
(int nIndex);
����������Returns attributes at the specified index in this property map. |
int
|
Next
(int nIndex);
����������Returns the index of the property in this property map which follows the property with the given index. |
Constructor/Destructor Detail |
CPropertyMap();
Constructs the property map.
~CPropertyMap();
Destroys the property map.
Function Detail |
void Add( const CPropertyName &propertyName, int nSelector, bool bReadOnly=false);
Adds a property to this property map.
propertyName
- the property namenSelector
- the selectorbReadOnly
- indicates whether the property has
the
ReadOnly
attributeint Find(const CPropertyName &propertyName);
Looks up a property in this property map.
propertyName
- the property name to look up-1
if the property is not foundCString GetName(int nIndex);
Returns a string representation of a property name at the specified index in this property map.
nIndex
- the index (zero-based)int GetSelector(int nIndex);
Returns a selector at the specified index in this property map.
nIndex
- the index (zero-based)int GetAttributes(int nIndex);
Returns attributes at the specified index in this property map.
nIndex
- the index (zero-based)int Next(int nIndex);
Returns the index of the property in this property map which follows the property with the given index.
nIndex
- the starting index (zero-based)-1
if there is no such property
(that is, the starting index points to the last property
in this property map)
|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |