ALBA
Static Public Member Functions | Static Protected Attributes | Friends | List of all members
mmuIdFactory Class Reference

#include <mmuIdFactory.h>

Inheritance diagram for mmuIdFactory:
Inheritance graph
[legend]
Collaboration diagram for mmuIdFactory:
Collaboration graph
[legend]

Static Public Member Functions

static albaID GetNextId (const char *evtname)
 
static albaID GetId (const char *evtname)
 
static const char * GetIdName (albaID id)
 

Static Protected Attributes

static albaID m_IdCounter
 

Friends

class mmuIdFactoryTest
 

Detailed Description

Factory for Ids used to generate unique Ids at runtime.

This object is used to generate unique Ids and is typically accessed by means of ALBA macros for ID declaration defined in albaDefines.h (e.g. ALBA_ID_DEC() ALBA_ID_GLOB() )

See also
albaEvent

Definition at line 35 of file mmuIdFactory.h.

Member Function Documentation

◆ GetNextId()

static albaID mmuIdFactory::GetNextId ( const char *  evtname)
static

Internally used to keep a unique ID for the events.

◆ GetId()

static albaID mmuIdFactory::GetId ( const char *  evtname)
static

Alloc a number of IDs assigning a name to the group.

this function can be used to obtain an event ID, given its full name

◆ GetIdName()

static const char * mmuIdFactory::GetIdName ( albaID  id)
static

this function can be used to obtain an event Name, given its ID

Friends And Related Function Documentation

◆ mmuIdFactoryTest

friend class mmuIdFactoryTest
friend

friend test class

Definition at line 54 of file mmuIdFactory.h.

Member Data Documentation

◆ m_IdCounter

albaID mmuIdFactory::m_IdCounter
staticprotected

Definition at line 51 of file mmuIdFactory.h.


The documentation for this class was generated from the following file: