Command to register an updatable object for updates. More...
#include <UpdateRegistrationCommand.h>
Public Member Functions | |
UpdateRegistrationCommand (Updatable *up) | |
Constructor for UpdateRegistrationCommand. | |
UpdateRegistrationCommand (const UpdateRegistrationCommand &)=delete | |
UpdateRegistrationCommand & | operator= (const UpdateRegistrationCommand &)=delete |
void | Execute () override |
Executes the registration command. | |
![]() | |
virtual | ~CommandBase ()=default |
Destructor for CommandBase. | |
Public Attributes | |
Updatable * | ptrUp = nullptr |
Pointer to the updatable object to be registered. | |
Command to register an updatable object for updates.
The UpdateRegistrationCommand class is responsible for registering an updatable object with the UpdatableManager. It inherits from CommandBase and implements the Execute method to perform the registration.
UpdateRegistrationCommand::UpdateRegistrationCommand | ( | Updatable * | up | ) |
Constructor for UpdateRegistrationCommand.
up | Pointer to the updatable object to be registered. |
|
overridevirtual |
Executes the registration command.
This method registers the updatable object with the UpdatableManager.
Implements CommandBase.