summaryrefslogtreecommitdiff
path: root/TAO/tests/Two_Objects/Object_Factory_i.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Two_Objects/Object_Factory_i.h')
-rw-r--r--TAO/tests/Two_Objects/Object_Factory_i.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/TAO/tests/Two_Objects/Object_Factory_i.h b/TAO/tests/Two_Objects/Object_Factory_i.h
new file mode 100644
index 00000000000..6599e00f80f
--- /dev/null
+++ b/TAO/tests/Two_Objects/Object_Factory_i.h
@@ -0,0 +1,36 @@
+// -*- C++ -*-
+//
+// $Id$
+
+#ifndef OBJECT_FACTORY_I_H
+#define OBJECT_FACTORY_I_H
+
+#include "Two_ObjectsS.h"
+#include "First_i.h"
+#include "Second_i.h"
+
+#include "ace/Auto_Event.h"
+
+
+/// Implement the MTServer::Test interface
+class Object_Factory_i
+ : public virtual POA_Two_Objects_Test::Object_Factory
+{
+public:
+
+ Object_Factory_i (CORBA::ORB_ptr orb,
+ CORBA::ULong len);
+
+ Two_Objects_Test::First_ptr create_first (void);
+
+ Two_Objects_Test::Second_ptr create_second (void);
+
+private:
+ /// Use an ORB reference to conver strings to objects and shutdown
+ /// the application.
+ CORBA::ORB_var orb_;
+ CORBA::ULong length_;
+ ACE_Auto_Event two_way_done_;
+};
+
+#endif /* OBJECT_FACTORY_I_H */