A log write now raises the corresponding event.

The event has moved from the filters to the streams, and must now be
specificed when creating the stream. (Not clear yet whether that is a
indeed the right interface).
This commit is contained in:
Robin Sommer 2011-02-21 14:14:33 -08:00
parent 091547de4f
commit f6da93992c
6 changed files with 67 additions and 35 deletions

View file

@ -5,6 +5,7 @@
#define LOGMGR_H
#include "Val.h"
#include "EventHandler.h"
// One value per writer type we have.
namespace LogWriterType {
@ -54,7 +55,7 @@ public:
// These correspond to the BiFs visible on the scripting layer. The
// actual BiFs just forward here.
bool CreateStream(EnumVal* stream_id, RecordType* columns);
bool CreateStream(EnumVal* stream_id, RecordType* columns, EventHandlerPtr handler);
bool AddFilter(EnumVal* stream_id, RecordVal* filter);
bool RemoveFilter(EnumVal* stream_id, StringVal* filter);
bool Write(EnumVal* stream_id, RecordVal* columns);