Registry links all Command concrete subclasses with a function that will read the guts of the command and create an instance of the subclass.
More...
#include <anatomist/processor/Registry.h>
|
| Registry () |
| Singleton constructor cannot be accessed by the programmer. More...
|
|
Registry links all Command concrete subclasses with a function that will read the guts of the command and create an instance of the subclass.
Because there has to be only one registry, Registry implements the Singleton pattern:
Definition at line 67 of file Registry.h.
◆ ~Registry()
anatomist::Registry::~Registry |
( |
| ) |
|
◆ Registry()
anatomist::Registry::Registry |
( |
| ) |
|
|
protected |
Singleton constructor cannot be accessed by the programmer.
◆ add()
Register a \Ref{Command} subclass and link with a function will read the guts from a stream and create an instance of it.
- Parameters
-
command | name under which the class will be registered |
◆ create()
Creates a command with given characteristics provided as a Tree.
◆ instance()
static Registry* anatomist::Registry::instance |
( |
| ) |
|
|
static |
Access the unique instance of Registry.
- Returns
- always the same unique instance of Registry
◆ syntax()
The documentation for this class was generated from the following file: