summaryrefslogtreecommitdiff
path: root/examples/Timer_Queue/Driver.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-10-21 07:23:14 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-10-21 07:23:14 +0000
commit9256acaadb8222693ea87bdec718cc2f0b350f6c (patch)
tree7d4427015d69cf467c602e5e2a687ff7dffc3dd5 /examples/Timer_Queue/Driver.cpp
parent02a3fa8f93d7f6baf4389d1acd4e485477d96ca2 (diff)
downloadATCD-9256acaadb8222693ea87bdec718cc2f0b350f6c.tar.gz
*** empty log message ***
Diffstat (limited to 'examples/Timer_Queue/Driver.cpp')
-rw-r--r--examples/Timer_Queue/Driver.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/examples/Timer_Queue/Driver.cpp b/examples/Timer_Queue/Driver.cpp
index 621424d3b3f..9d4182050bd 100644
--- a/examples/Timer_Queue/Driver.cpp
+++ b/examples/Timer_Queue/Driver.cpp
@@ -1,3 +1,5 @@
+// $Id$
+
// ============================================================================
// = LIBRARY
// examples
@@ -15,6 +17,9 @@
//
// ============================================================================
+#if !defined (_DRIVER_CPP_)
+#define _DRIVER_CPP_
+
#include "ace/Auto_Ptr.h"
#include "Driver.h"
@@ -25,7 +30,8 @@ Command<RECEIVER, ACTION>::Command (RECEIVER &recvr,
ACTION action)
: receiver_ (recvr),
action_ (action)
-{}
+{
+}
// invokes an operation.
@@ -35,7 +41,6 @@ Command<RECEIVER, ACTION>::execute (void *arg)
return (receiver_.*action_) (arg);
}
-
// gets the next request from the user input.
template <class TQ, class RECEIVER, class ACTION> int
@@ -140,3 +145,4 @@ Timer_Queue_Test_Driver<TQ, RECEIVER, ACTION>::parse_commands (const char *buf)
return 0;
}
+#endif /* _DRIVER_CPP_ */