summaryrefslogtreecommitdiff
path: root/TAO/examples/Callback_Quoter/Notifier_i.h
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-20 02:34:57 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-20 02:34:57 +0000
commit0902828269fb1a42ed23c208fd61bac76aaddc13 (patch)
tree5967e9ca7d44ed1d2823be9746817ebb8e025f5d /TAO/examples/Callback_Quoter/Notifier_i.h
parente7788cff873f30e65d44d38db7cfafc175f748a3 (diff)
downloadATCD-0902828269fb1a42ed23c208fd61bac76aaddc13.tar.gz
changed include protection from #if !defined to ifndef, and added #pragma once, if possible
Diffstat (limited to 'TAO/examples/Callback_Quoter/Notifier_i.h')
-rw-r--r--TAO/examples/Callback_Quoter/Notifier_i.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/TAO/examples/Callback_Quoter/Notifier_i.h b/TAO/examples/Callback_Quoter/Notifier_i.h
index e93431ceef1..72b772421f3 100644
--- a/TAO/examples/Callback_Quoter/Notifier_i.h
+++ b/TAO/examples/Callback_Quoter/Notifier_i.h
@@ -17,13 +17,18 @@
//
// ===========================================================
-#if !defined (NOTIFIER_I_H)
+#ifndef NOTIFIER_I_H
#define NOTIFIER_I_H
#include "NotifierS.h"
#include "ConsumerC.h"
#include "tao/TAO.h"
#include "ace/Containers.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
#include "ace/SString.h"
class Notifier_i : public POA_Notifier
@@ -40,19 +45,19 @@ public:
// Destructor.
virtual void register_callback (const char *stock_name,
- CORBA::Long threshold_value,
- Callback_Quoter::Consumer_ptr consumer_handler,
- CORBA::Environment &TAO_TRY_ENV);
+ CORBA::Long threshold_value,
+ Callback_Quoter::Consumer_ptr consumer_handler,
+ CORBA::Environment &TAO_TRY_ENV);
// Register a distributed callback handler that is invoked when the
// given stock reaches the desired threshold value.
virtual void unregister_callback (Callback_Quoter::Consumer_ptr consumer_handler,
- CORBA::Environment &TAO_TRY_ENV);
+ CORBA::Environment &TAO_TRY_ENV);
// Remove the consumer object.
virtual void market_status (const char *stock_name,
- CORBA::Long stock_value,
- CORBA::Environment &TAO_TRY_ENV);
+ CORBA::Long stock_value,
+ CORBA::Environment &TAO_TRY_ENV);
// Get the market status.
void orb (CORBA::ORB_ptr orb);