summaryrefslogtreecommitdiff
path: root/dnn/Event.h
diff options
context:
space:
mode:
Diffstat (limited to 'dnn/Event.h')
-rw-r--r--dnn/Event.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/dnn/Event.h b/dnn/Event.h
index da03c8e..b2c7341 100644
--- a/dnn/Event.h
+++ b/dnn/Event.h
@@ -10,6 +10,7 @@
*
* $Id$
* $CurLog$
+ * Split DnnEvent into DnnEvent and DnnBasicEvent
*/
#ifndef DnnEvent_H_
@@ -80,14 +81,21 @@ inline void RemoveFeature () { }
};
class DnnEvent {
+public:
+ DnnEvent ();
+ DnnEvent (const DnnEventType*); // useless, for compatibility only
+virtual ~DnnEvent ();
+};
+
+class DnnBasicEvent : public DnnEvent {
protected:
const DnnEventType& Type;
char* Data;
- DnnEvent (const DnnEventType*, bool);
+ DnnBasicEvent (const DnnEventType*, bool);
public:
- DnnEvent (const DnnEventType*);
-virtual ~DnnEvent ();
+ DnnBasicEvent (const DnnEventType*);
+ ~DnnBasicEvent ();
void SetFeature (int, const void*);
void GetFeature (int, void*);
inline const DnnEventType* GetType () const { return &Type; }