![]() |
MHEG5
18.9.0
MHEG5 Documentation
|
Implement the MHEG5 Variable Class and subclasses 21 Variable Class Defines a variable within the context of a Group object. Base class: Ingredient Subclasses: BooleanVariable, IntegerVariable, OctetStringVariable, ObjectReferenceVariable, ContentRefVariable Status: Abstract class. More...
#include "mh5variable.h"
#include "mh5object.h"
#include "mh5gate.h"
#include "mh5memory.h"
#include "mh5queue.h"
#include "mh5application.h"
#include "mh5debug.h"
#include "mh5profile.h"
#include "mh5scene.h"
Go to the source code of this file.
Functions | |
void | MHEG5booleanVariableInit (MHEG5BooleanVariable *variable) |
Initialise a booleanVariable object with default values. More... | |
void | MHEG5booleanVariablePrepare (MHEG5BooleanVariable *variable) |
Sets all internal attributes for the specified object to their default values. More... | |
void | MHEG5booleanVariableFree (MHEG5BooleanVariable *variable) |
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 | MHEG5integerVariableInit (MHEG5IntegerVariable *variable) |
Initialise a integerVariable object with default values. More... | |
void | MHEG5integerVariablePrepare (MHEG5IntegerVariable *variable) |
Sets all internal attributes for the specified object to their default values. More... | |
void | MHEG5integerVariableFree (MHEG5IntegerVariable *variable) |
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 | MHEG5octetStringVariableInit (MHEG5OctetStringVariable *variable) |
Initialise an octetStringVariable object with default values. More... | |
void | MHEG5octetStringVariablePrepare (MHEG5OctetStringVariable *variable) |
Sets all internal attributes for the specified object to their default values. More... | |
void | MHEG5octetStringVariableFree (MHEG5OctetStringVariable *variable) |
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 | MHEG5octetStringVariableDestruct (MHEG5OctetStringVariable *variable) |
void | MHEG5objectRefVariableInit (MHEG5ObjectRefVariable *variable) |
Initialise an objectRefVariable object with default values. More... | |
void | MHEG5objRefStoreValue (MHEG5ObjectRefVariable *objRef, MH5GroupRef ref, MHEG5Int id) |
void | MHEG5objRefStoreString (MHEG5ObjectRefVariable *objRef, MHEG5String ref, MHEG5Int id) |
void | MHEG5objectRefVariablePrepare (MHEG5ObjectRefVariable *variable) |
Sets all internal attributes for the specified object to their default values. More... | |
void | MHEG5objectRefVariableFree (MHEG5ObjectRefVariable *variable) |
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 | MHEG5contentVariableInit (MHEG5ContentVariable *variable) |
Initialise a contentVariable object with default values. More... | |
void | MHEG5contentVariablePrepare (MHEG5ContentVariable *variable) |
Sets all internal attributes for the specified object to their default values. More... | |
void | MHEG5contentVariableFree (MHEG5ContentVariable *variable) |
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 | MHEG5contentVariableDestruct (MHEG5ContentVariable *variable) |
void | MHEG5variablePrepare (MHEG5Ingredient *variable) |
Apply the preparation behaviour of the variable class Apply the preparation behaviour of the variable class. As this class has no own preparation behaviour this function just invokes the preparation behaviour from the base class. More... | |
void | MHEG5variableActivate (MHEG5Ingredient *variable) |
Apply the activation behaviour of the Variable class. Apply the activation behaviour of the variable class. More... | |
void | MHEG5variableDeactivate (MHEG5Ingredient *variable) |
Apply the deactivation behaviour of the variable class. As this class has no own deactivation behaviour this function just invokes the deactivation behaviour from the base class. More... | |
void | MHEG5variableDestruct (MHEG5Ingredient *variable) |
Destruct a variable object. More... | |
MHEG5ErrorCode | MHEG5setVariable (MHEG5Root *target, MHEG5GList *params) |
Set the Value attribute of the Target object to NewVariableValue. Implementation of the SetVariable (NewVariableValue) action of the variable class. More... | |
MHEG5ErrorCode | MHEG5testVariable (MHEG5Root *target, MHEG5GList *params) |
This action tests variables agains each other or against values Implementation of the TestVariable (Target, Operator, ComparisonValue) action of the variable class. More... | |
MHEG5ErrorCode | MHEG5add (MHEG5Root *target, MHEG5GList *params) |
Add Target Variable to Value. Target variable is the first operand of the infix operation. Result is stored in Target Variable. Implementation of the Add (Value) action of the IntegerVariable class. More... | |
MHEG5ErrorCode | MHEG5subtract (MHEG5Root *target, MHEG5GList *params) |
Subtract Value from Target Variable. Target variable is the first operand of the infix operation. Result is stored in Target Variable. Implementation of the Subtract (Value) action of the IntegerVariable class. More... | |
MHEG5ErrorCode | MHEG5multiply (MHEG5Root *target, MHEG5GList *params) |
Multiplies Target Variable by Value. Target variable is the first operand of the infix operation. Result is stored in Target Variable. Implementation of the Multiply (Value) action of the IntegerVariable class. More... | |
MHEG5ErrorCode | MHEG5divide (MHEG5Root *target, MHEG5GList *params) |
Divides Target Variable by Value. Target variable is the first operand of the infix operation. Result is stored in Target Variable. When the result is not an integer value, rounding is made towards 0. Implementation of the Divide (Value) action of the IntegerVariable class. More... | |
MHEG5ErrorCode | MHEG5modulo (MHEG5Root *target, MHEG5GList *params) |
Returns the remainder modulo Value of Target - as defined by usual integer arithmetic rules, that is to say that for any integers a and b the following equality is satisfied: (a DIV b) *b + (a MOD b) = a. Implementation of the Modulo (Value) action of the IntegerVariable class. More... | |
MHEG5ErrorCode | MHEG5append (MHEG5Root *target, MHEG5GList *params) |
Appends AppendValue to Target Variable. Target variable is the first operand of the infix operation. Result is stored in Target Variable. Implementation of the Append (AppendValue) action of the OctetStringVariable class. More... | |
MHEG5Int | MHEG5variableStore (MHEG5Ingredient *v, void *buf, MHEG5Int bufLen) |
This functions stores the value of a variable in the persistant storage. Implementation of the StorePersistant (...) action of the variable class. More... | |
MHEG5Int | MHEG5variableRead (MHEG5Ingredient *v, char *buf, MHEG5Int max_size) |
This functions reads the value of a variable from the persistant storage. Implementation of the ReadPersistant (...) action of the variable class. More... | |
Implement the MHEG5 Variable Class and subclasses 21 Variable Class Defines a variable within the context of a Group object. Base class: Ingredient Subclasses: BooleanVariable, IntegerVariable, OctetStringVariable, ObjectReferenceVariable, ContentRefVariable Status: Abstract class.
Definition in file mh5variable.c.
MHEG5ErrorCode MHEG5add | ( | MHEG5Root * | target, |
MHEG5GList * | params | ||
) |
Add Target Variable to Value. Target variable is the first operand of the infix operation. Result is stored in Target Variable. Implementation of the Add (Value) action of the IntegerVariable class.
MHEG5Root | *target |
MHEG5GList | *params |
Definition at line 1107 of file mh5variable.c.
MHEG5ErrorCode MHEG5append | ( | MHEG5Root * | target, |
MHEG5GList * | params | ||
) |
Appends AppendValue to Target Variable. Target variable is the first operand of the infix operation. Result is stored in Target Variable. Implementation of the Append (AppendValue) action of the OctetStringVariable class.
MHEG5Root | *target |
MHEG5GList | *params |
Definition at line 1306 of file mh5variable.c.
void MHEG5booleanVariableFree | ( | MHEG5BooleanVariable * | variable | ) |
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.
variable | Pointer to object to free. |
Definition at line 392 of file mh5variable.c.
void MHEG5booleanVariableInit | ( | MHEG5BooleanVariable * | variable | ) |
Initialise a booleanVariable object with default values.
<Function description>="">
variable | Pointer to object to initialise. |
Definition at line 363 of file mh5variable.c.
void MHEG5booleanVariablePrepare | ( | MHEG5BooleanVariable * | variable | ) |
Sets all internal attributes for the specified object to their default values.
variable | Pointer to object to initialise internal attributes for. |
Definition at line 376 of file mh5variable.c.
void MHEG5contentVariableDestruct | ( | MHEG5ContentVariable * | variable | ) |
Definition at line 631 of file mh5variable.c.
void MHEG5contentVariableFree | ( | MHEG5ContentVariable * | variable | ) |
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.
variable | Pointer to object to free. |
Definition at line 622 of file mh5variable.c.
void MHEG5contentVariableInit | ( | MHEG5ContentVariable * | variable | ) |
Initialise a contentVariable object with default values.
variable | Pointer to object to initialise. |
Definition at line 593 of file mh5variable.c.
void MHEG5contentVariablePrepare | ( | MHEG5ContentVariable * | variable | ) |
Sets all internal attributes for the specified object to their default values.
variable | Pointer to object to initialise internal attributes for. |
Definition at line 606 of file mh5variable.c.
MHEG5ErrorCode MHEG5divide | ( | MHEG5Root * | target, |
MHEG5GList * | params | ||
) |
Divides Target Variable by Value. Target variable is the first operand of the infix operation. Result is stored in Target Variable. When the result is not an integer value, rounding is made towards 0. Implementation of the Divide (Value) action of the IntegerVariable class.
MHEG5Root | *target |
MHEG5GList | *params |
Definition at line 1218 of file mh5variable.c.
void MHEG5integerVariableFree | ( | MHEG5IntegerVariable * | variable | ) |
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.
variable | Pointer to object to free. |
Definition at line 433 of file mh5variable.c.
void MHEG5integerVariableInit | ( | MHEG5IntegerVariable * | variable | ) |
Initialise a integerVariable object with default values.
variable | Pointer to object to initialise. |
Definition at line 404 of file mh5variable.c.
void MHEG5integerVariablePrepare | ( | MHEG5IntegerVariable * | variable | ) |
Sets all internal attributes for the specified object to their default values.
variable | Pointer to object to initialise internal attributes for. |
Definition at line 417 of file mh5variable.c.
MHEG5ErrorCode MHEG5modulo | ( | MHEG5Root * | target, |
MHEG5GList * | params | ||
) |
Returns the remainder modulo Value of Target - as defined by usual integer arithmetic rules, that is to say that for any integers a and b the following equality is satisfied: (a DIV b) *b + (a MOD b) = a. Implementation of the Modulo (Value) action of the IntegerVariable class.
MHEG5Root | *target |
MHEG5GList | *params |
Definition at line 1262 of file mh5variable.c.
MHEG5ErrorCode MHEG5multiply | ( | MHEG5Root * | target, |
MHEG5GList * | params | ||
) |
Multiplies Target Variable by Value. Target variable is the first operand of the infix operation. Result is stored in Target Variable. Implementation of the Multiply (Value) action of the IntegerVariable class.
MHEG5Root | *target |
MHEG5GList | *params |
Definition at line 1183 of file mh5variable.c.
void MHEG5objectRefVariableFree | ( | MHEG5ObjectRefVariable * | variable | ) |
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.
variable | Pointer to object to free. |
Definition at line 576 of file mh5variable.c.
void MHEG5objectRefVariableInit | ( | MHEG5ObjectRefVariable * | variable | ) |
Initialise an objectRefVariable object with default values.
variable | Pointer to object to initialise. |
Definition at line 496 of file mh5variable.c.
void MHEG5objectRefVariablePrepare | ( | MHEG5ObjectRefVariable * | variable | ) |
Sets all internal attributes for the specified object to their default values.
variable | Pointer to object to initialise internal attributes for. |
Definition at line 560 of file mh5variable.c.
void MHEG5objRefStoreString | ( | MHEG5ObjectRefVariable * | objRef, |
MHEG5String | ref, | ||
MHEG5Int | id | ||
) |
Definition at line 529 of file mh5variable.c.
void MHEG5objRefStoreValue | ( | MHEG5ObjectRefVariable * | objRef, |
MH5GroupRef | ref, | ||
MHEG5Int | id | ||
) |
Definition at line 503 of file mh5variable.c.
void MHEG5octetStringVariableDestruct | ( | MHEG5OctetStringVariable * | variable | ) |
Definition at line 483 of file mh5variable.c.
void MHEG5octetStringVariableFree | ( | MHEG5OctetStringVariable * | variable | ) |
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.
variable | Pointer to object to free. |
Definition at line 474 of file mh5variable.c.
void MHEG5octetStringVariableInit | ( | MHEG5OctetStringVariable * | variable | ) |
Initialise an octetStringVariable object with default values.
variable | Pointer to object to initialise. |
Definition at line 445 of file mh5variable.c.
void MHEG5octetStringVariablePrepare | ( | MHEG5OctetStringVariable * | variable | ) |
Sets all internal attributes for the specified object to their default values.
variable | Pointer to object to initialise internal attributes for. |
Definition at line 458 of file mh5variable.c.
MHEG5ErrorCode MHEG5setVariable | ( | MHEG5Root * | target, |
MHEG5GList * | params | ||
) |
Set the Value attribute of the Target object to NewVariableValue. Implementation of the SetVariable (NewVariableValue) action of the variable class.
MHEG5Root | *target |
MHEG5GList | *params |
Definition at line 761 of file mh5variable.c.
MHEG5ErrorCode MHEG5subtract | ( | MHEG5Root * | target, |
MHEG5GList * | params | ||
) |
Subtract Value from Target Variable. Target variable is the first operand of the infix operation. Result is stored in Target Variable. Implementation of the Subtract (Value) action of the IntegerVariable class.
MHEG5Root | *target |
MHEG5GList | *params |
Definition at line 1145 of file mh5variable.c.
MHEG5ErrorCode MHEG5testVariable | ( | MHEG5Root * | target, |
MHEG5GList * | params | ||
) |
This action tests variables agains each other or against values Implementation of the TestVariable (Target, Operator, ComparisonValue) action of the variable class.
MHEG5Root | *target |
MHEG5GList | *params |
Definition at line 923 of file mh5variable.c.
void MHEG5variableActivate | ( | MHEG5Ingredient * | variable | ) |
Apply the activation behaviour of the Variable class. Apply the activation behaviour of the variable class.
MHEG5Ingredient | *variable |
Definition at line 665 of file mh5variable.c.
void MHEG5variableDeactivate | ( | MHEG5Ingredient * | variable | ) |
Apply the deactivation behaviour of the variable class. As this class has no own deactivation behaviour this function just invokes the deactivation behaviour from the base class.
MHEG5Ingredient | *variable |
Definition at line 708 of file mh5variable.c.
void MHEG5variableDestruct | ( | MHEG5Ingredient * | variable | ) |
Destruct a variable object.
MHEG5Ingredient | *variable |
Definition at line 720 of file mh5variable.c.
void MHEG5variablePrepare | ( | MHEG5Ingredient * | variable | ) |
Apply the preparation behaviour of the variable class Apply the preparation behaviour of the variable class. As this class has no own preparation behaviour this function just invokes the preparation behaviour from the base class.
MHEG5Ingredient | *variable |
Definition at line 653 of file mh5variable.c.
MHEG5Int MHEG5variableRead | ( | MHEG5Ingredient * | v, |
char * | buf, | ||
MHEG5Int | max_size | ||
) |
This functions reads the value of a variable from the persistant storage. Implementation of the ReadPersistant (...) action of the variable class.
Definition at line 1509 of file mh5variable.c.
MHEG5Int MHEG5variableStore | ( | MHEG5Ingredient * | v, |
void * | buf, | ||
MHEG5Int | bufLen | ||
) |
This functions stores the value of a variable in the persistant storage. Implementation of the StorePersistant (...) action of the variable class.
Definition at line 1437 of file mh5variable.c.