- Inherits from:
- Object
- Declared in:
- DPropertyTree.h
Object
|
+---DProperty
Class Description
The DProperty class implements methods for using properties.
- Last modified:
- 31-Oct-2007 (DPropertyTree.h)
Instance Variables
- private DText *_name
- the group or property name
- private id <DTextable,DParsable> _value
- the reference to the value
- Constructors
- - (DProperty *) init
- Initialise an empty property
- Returns:
- the object
- - (DProperty *) init :(const char *) name
- Initialise a group of properties
- Parameters:
- name - the group name
- Returns:
- the object
- - (DProperty *) init :(const char *) name :(id <DTextable,DParsable>) value
- Initialise a property
- Parameters:
- name - the property name
value - the reference to the value object
- Returns:
- the object
- Copy related methods
- - shallowCopy
- Do a shallow copy of the property
- Returns:
- the object
- Destructor
- - free
- Free the property
- Returns:
- the object
- Member methods
- - (BOOL) isGroup
- Check if the property is a group
- Returns:
- is it ?
- - (const char *) name
- Return the name (of the property or group)
- Returns:
- the property name (or NULL)
- - (id <DTextable,DParsable>) value
- Return the reference to the value object
- Returns:
- the reference (or nil)
- Main methods
- - (int) ccompare :(const char *) name
- Compare (case sensitive) the name of the property
- Parameters:
- name - the name
- Returns:
- the result (-1,0,1)
- - (DProperty *) group :(const char *) name
- Set the group name for a property group
- Parameters:
- name - the name of the group
- Returns:
- the object
- - (DProperty *) property :(const char *) name :(id <DTextable,DParsable>) value
- Set the property name and reference object for the property
- Parameters:
- name - the property name
value - the reference object
- Returns:
- the object
generated 05-Nov-2007 by ObjcDoc 3.0.0