Polycode::ObjectEntry Class Reference
Single entry in an Object.
More...
List of all members.
Detailed Description
Single entry in an Object.
Object entries can be accessed as dictionaries or arrays.
Member Function Documentation
ObjectEntry* Polycode::ObjectEntry::addChild |
( |
const String & |
name, |
|
|
bool |
val | |
|
) |
| | [inline] |
Adds an empty child entry with a boolean value.
- Parameters:
-
| name | Lookup key for the object entry. |
| val | Boolean to set as value in the object entry. |
- Returns:
- The added object entry.
Adds an empty child entry with a string value.
- Parameters:
-
| name | Lookup key for the object entry. |
| val | String to set as value in the object entry. |
- Returns:
- The added object entry.
ObjectEntry* Polycode::ObjectEntry::addChild |
( |
const String & |
name, |
|
|
int |
val | |
|
) |
| | [inline] |
Adds an empty child entry with an integer value.
- Parameters:
-
| name | Lookup key for the object entry. |
| val | Integer to set as value in the object entry. |
- Returns:
- The added object entry.
ObjectEntry* Polycode::ObjectEntry::addChild |
( |
const String & |
name, |
|
|
Number |
val | |
|
) |
| | [inline] |
Adds an empty child entry with a number value.
- Parameters:
-
| name | Lookup key for the object entry. |
| val | Number to set as value in the object entry. |
- Returns:
- The added object entry.
Adds an empty child entry.
- Parameters:
-
| name | Lookup key for the object entry. |
- Returns:
- The added object entry.
Accesses an object entry by a string lookup and returns the corresponding object entry.
- Parameters:
-
| key | Lookup key to return value for. |
- Returns:
- Object entry corresponding to the string value or NULL if one doesn't exist.
ObjectEntry* Polycode::ObjectEntry::operator[] |
( |
int |
index |
) |
[inline] |
Accesses an object entry as an array by an integer lookup.
- Parameters:
-
| index | Lookup index to return value for. |
- Returns:
- Object entry corresponding to the lookup index or NULL if one doesn't exist.
Member Data Documentation
Type of entry.
Possible values are (FLOAT_ENTRY, INT_ENTRY, BOOL_ENTRY, ARRAY_ENTRY, STRING_ENTRY, CONTAINER_ENTRY).