diff options
Diffstat (limited to 'TAO/orbsvcs/tests/Notify/lib/Factories_Define.h')
-rw-r--r-- | TAO/orbsvcs/tests/Notify/lib/Factories_Define.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/TAO/orbsvcs/tests/Notify/lib/Factories_Define.h b/TAO/orbsvcs/tests/Notify/lib/Factories_Define.h new file mode 100644 index 00000000000..beb9a446c68 --- /dev/null +++ b/TAO/orbsvcs/tests/Notify/lib/Factories_Define.h @@ -0,0 +1,38 @@ +/* -*- C++ -*- */ +/** + * @file Factories_Define.h + * + * $Id$ + * + * @author Pradeep Gore <pradeep@oomworks.com> + * + * + */ + +#ifndef TAO_FACTORIES_DEFINE_H +#define TAO_FACTORIES_DEFINE_H +#include "ace/pre.h" + +#include "Command_Factory_T.h" + +#define TAO_NS_COMMAND_FACTORY_DEFINE(export, command, factory_name) \ +\ +typedef TAO_NS_Command_Factory_T <command> command##_Factory;\ +\ +ACE_STATIC_SVC_DECLARE_EXPORT (export, command##_Factory) \ +\ +ACE_FACTORY_DECLARE (export, command##_Factory) \ +\ +ACE_STATIC_SVC_DEFINE(command##_Factory, \ + factory_name, \ + ACE_SVC_OBJ_T, \ + &ACE_SVC_NAME (command##_Factory), \ + ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ, \ + 0) \ +\ +ACE_FACTORY_DEFINE (export, command##_Factory) \ +\ + + +#include "ace/post.h" +#endif /* TAO_FACTORIES_DEFINE_H */ |