|
resonance 1.0.1
|
Registrar that adds one message class to the factory list Message::NewMessage() searches. More...
#include <messagefactory.h>
Public Member Functions | |
| MessageFactory (int nType, MessageFactoryProc pfnCreate) | |
| Insert a factory into the list, ordered by identity. | |
Registrar that adds one message class to the factory list Message::NewMessage() searches.
The translation unit at 0x003d9818 constructs 92 of these as file-scope objects, one for each concrete message, and the unit at 0x003ed2e0 constructs 22 more for the packets. Each passes the identity Message::Type() reports and the class's static New(). The class is not polymorphic, emits no RTTI descriptor, and writes no member, and the title is inferred from the diagnostic Cannot find ID ld in Message Factory List.
| MessageFactory::MessageFactory | ( | int | nType, |
| MessageFactoryProc | pfnCreate ) |
Insert a factory into the list, ordered by identity.
Unlike Sch::CommandFactory, the constructor has no zero test and inserts every pair.
| nType | The identity the class streams itself under. |
| pfnCreate | The factory for the class. |