Main Page · Modules · All Classes · Class Hierarchy |
Base class for the data exchange of the elements. More...
#include <MSData.hpp>
Public Member Functions | |
MSData (const QString &type_name) | |
Class constructor. More... | |
MSData (const MSData &other) | |
Copy constructor. More... | |
virtual | ~MSData () |
Class destructor. | |
QString | GetTypeName () const |
Get the type name. More... | |
void * | operator[] (const QString &variable) const |
operator[] to resolve variable pointers More... | |
const QMap< QString, void * > & | GetVariableMap () const |
Get the variable map. More... | |
virtual MSData & | operator= (MSData &data) |
Copy assignment operator. More... | |
virtual MSData & | operator= (const MSData &data) |
Copy assignment operator. More... | |
Protected Attributes | |
QMap< QString, void * > | VariableMap |
Variable map. | |
QString | TypeName |
Type name. | |
Base class for the data exchange of the elements.
Definition at line 54 of file MSData.hpp.
|
explicit |
MSData::MSData | ( | const MSData & | other | ) |
QString MSData::GetTypeName | ( | ) | const |
Get the type name.
Get the type name.
Definition at line 42 of file MSData.cpp.
const QMap< QString, void * > & MSData::GetVariableMap | ( | ) | const |
Get the variable map.
Get the variable map.
Definition at line 54 of file MSData.cpp.
Copy assignment operator.
data | Other instance of the class |
Virtual copy assignment operator. It is very important to use the MSDATA_FUNCTIONS macro in the derived classes because it is the base of the data exchange between the elements. It uses a small trick to cast the parameter to a pointer of the derived class and use the appropriate copy assignment operator.
Definition at line 60 of file MSData.cpp.
Copy assignment operator.
data | Other instance of the class |
Virtual copy assignment operator. It is very important to use the MSDATA_FUNCTIONS macro in the derived classes because it is the basis of the data exchange between the elements. It uses a small trick to cast the parameter to a pointer of the derived class and use the appropriate copy assignment operator.
Definition at line 67 of file MSData.cpp.
void * MSData::operator[] | ( | const QString & | variable | ) | const |
operator[] to resolve variable pointers
variable | Name of the variable |
This operator[] provides a convenient and easy way to get variable pointers.
Definition at line 48 of file MSData.cpp.