Aria  2.8.0
ArCallbackList Class Reference

A class to hold a list of callbacks to call sequentially. More...

#include <ariaUtil.h>

Inherits ArGenericCallbackList< ArFunctor *>.

Public Member Functions

 ArCallbackList (const char *name="", ArLog::LogLevel logLevel=ArLog::Verbose, bool singleShot=false)
 Constructor.
 
void invoke (void)
 Calls the callback list.
 
virtual ~ArCallbackList ()
 Destructor.
 
- Public Member Functions inherited from ArGenericCallbackList< ArFunctor *>
void addCallback (ArFunctor * functor, int position=50)
 Adds a callback.
 
 ArGenericCallbackList (const char *name="", ArLog::LogLevel logLevel=ArLog::Verbose, bool singleShot=false)
 Constructor.
 
void remCallback (ArFunctor * functor)
 Removes a callback.
 
void setLogging (bool on)
 Enable or disable logging when invoking the list. Logging is enabled by default at the log level given in the constructor.
 
void setLogLevel (ArLog::LogLevel logLevel)
 Sets the log level.
 
void setName (const char *name)
 Sets the name.
 
void setNameVar (const char *name,...)
 Sets the name with formatting. More...
 
void setSingleShot (bool singleShot)
 Sets if its single shot.
 
virtual ~ArGenericCallbackList ()
 Destructor.
 

Additional Inherited Members

- Protected Attributes inherited from ArGenericCallbackList< ArFunctor *>
ArMutex myDataMutex
 
std::multimap< int, ArFunctor * > myList
 
bool myLogging
 
ArLog::LogLevel myLogLevel
 
std::string myName
 
bool mySingleShot
 

Detailed Description

A class to hold a list of callbacks to call sequentially.


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