summaryrefslogtreecommitdiff
path: root/TAO/tests/Quoter/quoter_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Quoter/quoter_impl.h')
-rw-r--r--TAO/tests/Quoter/quoter_impl.h74
1 files changed, 74 insertions, 0 deletions
diff --git a/TAO/tests/Quoter/quoter_impl.h b/TAO/tests/Quoter/quoter_impl.h
new file mode 100644
index 00000000000..6adf9fbcb81
--- /dev/null
+++ b/TAO/tests/Quoter/quoter_impl.h
@@ -0,0 +1,74 @@
+// $Id$
+
+// ============================================================================
+//
+// = LIBRARY
+// TAO/tests/Quoter
+//
+// = FILENAME
+// quoter_impl.h
+//
+// = AUTHOR
+// Darrell Brunsch
+//
+// ============================================================================
+
+#if !defined (QUOTER_IMPL_H)
+#define QUOTER_IMPL_H
+
+#include "QuoterS.h"
+
+// Forward declarations.
+class Quoter_Impl;
+
+// Typedefs.
+typedef Quoter_Impl *Quoter_Impl_ptr;
+typedef Quoter_Impl_ptr Quoter_Impl_ref;
+
+class Quoter_Impl: public POA_Stock::Quoter
+{
+ // = TITLE
+ // @@@@ Write
+ //
+ // = DESCRIPTION
+ // @@@@ Write
+public:
+ Quoter_Impl (const char *obj_name = 0);
+ // Constructor
+
+ ~Quoter_Impl (void);
+ // Destructor
+
+ virtual CORBA::Long get_quote (const char *stock_name,
+ CORBA::Environment &env);
+
+ virtual void destroy (CORBA_Environment &env);
+};
+
+class Quoter_Factory_Impl;
+
+typedef Quoter_Factory_Impl *Quoter_Factory_Impl_ptr;
+
+class Quoter_Factory_Impl: public POA_Stock::Quoter_Factory
+{
+ // = TITLE
+ // Quoter_Factory_Impl
+ //
+ // = DESCRIPTION
+ // Factory object returning the quoter_impl objrefs
+public:
+ Quoter_Factory_Impl (void);
+ // Constructor.
+
+ ~Quoter_Factory_Impl (void);
+ // Destructor.
+
+ virtual Stock::Quoter_ptr create_quoter (const char *name,
+ CORBA::Environment &env);
+ // Return the quoter by the id <name>
+
+private:
+ Quoter_Impl my_quoter_;
+};
+
+#endif /* QUOTER_IMPL_H */