2 //=============================================================================
6 * The builder creates Tasks, Jobs, POAs.
8 * @author Pradeep Gore <pradeep@cs.wustl.edu>
10 //=============================================================================
14 #include "orbsvcs/CosNamingC.h"
15 #include "tao/RTPortableServer/RTPortableServer.h"
17 #include "ace/Service_Config.h"
18 #include "ace/Service_Object.h"
19 #include "ace/Arg_Shifter.h"
26 typedef POA_Holder
** POA_LIST
;
27 typedef Periodic_Task
** TASK_LIST
;
28 typedef Job_i
** JOB_LIST
;
33 * @brief A service object that creates Tasks, Jobs, POAs.
35 class Builder
: public ACE_Service_Object
41 /// = Service_Object virtual method overloads.
42 virtual int init (int argc
, ACE_TCHAR
*argv
[]);
43 virtual int fini (void);
46 int poa_list (POA_LIST
& poa_list
);
47 int task_list (TASK_LIST
& task_list
);
48 int job_list (JOB_LIST
&job_list
);
52 /// Number of POA's declared
55 /// The list of POA's.
58 /// Number of Tasks's declared
61 /// The list of Tasks.
64 /// Number of Jobs's declared
71 ACE_STATIC_SVC_DECLARE (Builder
)
73 ACE_FACTORY_DECLARE (ACE_Local_Service
, Builder
)
75 #endif /* BUILDER_H */