#include <DataPoolControlBlock.h>
Inheritance diagram for DataPoolControlBlock:
A data pool control block is a control block that takes its inputs from locations in the data pool and writes its outputs into locations in the data pool. The data pool locations for the inputs and the outputs are defined as configuration parameters for the control block. This class therefore adds the following attributes to its ControlBlock
base class:<ul> The input identifiers: the identifiers of the data pool items in the data pool from which the input values are read. The output identifiers: the identifiers of the data pool items in the data pool to which the output values are written. This class adds services to set up the link between the block inputs and outputs and the data pool locations from which the inputs are read and to which the outputs are written.
Definition at line 36 of file DataPoolControlBlock.h.
Public Member Functions | |
DataPoolControlBlock () | |
Instantiate a data pool control block. | |
void | setInputLink (unsigned int i, TD_DataPoolId dpIdentifier) |
Set the data pool identifier for the i-th input. | |
void | setOutputLink (unsigned int i, TD_DataPoolId dpIdentifier) |
Set the data pool identifier for the i-th output. | |
virtual bool | isObjectConfigured (void) |
Perform a class-specific configuration check on a pointer control block. | |
Protected Member Functions | |
virtual void | setNumberOfInputs (unsigned int n) |
Set the number of inputs. | |
virtual void | setNumberOfOutputs (unsigned int n) |
Set the number of outputs. | |
Protected Attributes | |
TD_DataPoolId * | dpu |
Array of input identifiers. | |
TD_DataPoolId * | dpy |
Array of output identifiers. |
|
Instantiate a data pool control block.
The input identifiers and output identifiers are initialized to illegal values to signify that the component is not yet configured. The data pool is loaded from class Definition at line 18 of file DataPoolControlBlock.cpp. |
|
Perform a class-specific configuration check on a pointer control block. It is checked that the input and output identifiers have been defined. Reimplemented from ControlBlock. Definition at line 59 of file DataPoolControlBlock.cpp. |
|
Set the data pool identifier for the i-th input.
The argument i must lie in the interval [0,n-1] where n is the number of inputs. An illegal value for argument i triggers the generation of an event report EVT_ILLEGAL_CB. There is no check on the legality of the data pool identifier. This should normally be a valid identifier for an item of type
Definition at line 41 of file DataPoolControlBlock.cpp. |
|
Set the number of inputs. This method causes the memory for the array holding the input identifiers to be allocated.
Implements ControlBlock. Definition at line 23 of file DataPoolControlBlock.cpp. |
|
Set the number of outputs. This method causes the memory for the array holding the output identifiers to be allocated.
Implements ControlBlock. Definition at line 32 of file DataPoolControlBlock.cpp. |
|
Set the data pool identifier for the i-th output.
The argument i must lie in the interval [0,n-1] where n is the number of outputs. An illegal value for argument i triggers the generation of an event report EVT_ILLEGAL_CB. There is no check on the legality of the data pool identifier. This should normally be a valid identifier for an item of type
Definition at line 50 of file DataPoolControlBlock.cpp. |
|
Array of input identifiers. Element dpu[i] holds the identifier of the data pool item that provides the i-th input variable. The integer i must lie in the interval [0,N-1] where N is the number of inputs.
Definition at line 45 of file DataPoolControlBlock.h. |
|
Array of output identifiers. Element dpy[i] holds the identifier of the data pool item that receives the i-th output variable. The integer i must lie in the interval [0,N-1] where N is the number of outputs.
Definition at line 54 of file DataPoolControlBlock.h. |