Sly Engine
AlarmableRegistrationCommand Class Reference

#include <AlarmableRegistrationCommand.h>

Inheritance diagram for AlarmableRegistrationCommand:
Inheritance graph
Collaboration diagram for AlarmableRegistrationCommand:
Collaboration graph

Public Member Functions

 AlarmableRegistrationCommand ()=delete
 Default constructor. More...
 
 AlarmableRegistrationCommand (const AlarmableRegistrationCommand &)=delete
 Copy constructor. More...
 
 AlarmableRegistrationCommand (AlarmableRegistrationCommand &&)=delete
 Move constructor. More...
 
AlarmableRegistrationCommandoperator= (const AlarmableRegistrationCommand &)=delete
 Assignment operator. More...
 
AlarmableRegistrationCommandoperator= (AlarmableRegistrationCommand &&)=delete
 Move assignment operator. More...
 
virtual ~AlarmableRegistrationCommand ()=default
 Deconstructor. More...
 
 AlarmableRegistrationCommand (Alarmable *ptrAl, AlarmableManager::ALARM_ID id)
 Constructor. More...
 
void execute () override
 Executes this command. More...
 
void setTime (float t)
 Sets a time. More...
 
- Public Member Functions inherited from SceneRegistry
 SceneRegistry ()=default
 Default constructor. More...
 
 SceneRegistry (const SceneRegistry &)=delete
 Copy constructor. More...
 
 SceneRegistry (SceneRegistry &&)=delete
 Move constructor. More...
 
SceneRegistryoperator= (const SceneRegistry &)=delete
 Assignment operator. More...
 
SceneRegistryoperator= (SceneRegistry &&)=delete
 Move assignment operator. More...
 
virtual ~SceneRegistry ()=default
 Deconstructor. More...
 
- Public Member Functions inherited from CommandBase
 CommandBase ()=default
 Default constructor. More...
 
 CommandBase (const CommandBase &)=delete
 Copy constructor. More...
 
 CommandBase (CommandBase &&)=delete
 Move constructor. More...
 
CommandBaseoperator= (const CommandBase &)=delete
 Assignment operator. More...
 
CommandBaseoperator= (CommandBase &&)=delete
 Move assignment operator. More...
 
virtual ~CommandBase ()=default
 Deconstructor. More...
 

Private Attributes

AlarmableptrAl
 The pointer to alarmable. More...
 
AlarmableManager::ALARM_ID alId
 Identifier for the alarm. More...
 
float deltaT
 The delta t for time to trigger. More...
 

Constructor & Destructor Documentation

◆ AlarmableRegistrationCommand() [1/4]

AlarmableRegistrationCommand::AlarmableRegistrationCommand ( )
delete

Default constructor.

◆ AlarmableRegistrationCommand() [2/4]

AlarmableRegistrationCommand::AlarmableRegistrationCommand ( const AlarmableRegistrationCommand )
delete

Copy constructor.

◆ AlarmableRegistrationCommand() [3/4]

AlarmableRegistrationCommand::AlarmableRegistrationCommand ( AlarmableRegistrationCommand &&  )
delete

Move constructor.

◆ ~AlarmableRegistrationCommand()

virtual AlarmableRegistrationCommand::~AlarmableRegistrationCommand ( )
virtualdefault

Deconstructor.

◆ AlarmableRegistrationCommand() [4/4]

AlarmableRegistrationCommand::AlarmableRegistrationCommand ( Alarmable ptrAl,
AlarmableManager::ALARM_ID  id 
)

Constructor.

Parameters
[in,out]ptrAlIf non-null, the pointer to the alarmable.
idThe alarm identifier.

Member Function Documentation

◆ execute()

void AlarmableRegistrationCommand::execute ( )
overridevirtual

Executes this command.

Implements CommandBase.

Here is the call graph for this function:

◆ operator=() [1/2]

AlarmableRegistrationCommand& AlarmableRegistrationCommand::operator= ( AlarmableRegistrationCommand &&  )
delete

Move assignment operator.

◆ operator=() [2/2]

AlarmableRegistrationCommand& AlarmableRegistrationCommand::operator= ( const AlarmableRegistrationCommand )
delete

Assignment operator.

◆ setTime()

void AlarmableRegistrationCommand::setTime ( float  t)

Sets a time.

Parameters
tA float as delta t from the currentTime with which to trigger the alarm.
Here is the caller graph for this function:

Member Data Documentation

◆ alId

AlarmableManager::ALARM_ID AlarmableRegistrationCommand::alId
private

Identifier for the alarm.

◆ deltaT

float AlarmableRegistrationCommand::deltaT
private

The delta t for time to trigger.

◆ ptrAl

Alarmable* AlarmableRegistrationCommand::ptrAl
private

The pointer to alarmable.


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