summaryrefslogtreecommitdiff
path: root/comm/OLD/Service.cc
diff options
context:
space:
mode:
authorchatty1995-02-13 16:57:17 +0000
committerchatty1995-02-13 16:57:17 +0000
commitf410816d5bc16f7b9fd4f4187c09ebcd8a773e27 (patch)
tree8e4c314ec8c391af367baf5f6b89e8b86d6cddb1 /comm/OLD/Service.cc
parentfd50b746cbb156d702f99d6b8ab74db8c66299ac (diff)
downloadivy-league-f410816d5bc16f7b9fd4f4187c09ebcd8a773e27.zip
ivy-league-f410816d5bc16f7b9fd4f4187c09ebcd8a773e27.tar.gz
ivy-league-f410816d5bc16f7b9fd4f4187c09ebcd8a773e27.tar.bz2
ivy-league-f410816d5bc16f7b9fd4f4187c09ebcd8a773e27.tar.xz
Added new class UchEventMsg
Diffstat (limited to 'comm/OLD/Service.cc')
-rw-r--r--comm/OLD/Service.cc26
1 files changed, 26 insertions, 0 deletions
diff --git a/comm/OLD/Service.cc b/comm/OLD/Service.cc
index be28b60..df14025 100644
--- a/comm/OLD/Service.cc
+++ b/comm/OLD/Service.cc
@@ -192,6 +192,32 @@ UchService :: PutBackEvent (UchMessage* ev)
}
+/*?class UchEventMsg
+\typ{UchEventMsg} is the base class for event messages to be used with
+\typ{UchService}s. The difference between an \typ{UchEventMsg} and a
+\typ{UchMessage} lies in the function \fun{Activate}: event messages
+add themselves to the event queue.
+?*/
+
+/*?nodoc?*/
+UchEventMsg :: UchEventMsg ()
+{
+}
+
+/*?nodoc?*/
+UchEventMsg :: ~UchEventMsg ()
+{
+}
+
+/*?nodoc?*/
+bool
+UchEventMsg :: Activate (UchMsgStream& s, bool)
+{
+ UchService* svc = (UchService*) &s;
+ svc->PutEvent (this);
+ return true;
+}
+
/*?class UchGenMsg
This is a sample derived class of \typ{UchEventMsg}.
It defines events that contain a pointer to a \typ{UchMessage}.