00001 #ifndef PHASEFACTORY_I_H 00002 #define PHASEFACTORY_I_H 00003 00004 #include "phases.hh" 00005 #include "Phase_i.h" 00006 #include "PhaseManager_i.h" 00007 00014 class PhaseFactory_i : public POA_phases::PhaseFactory,public PortableServer::RefCountServantBase { 00015 public: 00017 PhaseFactory_i(PhaseManager_i *pmgr,CORBA::ORB_var lorb); 00019 virtual ~PhaseFactory_i(); 00020 00022 CORBA::StringSeq* getPhaseNames(); 00023 00025 phases::dPhase_ptr spawnPhase(const char *pname, 00026 const common::ClientData& cd); 00027 00029 phases::dPhase_ptr spawnPhaseProcess(const char *pname, 00030 const common::ClientData& cd); 00031 00033 static Phase *getPhasePtr(const char *pname); 00034 00036 int verbose; 00037 00038 private: 00039 // variables ////////////////////////////// 00041 PhaseManager_i *phasemgr; 00043 CORBA::ORB_var orb; 00045 static const int NPHASE=123; 00047 static char *phaseNames[]; 00048 }; 00049 00050 #endif