#include <mvccore.h>
Inheritance diagram for MvcCore:

Public Types | |
| enum | ElementType { UserElement = 1000 } |
| enum | ElementAttributeType { UserElementAttribute = 1000 } |
Static Public Member Functions | |
| static MvcModuleId_t | id () |
Static Protected Member Functions | |
| static MvcModuleId_t | generateNewId () |
The id() is very important when combining multiple MVC modules together, where event IDs may overlap. By checking the (unique) id() first, you can ensure that the events are sent and handled correctly.
| enum MvcCore::ElementType |
| static MvcModuleId_t MvcCore::id | ( | ) | [inline, static] |
Returns the module's id().
This method must be re-implemented in every sub-class as:
inline static MvcModuleId_t id() { static s_id = generateNewId(); return s_id; }
The id() is very important when combining multiple MVC modules together, where event IDs may overlap. By checking the (unique) id() first, you can ensure that the events are sent and handled correctly.
Reimplemented in MvcDiagram, MvcDigestDb, and MvcSettings.
| MvcModuleId_t MvcCore::generateNewId | ( | ) | [static, protected] |
Generates a unique ID, starting from 1.
Returns 0 on failure (will virtually never occur in practice).
1.5.2