![]() |
MHEG5
22.3.0
|
Implementation of the Group class Description Defines the structure and behaviour of objects used as composition of Ingredients. Base class Root Subclasses Scene, Application Status Abstract class. More...
#include <string.h>
#include "mh5profile.h"
#include "mh5group.h"
#include "mh5object.h"
#include "mh5classes.h"
#include "mh5queue.h"
#include "mh5memory.h"
#include "mh5display.h"
#include "mh5debug.h"
#include "stb_os.h"
#include "glue_queue.h"
#include "glue_timers.h"
#include "glue_main.h"
Classes | |
struct | _GroupTimer |
Macros | |
#define | MAX_TIMERS 24 |
#define | GROUP_CP_DEFAULT 127 |
#define | ZERO_TIMER_HDL ((void*)0x2EA02EA0) |
Typedefs | |
typedef struct _GroupTimer | GroupTimer |
Functions | |
void | MH5_GroupInit (void) |
This function initialises Group Timers. More... | |
void | MHEG5groupAddItem (MHEG5Group *group, MHEG5Ingredient *item) |
Add an Item to the List. More... | |
void | MHEG5groupDelItem (MHEG5Group *group, MHEG5Ingredient *item) |
Delete Item from the List. More... | |
void | MHEG5groupInit (MHEG5Group *group) |
Initialise an Group object with default Values. More... | |
void | MHEG5groupFree (MHEG5Group *group) |
Free off all memory associated with the specified object, including any exchanged attributes and internal data. The data holding the object itself is not freed. More... | |
void | MHEG5groupPrepare (MHEG5Group *group) |
Implementation of the Preparation behaviour Preparation. More... | |
void | MHEG5groupDestruct (MHEG5Group *group) |
Implementation of the Destruction behaviour Destruction. More... | |
void | MHEG5groupActivate (MHEG5Group *group) |
Implementation of the Activation behaviour Activation. More... | |
void | MHEG5groupDeactivate (MHEG5Group *group) |
Implementation of the Deactivation behaviour Deactivation If group is not active, ignore behaviour. If group is active, do the following three steps: More... | |
MHEG5ErrorCode | MHEG5setCachePriority (MHEG5Root *target, MHEG5GList *params) |
Implementation of the SetCachePriority action SetCachePriority (NewCachePriority) Set the GroupCachePriority attribute to NewCachePriority. Provisions of use: The Target object shall be available. NewCachePriority shall be set within the range [0, 255]. SetCachePriority –> Target, NewCachePriority Target –> GenericObjectReference NewCachePriority –> GenericInteger. More... | |
MHEG5ErrorCode | MHEG5setTimer (MHEG5Root *target, MHEG5GList *params) |
This actions sets a new Timer which results in a TimerFired event when the given time is reached. Implementation of the SetTimer (TimerId, TimerValue, AbsoluteTime) action of the group class SetTimer (TimerId, TimerValue, AbsoluteTime) Update the list of timers of the group. Execute the following sequence of actions: More... | |
Implementation of the Group class Description Defines the structure and behaviour of objects used as composition of Ingredients. Base class Root Subclasses Scene, Application Status Abstract class.
void MH5_GroupInit | ( | void | ) |
This function initialises Group Timers.
void MHEG5groupActivate | ( | MHEG5Group * | group | ) |
Implementation of the Activation behaviour Activation.
group | Group to activate |
MHEG5PROFILE_UK1_06
void MHEG5groupAddItem | ( | MHEG5Group * | group, |
MHEG5Ingredient * | item | ||
) |
Add an Item to the List.
group | Group to add item to |
item | Item to add |
void MHEG5groupDeactivate | ( | MHEG5Group * | group | ) |
Implementation of the Deactivation behaviour Deactivation If group is not active, ignore behaviour. If group is active, do the following three steps:
group | Group to deactivate |
MHEG5PROFILE_UK1_06
void MHEG5groupDelItem | ( | MHEG5Group * | group, |
MHEG5Ingredient * | item | ||
) |
Delete Item from the List.
group | Group to delete item from |
item | Item to delete |
void MHEG5groupDestruct | ( | MHEG5Group * | group | ) |
Implementation of the Destruction behaviour Destruction.
group | Group to destruct |
MHEG5PROFILE_UK1_06
void MHEG5groupFree | ( | MHEG5Group * | group | ) |
Free off all memory associated with the specified object, including any exchanged attributes and internal data. The data holding the object itself is not freed.
group | Pointer to object to free. |
void MHEG5groupInit | ( | MHEG5Group * | group | ) |
Initialise an Group object with default Values.
group | Pointer to a group object to initialise |
void MHEG5groupPrepare | ( | MHEG5Group * | group | ) |
Implementation of the Preparation behaviour Preparation.
group | Group to apply behaviour to |
MHEG5PROFILE_UK1_06
MHEG5ErrorCode MHEG5setCachePriority | ( | MHEG5Root * | target, |
MHEG5GList * | params | ||
) |
Implementation of the SetCachePriority action SetCachePriority (NewCachePriority) Set the GroupCachePriority attribute to NewCachePriority. Provisions of use: The Target object shall be available. NewCachePriority shall be set within the range [0, 255]. SetCachePriority –> Target, NewCachePriority Target –> GenericObjectReference NewCachePriority –> GenericInteger.
target | target object for this action |
params | Action parameters |
MHEG5ErrorCode MHEG5setTimer | ( | MHEG5Root * | target, |
MHEG5GList * | params | ||
) |
This actions sets a new Timer which results in a TimerFired event when the given time is reached. Implementation of the SetTimer (TimerId, TimerValue, AbsoluteTime) action of the group class SetTimer (TimerId, TimerValue, AbsoluteTime) Update the list of timers of the group. Execute the following sequence of actions:
target | target object for this action |
params | Function parameter |