#include <Events_Listener.h>
#include <map>
+#include <set>
#include <list>
class Events_MessageGroup;
/// map from event ID to groupped messages (accumulated on flush)
std::map<char*, boost::shared_ptr<Events_Message> > myGroups;
+ ///< set of messages that are flushed right now, so they are not grouped
+ std::set<char*> myFlushed;
+
/// to process flushes or not
bool myFlushActive;
//! Allows to disable flushes: needed in synchronization of document mechanism
//! (to synchronize all and only then flush create, update, etc in correct order)
EVENTS_EXPORT void activateFlushes(const bool theActivate);
+
+ //! Clears all collected messages
+ EVENTS_EXPORT void clear(const Events_ID& theID);
+
+ //! Enables flush without grouping for the given message
+ EVENTS_EXPORT void autoFlush(const Events_ID& theID, const bool theAuto = true);
};
#endif