summaryrefslogtreecommitdiff
path: root/trunk/TAO/orbsvcs/tests/Notify/lib/Factories_Define.h
blob: 59a5aadd8ecc7a82a95df6687b29d5e2720dfaec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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_Notify_Tests_COMMAND_FACTORY_DEFINE(export, command, factory_name) \
\
typedef TAO_Notify_Tests_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 */