summaryrefslogtreecommitdiff
path: root/dnn/Event.h
diff options
context:
space:
mode:
authorchatty2000-11-28 14:52:15 +0000
committerchatty2000-11-28 14:52:15 +0000
commit38e9ce178e63a0cdf8a060a4615b8a20ffbfafe2 (patch)
tree2313a6420e04902c7c81e70694b48e35cac36001 /dnn/Event.h
parent7d3a3c409c6492db6a3caabc7e9037b79ae7422d (diff)
downloadivy-league-38e9ce178e63a0cdf8a060a4615b8a20ffbfafe2.zip
ivy-league-38e9ce178e63a0cdf8a060a4615b8a20ffbfafe2.tar.gz
ivy-league-38e9ce178e63a0cdf8a060a4615b8a20ffbfafe2.tar.bz2
ivy-league-38e9ce178e63a0cdf8a060a4615b8a20ffbfafe2.tar.xz
Split DnnEvent into DnnEvent and DnnBasicEvent
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; }