igor::iActionManager Class Reference

#include <iActionManager.h>

Inherits igor::iModule< iActionManager >.

Public Member Functions

void registerAction (iActionPtr action)
 
void unregisterAction (const iActionPtr action)
 
bool isRegistered (const iActionPtr action)
 
bool isRegistered (const iaString &actionName)
 
iActionPtr getAction (const iaString &name) const
 
iActionPtr getAction (const int64 hash) const
 

Friends

class iModule< iActionManager >
 

Additional Inherited Members

- Static Public Member Functions inherited from igor::iModule< iActionManager >
static IGOR_INLINE iActionManagergetInstance ()
 
static IGOR_INLINE bool isInstantiated ()
 
static void create ()
 
static void destroy ()
 
- Protected Member Functions inherited from igor::iModule< iActionManager >
 iModule ()=default
 
virtual ~iModule ()=default
 

Detailed Description

action manager class

Member Function Documentation

◆ getAction() [1/2]

iActionPtr igor::iActionManager::getAction ( const iaString name) const
Returns
the action by name
Parameters
namethe action name

◆ getAction() [2/2]

iActionPtr igor::iActionManager::getAction ( const int64  hash) const
Returns
the action by hash value
Parameters
hashthe hash of the action name

◆ isRegistered() [1/2]

bool igor::iActionManager::isRegistered ( const iActionPtr  action)
Returns
true if an action was registered to the action manager
Parameters
actionthe action to check

◆ isRegistered() [2/2]

bool igor::iActionManager::isRegistered ( const iaString actionName)
Returns
true if an action was registered to the action manager
Parameters
actionNamename of the action to check

◆ registerAction()

void igor::iActionManager::registerAction ( iActionPtr  action)

registers an action to the manager

if it's name is not unique it will not be added

registering an action passes ownership to iActionManager

Parameters
actionthe action to be registered

◆ unregisterAction()

void igor::iActionManager::unregisterAction ( const iActionPtr  action)

unregister action from manager by instance

unregistering passes ownership of action back to caller

Parameters
actionthe action to unregister

Friends And Related Function Documentation

◆ iModule< iActionManager >

friend class iModule< iActionManager >
friend

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