I can't see how I can ever use the event manager for things other the the wildcard type.
All the functions check if a type is valid, and the validator rejects unknown types:
Looking at the code it doesn't make sense and it fails in practice in a project.
What am I missing?
Display All
All the functions check if a type is valid, and the validator rejects unknown types:
Looking at the code it doesn't make sense and it fails in practice in a project.
What am I missing?
Source Code
- bool EventManager::VAddListener(EventListenerPtr const & inListener, EventType const & inType)
- {
- if (!VValidateType( inType ))
- return false;
- ...
- }
- bool EventManager::VValidateType( EventType const & inType) const {
- ...
- EventTypeSet::const_iterator evIt=m_typeList.find(inType);
- if (evIt==m_typeList.end()){
- assert(...);
- return false;
- }
- }