summaryrefslogtreecommitdiff
path: root/TAO/tao/IIOP_Factory.h
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-05-27 00:25:23 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-05-27 00:25:23 +0000
commit6120ebbb2351296f43f6be77ca8d2acede87204a (patch)
tree15d11034396d9c886c7021605705a7f0370f5d98 /TAO/tao/IIOP_Factory.h
parent457f8b0edf17c7abc57be85dcd78f5974057c01b (diff)
downloadATCD-6120ebbb2351296f43f6be77ca8d2acede87204a.tar.gz
ChangeLogTag:Wed May 26 18:51:39 1999 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/IIOP_Factory.h')
-rw-r--r--TAO/tao/IIOP_Factory.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/TAO/tao/IIOP_Factory.h b/TAO/tao/IIOP_Factory.h
new file mode 100644
index 00000000000..07f1f60a5d9
--- /dev/null
+++ b/TAO/tao/IIOP_Factory.h
@@ -0,0 +1,54 @@
+// -*- C++ -*-
+// $Id$
+// ============================================================================
+//
+// = LIBRARY
+// TAO
+//
+// = FILENAME
+// Protocol_Factory.h
+//
+// = AUTHOR
+// Fred Kuhns <fredk@cs.wustl.edu>
+//
+// ============================================================================
+
+#ifndef TAO_IIOP_FACTORY_H
+#define TAO_IIOP_FACTORY_H
+
+#include "tao/Protocol_Factory.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+class TAO_Acceptor;
+class TAO_Connector;
+
+
+class TAO_Export TAO_IIOP_Protocol_Factory : public TAO_Protocol_Factory
+{
+public:
+ TAO_IIOP_Protocol_Factory (void);
+ virtual ~TAO_IIOP_Protocol_Factory (void);
+
+ // = Service Configurator hooks.
+ virtual int init (int argc, char* argv[]);
+ // Dynamic linking hook
+
+ // @@ Fred&Ossama: Shouldn't we use a plain const char* here?
+ virtual int match_prefix (const ACE_CString &prefix);
+ // verify prefix is a match
+
+ // Factory methods
+ virtual TAO_Acceptor *make_acceptor (void);
+ // create an acceptor
+
+ virtual TAO_Connector *make_connector (void);
+ // create a connector
+};
+
+ACE_STATIC_SVC_DECLARE (TAO_IIOP_Protocol_Factory)
+ACE_FACTORY_DECLARE (TAO, TAO_IIOP_Protocol_Factory)
+
+#endif /* TAO_IIOP_FACTORY_H */