#include <UT_SubSystem.h>
All subsystems should derive from this interface. Each subsystem then defines how to initialize and shutdown its components. All components of a subsystem should be lazy initialized.
To add a new subsystem:
- Add a new entry to the Type enum below.
- In a header, declare a class deriving from
UT_ISubSystem, use UT_SUBSYSTEM_CLASS(your_type) inside it.
- Override
initialize_() / shutdown_().
- End the header with
UT_SUBSYSTEM_DECLARE(your_api, YourSubSystem).
- In the matching .C file, add
UT_SUBSYSTEM_IMPL(YourSubSystem).
- Access the singleton anywhere via
UTgetSubSystem<YourSubSystem>().
Definition at line 44 of file UT_SubSystem.h.
| Enumerator |
|---|
| UT_SUBSYSTEM |
|
| NET_SUBSYSTEM |
|
| LM_SUBSYSTEM |
|
| UNI_SUBSYSTEM |
|
| COP_SUBSYSTEM |
|
| MAX_SUBSYSTEMS |
|
Definition at line 47 of file UT_SubSystem.h.
| virtual UT_ISubSystem::~UT_ISubSystem |
( |
| ) |
|
|
virtualdefault |
| UT_ISubSystem::UT_ISubSystem |
( |
| ) |
|
|
protecteddefault |
| virtual void UT_ISubSystem::initialize_ |
( |
| ) |
|
|
protectedpure virtual |
template<typename SubSystemT >
| static bool UT_ISubSystem::registerSubSystem |
( |
SubSystemT & |
subsys | ) |
|
|
inlinestatic |
| virtual void UT_ISubSystem::shutdown_ |
( |
| ) |
|
|
protectedpure virtual |
| virtual Type UT_ISubSystem::type |
( |
| ) |
const |
|
pure virtual |
The type of the subsystem.
| friend class ut_SubSystemRegistry |
|
friend |
The documentation for this class was generated from the following file: