summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/examples/CosEC/RtEC_Based/lib/SupplierAdmin_i.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/examples/CosEC/RtEC_Based/lib/SupplierAdmin_i.h')
-rw-r--r--TAO/orbsvcs/examples/CosEC/RtEC_Based/lib/SupplierAdmin_i.h69
1 files changed, 69 insertions, 0 deletions
diff --git a/TAO/orbsvcs/examples/CosEC/RtEC_Based/lib/SupplierAdmin_i.h b/TAO/orbsvcs/examples/CosEC/RtEC_Based/lib/SupplierAdmin_i.h
new file mode 100644
index 00000000000..bab4970dbbc
--- /dev/null
+++ b/TAO/orbsvcs/examples/CosEC/RtEC_Based/lib/SupplierAdmin_i.h
@@ -0,0 +1,69 @@
+/* -*- C++ -*- */
+// $Id$
+
+// ============================================================================
+//
+// = LIBRARY
+// TAO services
+//
+// = FILENAME
+// SupplierAdmin_i.h
+//
+// = AUTHOR
+// Pradeep Gore <pradeep@cs.wustl.edu>
+//
+// = DESCRIPTION
+// This has the implementation of the
+// CosEventChannelAdmin::SupplierAdmin interface.
+//
+// ============================================================================
+
+#ifndef SUPPLIER_ADMIN_I_H
+#define SUPPLIER_ADMIN_I_H
+#include /**/ "ace/pre.h"
+
+#include "orbsvcs/RtecEventChannelAdminC.h"
+#include "orbsvcs/CosEventChannelAdminC.h"
+#include "ProxyPushConsumer_i.h"
+
+class TAO_RTEC_COSEC_Export TAO_CosEC_SupplierAdmin_i :
+ public virtual POA_CosEventChannelAdmin::SupplierAdmin
+{
+ // = TITLE
+ // class TAO_CosEC_SupplierAdmin_i implements the SupplierAdmin interface.
+ //
+ // = DESCRIPTION
+ // This COS-compliant implementation of the SupplierAdmin uses
+ // TAO's RtecEventChannelAdmin::SupplierAdmin.
+public:
+ // = Initialization and termination methods.
+ TAO_CosEC_SupplierAdmin_i (void);
+ // Constructor.
+
+ ~TAO_CosEC_SupplierAdmin_i (void);
+ // Destructor.
+
+ int init (const RtecEventChannelAdmin::SupplierQOS &supplierqos,
+ RtecEventChannelAdmin::SupplierAdmin_ptr rtec_supplieradmin);
+ // Initializes the SupplierAdmin. Returns 0 on success, -1 on
+ // error.
+
+ virtual CosEventChannelAdmin::ProxyPushConsumer_ptr
+ obtain_push_consumer (void);
+ // Returns a new ProxyPushConsumer_ptr.
+
+ virtual CosEventChannelAdmin::ProxyPullConsumer_ptr
+ obtain_pull_consumer(void);
+ // Returns a new ProxyPullConsumer_ptr.
+
+private:
+ RtecEventChannelAdmin::SupplierQOS qos_;
+ // The SupplierQOS specified by the user of this class.
+
+ RtecEventChannelAdmin::SupplierAdmin_var rtec_supplieradmin_;
+ // The RtecEventChannelAdmin::SupplierAdmin specified by the user of
+ // this class.
+};
+
+#include /**/ "ace/post.h"
+#endif /* SUPPLIER_ADMIN_I_H */