diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2001-07-30 06:22:02 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2001-07-30 06:22:02 +0000 |
commit | 46f85575f60bd65f931909a7bbaf7861e27f35be (patch) | |
tree | f5bc80eeee3b888b0f54c77880049b8aff573edd /tests/Service_Config_DLL.h | |
parent | 35612613b3e5b1ddcdec441948d4233dc08e531a (diff) | |
download | ATCD-46f85575f60bd65f931909a7bbaf7861e27f35be.tar.gz |
ChangeLogTag:Sun Jul 29 22:10:40 2001 Ossama Othman <ossama@uci.edu>
Diffstat (limited to 'tests/Service_Config_DLL.h')
-rw-r--r-- | tests/Service_Config_DLL.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/tests/Service_Config_DLL.h b/tests/Service_Config_DLL.h new file mode 100644 index 00000000000..bd55dea1661 --- /dev/null +++ b/tests/Service_Config_DLL.h @@ -0,0 +1,68 @@ +// -*- C++ -*- + +//============================================================================= +/** + * @file Service_Config_DLL.h + * + * $Id$ + * + * @author Ossama Othman <ossama@uci.edu> + */ +//============================================================================= + +#ifndef SERVICE_CONFIG_DLL_H +#define SERVICE_CONFIG_DLL_H + +#include "ace/pre.h" + +#include "Service_Config_DLL_Export.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "ace/Task.h" + +/** + * @class Service_Config_DLL + * + * @brief The Service_Config_DLL that is instantiated when the + * client-side test module/library is dynamically loaded. + * + * This class is the implementation used for all service instances + * (i.e. those declared using the ACE_FACTORY_* macros). + */ +class Service_Config_DLL_Export Service_Config_DLL : public ACE_Task_Base +{ +public: + + /// Constructor. + Service_Config_DLL (void); + + /// Initializes object when dynamic linking occurs. + virtual int init (int argc, ACE_TCHAR *argv[]); + + /// Terminates object when dynamic unlinking occurs. + virtual int fini (void); + + /// Run by a daemon thread. + /** + * Each thread will invoke the Service Configurator via this + * method unless the object is the "FINAL" object. + */ + virtual int svc (void); + +private: + + /// Directives to be passed to be processed by the Service + /// Configurator in seperate threads. + ACE_TCHAR directive_[2][BUFSIZ]; + +}; + + +ACE_FACTORY_DECLARE (Service_Config_DLL, Service_Config_DLL) + +#include "ace/post.h" + +#endif /* SERVICE_CONFIG_DLL_H */ |