summaryrefslogtreecommitdiff
path: root/tests/DLL_Test_Impl.cpp
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-02-24 18:04:30 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-02-24 18:04:30 +0000
commit31ca251b7f3632ef74eee647fa798aa6cc56b96b (patch)
treef3315e633f05e3ab1c3641d482a072f7c92af199 /tests/DLL_Test_Impl.cpp
parentfb17e8300cea71cd66deebd82c7935ea0188e646 (diff)
downloadATCD-31ca251b7f3632ef74eee647fa798aa6cc56b96b.tar.gz
Sat Feb 24 09:45:18 2001 Carlos O'Ryan <coryan@uci.edu>
Diffstat (limited to 'tests/DLL_Test_Impl.cpp')
-rw-r--r--tests/DLL_Test_Impl.cpp69
1 files changed, 69 insertions, 0 deletions
diff --git a/tests/DLL_Test_Impl.cpp b/tests/DLL_Test_Impl.cpp
new file mode 100644
index 00000000000..1c8fe6f4229
--- /dev/null
+++ b/tests/DLL_Test_Impl.cpp
@@ -0,0 +1,69 @@
+// $Id$
+
+// ============================================================================
+//
+// = LIBRARY
+// tests
+//
+// = FILENAME
+// DLL_Test.cpp
+//
+// = DESCRIPTION
+// This test illustrates the use of <ACE_DLL> wrapper class.
+//
+// = AUTHOR
+// Kirthika Parameswaran <kirthika@cs.wustl.edu>
+//
+// ============================================================================
+
+#define ACE_BUILD_SVC_DLL
+
+#include "DLL_Test_Impl.h"
+
+ACE_RCSID(tests, DLL_Test_Impl, "$Id$")
+
+Hello_Impl::Hello_Impl (void)
+{
+ ACE_DEBUG ((LM_DEBUG, "Hello_Impl::Hello_Impl\n"));
+}
+
+Hello_Impl::~Hello_Impl (void)
+{
+ ACE_DEBUG ((LM_DEBUG, "Hello_Impl::~Hello_Impl\n"));
+}
+
+void
+Hello_Impl::say_next (void)
+{
+ ACE_DEBUG ((LM_DEBUG,
+ ACE_TEXT ("How are you?\n")));
+}
+
+extern "C" ACE_Svc_Export Hello *
+get_hello (void)
+{
+ Hello *hello = 0;
+
+ ACE_NEW_RETURN (hello,
+ Hello_Impl,
+ NULL);
+
+ return hello;
+}
+
+class Static_Constructor_Test
+{
+public:
+ Static_Constructor_Test (void)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "Static_Constructor_Test::Static_Constructor_Test\n"));
+ }
+ ~Static_Constructor_Test (void)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "Static_Constructor_Test::~Static_Constructor_Test\n"));
+ }
+};
+
+static Static_Constructor_Test the_instance;