Define KEFrame class.
More...
#include <Coconut/Coconut.h>
#include "KEForwarders.h"
#include "KEObject.h"
Go to the source code of this file.
|
struct KEFrame * | KEAllocateFrame (struct CNResource *resource) |
| Alloxate KEPath object. More...
|
|
CNBoolean | KEAddValueToThisFrame (struct KEFrame *dst, const struct CNFixedString *ident, const struct KEValue *val, struct KELineInfo *linfo) |
| Add slot to frame. More...
|
|
CNBoolean | KEAddSlotToThisFrame (struct KEFrame *dst, struct KESlot *src) |
| Add slot to frame. More...
|
|
CNBoolean | KEUpdateValueInThisFrame (struct KEFrame *dst, const struct CNFixedString *ident, const struct KEValue *val) |
| Update value in frame pointed by the identifier. More...
|
|
CNBoolean | KEUpdateValueInFrame (struct KEFrame *dst, struct KEPath *path, const struct KEValue *val) |
| Set value to frame pointed by the path. More...
|
|
struct KEValue * | KEValueInThisFrame (struct KEFrame *frame, const struct CNFixedString *ident) |
| Get value in frame pointed by identifier. More...
|
|
struct KEValue * | KEValueInFrame (struct KEFrame *frame, struct KEPath *path) |
| Get value in frame pointed by path. More...
|
|
Define KEFrame class.
- Copyright
- Copyright (C) 2014 Steel Wheels Project
CNBoolean KEAddSlotToThisFrame |
( |
struct KEFrame * |
dst, |
|
|
struct KESlot * |
src |
|
) |
| |
Add slot to frame.
- Return values
-
True | No error |
False | Some errors are occured |
- Parameters
-
dst | Destination frame |
src | Source slot |
- Warning
- This functions DOES NOT check the identifier is already exist or not. Do not add multiple slots which has same identifier.
CNBoolean KEAddValueToThisFrame |
( |
struct KEFrame * |
dst, |
|
|
const struct CNFixedString * |
ident, |
|
|
const struct KEValue * |
val, |
|
|
struct KELineInfo * |
linfo |
|
) |
| |
Add slot to frame.
- Return values
-
True | No error |
False | Some errors are occured |
- Parameters
-
dst | Destination frame |
ident | Identifier of the new slot |
val | Value of new slot |
linfo | Line information of the new slot |
- Warning
- This functions DOES NOT check the identifier is already exist or not. Do not add multiple slots which has same identifier.
struct KEFrame* KEAllocateFrame |
( |
struct CNResource * |
resource | ) |
|
Alloxate KEPath object.
- Returns
- Allocated object
- Parameters
-
resource | Resource to allocate the object |
CNBoolean KEUpdateValueInFrame |
( |
struct KEFrame * |
dst, |
|
|
struct KEPath * |
path, |
|
|
const struct KEValue * |
val |
|
) |
| |
Set value to frame pointed by the path.
- Return values
-
True | Set operation suceeded |
False | Failed to set the value |
- Parameters
-
dst | Destination frame |
path | Path of the source value |
val | Source value to set |
CNBoolean KEUpdateValueInThisFrame |
( |
struct KEFrame * |
dst, |
|
|
const struct CNFixedString * |
ident, |
|
|
const struct KEValue * |
val |
|
) |
| |
Update value in frame pointed by the identifier.
- Return values
-
True | The value is updated |
False | The matched slot is not found |
- Parameters
-
dst | Destination frame |
ident | Identifier of the slot value |
val | Source value to set |
Get value in frame pointed by path.
- Return values
-
val | Pointed value |
NULL | No such path in the frame |
- Parameters
-
frame | Root frame to be searched |
path | Path of the target value |
struct KEValue* KEValueInThisFrame |
( |
struct KEFrame * |
frame, |
|
|
const struct CNFixedString * |
ident |
|
) |
| |
Get value in frame pointed by identifier.
- Return values
-
val | Pointed value |
NULL | No such path in the frame |
- Parameters
-
frame | Root frame to be searched |
ident | Identifier of the slot in the frame |