|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class CPropertyName { public: CPropertyName(); CPropertyName(const CPropertyName &name); CPropertyName(const CString &strName); CPropertyName(const WCHAR *pszName); CPropertyName(CInt32 nIndex); ~CPropertyName(); public: const CPropertyName &operator=(const CPropertyName &name); CString GetName() const; CInt32 GetIndex() const; CInt32 GetHash() const; void ResetHash(); };
The ECMAScript property name.
Constructor/Destructor Summary | |
CPropertyName
();
����������Constructs the property name. |
|
CPropertyName
(const CPropertyName &name);
����������Constructs the property name by copying content of another property name. |
|
CPropertyName
(const CString &strName);
����������Constructs the property name from a string. |
|
CPropertyName
(const WCHAR *pszName);
����������Constructs the property name from a null-terminated string. |
|
CPropertyName
(CInt32 nIndex);
����������Constructs the property name from an integer array index value. |
|
~CPropertyName
();
����������Destroys the property name. |
Function Summary | |
CString
|
GetName
();
����������Returns a string representation of this property name. |
CInt32
|
GetIndex
();
����������Returns an array index represented by this property name. |
CInt32
|
GetHash
();
����������Returns the hash code calculated for this property name. |
void
|
ResetHash
();
����������Calculates the hash code for this property name. |
Constructor/Destructor Detail |
CPropertyName();
Constructs the property name.
The content of the property name object constructed this way is initially unspecified.
CPropertyName(const CPropertyName &name);
Constructs the property name by copying content of another property name.
name
- the property name to copyCPropertyName(const CString &strName);
Constructs the property name from a string.
The string argument represents the property name.
strName
- the string representation
of the property nameCPropertyName(const WCHAR *pszName);
Constructs the property name from a null-terminated string.
The null-terminated string argument represents the property name.
pszName
- the null-terminated string representation
of the property nameCPropertyName(CInt32 nIndex);
Constructs the property name from an integer array index value.
Used to construct property names which may be, in the appropriate context, interpreted as ECMAScript array indexes.
nIndex
- the integer array index~CPropertyName();
Destroys the property name.
Function Detail |
CString GetName();
Returns a string representation of this property name.
CInt32 GetIndex();
Returns an array index represented by this property name.
-1
if this property name does not represent an array
indexCInt32 GetHash();
Returns the hash code calculated for this property name.
-1
if the hash code is not yet calculatedvoid ResetHash();
Calculates the hash code for this property name.
The calculated hash code is stored as an internal member
of this property name object and can be later retrieved with
GetHash
.
|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |