(986a3bf)
Go to the source code of this file.
◆ defineListener
#define defineListener |
( |
|
name | ) |
|
Value: STD_VECTOR<name*> name::mListeners; \
\
name::name() \
{ \
addListener(this); \
} \
\
name::~name() \
{ \
removeListener(this); \
} \
\
void name::addListener(name *
const listener) \
{ \
} \
\
void name::removeListener(
const name *
const listener) \
{ \
STD_VECTOR<name*>::iterator it = mListeners.begin(); \
while (it != mListeners.end()) \
{ \
it = mListeners.erase(it); \
else \
++ it; \
} \
}
Definition at line 27 of file baselistener.hpp.
◆ defineListenerHeader
#define defineListenerHeader |
( |
|
name | ) |
|
Value: public: \
name(); \
\
virtual ~name(); \
\
static
void addListener(name *
const listener); \
\
static
void removeListener(
const name *
const listener); \
\
private: \
static STD_VECTOR<name*> mListeners;
Definition at line 58 of file baselistener.hpp.