00001 #ifndef maciORBTask_h 00002 #define maciORBTask_h 00003 00004 /******************************************************************* 00005 * E.S.O. - ACS project 00006 * 00007 * "@(#) $Id: maciORBTask.h,v 1.2 2006/09/01 02:20:54 cparedes Exp $" 00008 * 00009 * who when what 00010 * -------- ---------- ---------------------------------------------- 00011 * msekoran 2003/05/22 created 00012 */ 00013 00014 #include <acsutil.h> 00015 #include <logging.h> 00016 #include <ace/Task.h> 00017 #include <tao/ORB.h> 00018 00019 namespace maci { 00020 00037 class ORBTask : public ACE_Task_Base 00038 { 00039 public: 00040 00047 ORBTask (CORBA::ORB_ptr orb, LoggingProxy * logger = 0, unsigned int timeToRun = 0); 00048 00049 private: 00050 00052 virtual int svc (void); 00053 00055 CORBA::ORB_var m_orb; 00056 00058 LoggingProxy * m_logger; 00059 00061 unsigned int m_timeToRun; 00062 00063 }; 00064 00065 }; 00066 00067 #endif /* maciORBTask_h */ 00068 00069 // ************************************************************************ 00070 // 00071 // REVISION HISTORY: 00072 // 00073 // $Log: maciORBTask.h,v $ 00074 // Revision 1.2 2006/09/01 02:20:54 cparedes 00075 // small change, NAMESPACE_BEGIN / NAMESPACE_END / NAMESPACE_USE macross to clean up a little the cpp code 00076 // 00077 // Revision 1.1 2003/05/23 09:26:37 msekoran 00078 // Multi-threaded servers, hierarchical COBs reactivation deadlock fixed. 00079 // 00080 // 00081 // ************************************************************************