📄 builder.h
字号:
/* -*- C++ -*- */
//=============================================================================
/**
* @file Builder.h
*
* Builder.h,v 1.2 2002/02/08 18:16:35 bala Exp
*
* The builder creates Tasks, Jobs, POAs.
*
* @author Pradeep Gore <pradeep@cs.wustl.edu>
*/
//=============================================================================
#ifndef BUILDER_H
#define BUILDER_H
#include "orbsvcs/CosNamingC.h"
#include "tao/RTPortableServer/RTPortableServer.h"
class Periodic_Task;
class Job_i;
class POA_Holder;
#include "ace/Service_Config.h"
#include "ace/Service_Object.h"
#include "activity_export.h"
class Activity;
class ACE_Arg_Shifter;
typedef POA_Holder** POA_LIST;
typedef Periodic_Task** TASK_LIST;
typedef Job_i** JOB_LIST;
/**
* @class Builder
*
* @brief A service object that creates Tasks, Jobs, POAs.
*
*/
class activity_Export Builder : public ACE_Service_Object
{
public:
/// = Initialization and termination
Builder ();
~Builder ();
/// = Service_Object virtual method overloads.
virtual int init (int argc, char *argv[]);
virtual int fini (void);
/// = List access
int poa_list (POA_LIST& poa_list);
int task_list (TASK_LIST& task_list);
int job_list (JOB_LIST &job_list);
protected:
/// Number of POA's declared
int poa_count_;
/// The list of POA's.
POA_LIST poa_list_;
/// Number of Tasks's declared
int task_count_;
/// The list of Tasks.
TASK_LIST task_list_;
/// Number of Jobs's declared
int job_count_;
/// The list of Jobs
JOB_LIST job_list_;
};
ACE_STATIC_SVC_DECLARE_EXPORT (activity, Builder)
ACE_FACTORY_DECLARE (activity, Builder)
#endif /* BUILDER_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -