summaryrefslogtreecommitdiff
path: root/ACE/TAO/orbsvcs/examples/Notify/Lanes/Supplier_Client.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/TAO/orbsvcs/examples/Notify/Lanes/Supplier_Client.h')
-rw-r--r--ACE/TAO/orbsvcs/examples/Notify/Lanes/Supplier_Client.h71
1 files changed, 71 insertions, 0 deletions
diff --git a/ACE/TAO/orbsvcs/examples/Notify/Lanes/Supplier_Client.h b/ACE/TAO/orbsvcs/examples/Notify/Lanes/Supplier_Client.h
new file mode 100644
index 00000000000..751c996ec65
--- /dev/null
+++ b/ACE/TAO/orbsvcs/examples/Notify/Lanes/Supplier_Client.h
@@ -0,0 +1,71 @@
+/* -*- C++ -*- */
+/**
+ * @file Supplier_Client.h
+ *
+ * $Id$
+ *
+ * @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
+ */
+
+#ifndef TAO_Notify_SUPPLIER_CLIENT_H
+#define TAO_Notify_SUPPLIER_CLIENT_H
+
+#include /**/ "ace/pre.h"
+#include "ace/Task.h"
+#include "ace/SString.h"
+
+#include "ORB_Objects.h"
+
+class TAO_Notify_Lanes_Supplier;
+
+/**
+ * @class TAO_Notify_Lanes_Supplier_Client
+ *
+ * @brief Supplier Client
+ *
+ */
+class TAO_Notify_Lanes_Supplier_Client : public ACE_Task_Base
+{
+public:
+ /// Constructor
+ TAO_Notify_Lanes_Supplier_Client (TAO_Notify_ORB_Objects& orb_objects);
+
+ /// Destructor
+ ~TAO_Notify_Lanes_Supplier_Client ();
+
+ /// Init
+ void initialize (void);
+
+ /// Run
+ void run (void);
+
+ /// Parse Args
+ int parse_args (int argc, ACE_TCHAR *argv[]);
+
+ /// The thread entry point.
+ virtual int svc (void);
+
+protected:
+ /// Create an EC
+ CosNotifyChannelAdmin::EventChannel_ptr create_ec (void);
+
+ /// Write ior to file.
+ void write_ior (void);
+
+ /// ORB Objects.
+ TAO_Notify_ORB_Objects orb_objects_;
+
+ /// Supplier that sends events.
+ TAO_Notify_Lanes_Supplier* supplier_;
+
+ /// The Number of consumers that we expect to send an event to.
+ int consumer_count_;
+
+ /// Name of the file to write the supplier ior to.
+ ACE_TString ior_file_name_;
+};
+
+#include /**/ "ace/post.h"
+#endif /* TAO_Notify_SUPPLIER_CLIENT_H */