summaryrefslogtreecommitdiff
path: root/TAO/tao/IIOP_Factory.h
diff options
context:
space:
mode:
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 */