anatomist 6.0.4
3D neuroimaging data viewer
anatomist::ActionDictionary Class Reference

#include <anatomist/controler/actiondictionary.h>

Classes

class  ActionCreatorBase
 almost private utility class, used mainly for python bindings More...
 
class  ActionCreatorFunc
 almost private utility class, used mainly for python bindings More...
 

Public Types

typedef ActionPtr(* ActionCreator) ()
 

Public Member Functions

 ActionDictionary ()
 
 ~ActionDictionary ()
 
ActionPtr getActionInstance (const std::string &name)
 
void addAction (const std::string &name, ActionCreator creator)
 
void addAction (const std::string &name, ActionCreatorBase *creator)
 
bool removeAction (const std::string &)
 

Static Public Member Functions

static ActionDictionaryinstance ()
 

Detailed Description

Definition at line 46 of file actiondictionary.h.

Member Typedef Documentation

◆ ActionCreator

typedef ActionPtr(* anatomist::ActionDictionary::ActionCreator) ()

Definition at line 49 of file actiondictionary.h.

Constructor & Destructor Documentation

◆ ActionDictionary()

anatomist::ActionDictionary::ActionDictionary ( )

Referenced by instance(), and removeAction().

◆ ~ActionDictionary()

anatomist::ActionDictionary::~ActionDictionary ( )

Member Function Documentation

◆ addAction() [1/2]

void anatomist::ActionDictionary::addAction ( const std::string & name,
ActionCreator creator )

◆ addAction() [2/2]

void anatomist::ActionDictionary::addAction ( const std::string & name,
ActionCreatorBase * creator )

◆ getActionInstance()

ActionPtr anatomist::ActionDictionary::getActionInstance ( const std::string & name)

◆ instance()

static ActionDictionary * anatomist::ActionDictionary::instance ( )
static

References ActionDictionary().

◆ removeAction()

bool anatomist::ActionDictionary::removeAction ( const std::string & )

References ActionDictionary().


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