wavelength 1.0.0
Loading...
Searching...
No Matches
MessageFactory Class Reference

Registrar that adds one message class to the factory list a received message is built from. More...

#include <messagefactory.h>

Classes

struct  Entry
 One entry of the factory list. More...

Public Member Functions

 MessageFactory (int nType, MessageFactoryProc pfnCreate)
 Insert a factory into the list, ordered by identity.

Static Public Member Functions

static std::vector< Entry > * List ()
 Report the factory list, which is constructed on first use and destroyed at exit.

Detailed Description

Registrar that adds one message class to the factory list a received message is built from.

Each registration is a file-scope object whose constructor 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. The name is inferred.

Constructor & Destructor Documentation

◆ MessageFactory()

MessageFactory::MessageFactory ( int nType,
MessageFactoryProc pfnCreate )

Insert a factory into the list, ordered by identity.

Parameters
nTypeThe identity the class streams itself under.
pfnCreateThe factory for the class.
Ghidra address:
NTSC-U/C: 0x0029ccd0
Ghidra address:
PAL: 0x002a6998

Member Function Documentation

◆ List()

std::vector< Entry > * MessageFactory::List ( )
static

Report the factory list, which is constructed on first use and destroyed at exit.

Returns
The list, ordered by identity.
Ghidra address:
NTSC-U/C: 0x0029cc78
Ghidra address:
PAL: 0x002a6940

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