Main Page · Modules · All Classes · Class Hierarchy |
Base class for elements. More...
#include <MPElement.hpp>
Public Member Functions | |
MPElement (MS::ElementType element_type, bool dedicated_thread=false) | |
Class constructor. | |
![]() | |
MSElement (MS::ElementType element_type, bool dedicated_thread=false) | |
Class constructor. More... | |
virtual | ~MSElement () |
Class destructor. | |
bool | IsDedicatedThread () const |
Thread mode of the element. More... | |
int | GetElementID () const |
Get the element ID. More... | |
void | SetElementID (int new_id) |
Set the element ID. More... | |
int | GetBeatID () const |
Get the current beat ID. More... | |
MS::ElementType | GetType () const |
Get the type of the element. More... | |
QString | GetClass () const |
Get the class name. More... | |
QStringList | GetInputList () const |
Get the input list. More... | |
bool | HasOutputs () const |
Whenever the element has any outputs. More... | |
QStringList | GetOutputList () const |
Get the output list. More... | |
void | AddReceiverElement (const QString &output_name, MSElement &element) |
Add a receiver element for an output. More... | |
void | RemoveReceiverElement (const QString &output_name, MSElement &element) |
Remove a receiver element for an output. More... | |
Static Protected Attributes | |
static QPointer< MPSessionMemory > | SessionMemory = nullptr |
Session memory. | |
Additional Inherited Members | |
![]() | |
void | BeatBegin (int beat_id) |
Begin of a heart beat. More... | |
void | Stop () |
Emergency stop. More... | |
![]() | |
void | BeatEnd (int beat_id, MSElement *element) |
End of a heart beat. More... | |
![]() | |
virtual void | StartActivities () |
Start activities. More... | |
virtual bool | ProgressTasks (bool be_hurry) |
Does the task. More... | |
virtual void | StopActivities () |
Stop activities. More... | |
MSData * | GetOutputData (const QString &output_name) const |
Get an output data of the element. More... | |
void | SetInputData (const QString &input_name, const MSData &new_data) |
Set an input data of the element. More... | |
void | Feeding () |
Feed the interested elements with output data. More... | |
![]() | |
bool | DedicatedThread |
Dedicated thread. | |
int | ElementID |
Element ID. | |
int | CurrentBeat |
Current Beat ID. | |
MS::StringElementMap | ReceiverElements |
Receiver elements. | |
bool | PlaybackMode |
Playback mode. | |
QStringList | CurrentOutputList |
Specifies the available output data for the current heart beat. | |
QStringList | CurrentInputList |
Specifies the available input data list for the current heart beat. | |
MS::ElementType | Type |
Specifies the type of the element. | |
MS::StringDataMap | InputList |
Input list. | |
MS::StringDataMap | OutputList |
Output list. | |
bool | EmergencyStop |
Emergency stop. | |
MSHeart * | Heart |
Heart where the element is registered. | |
QMutex | TasksExecutionMutex |
Mutex for the element tasks. | |
Base class for elements.
Definition at line 38 of file MPElement.hpp.