Use =default for skeleton copy constructor
[ACE_TAO.git] / ACE / tests / DLL_Test_Impl.h
blobacfcb76fa679dc37a16b21c4cf2566bd2497f473
2 //=============================================================================
3 /**
4 * @file DLL_Test_Impl.h
6 * @author Kirthika Parameswaran <kirthika@cs.wustl.edu>
7 */
8 //=============================================================================
11 #ifndef ACE_TESTS_DLL_TEST_IMPL_H
12 #define ACE_TESTS_DLL_TEST_IMPL_H
14 #include "DLL_Test.h"
15 #include "ace/OS_Memory.h"
17 #if !defined (ACE_LACKS_PRAGMA_ONCE)
18 # pragma once
19 #endif /* ACE_LACKS_PRAGMA_ONCE */
21 /**
22 * @class Hello_Impl
24 * @brief The Hello class in the dynamically linkable library.
26 * This class is used in this example to show how a library can
27 * be loaded on demand and its methods called on getting the
28 * symbols from the library.
30 class Hello_Impl : public Hello
32 public:
33 /// Constructor
34 Hello_Impl ();
36 /// Destructor
37 ~Hello_Impl ();
39 /// See the documentation in the base class
40 void say_next () override;
42 /// Uses ACE::strnew() to allocate the returned string.
43 ACE_TCHAR *new_info () override;
45 /// Uses ACE_OS::malloc() to allocate the returned string.
46 ACE_TCHAR *malloc_info () override;
48 // Overload the new/delete opertors so the object will be
49 // created/deleted using the memory allocator associated with the
50 // DLL/SO.
51 void *operator new (size_t bytes);
53 /// Overloaded new operator, nothrow_t variant.
54 void *operator new (size_t bytes, const std::nothrow_t &nt);
55 void operator delete (void *p, const std::nothrow_t&) noexcept;
57 void operator delete (void *ptr);
60 #endif /* ACE_TESTS_DLL_TEST_IMPL_H */