00001 00005 /* -------------------------------------------------------------- 00006 Copyright (C) 2001 LifeLine Networks BV <soap2corba@lifeline.nl> 00007 00008 This program is free software; you can redistribute it and/or 00009 modify it under the terms of the GNU General Public License 00010 as published by the Free Software Foundation; either 00011 version 2 of the License, or (at your option) any later 00012 version. 00013 00014 This program is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 GNU General Public License for more details. 00018 00019 You should have received a copy of the GNU General Public License 00020 along with this program; if not, write to the Free Software 00021 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00022 -------------------------------------------------------------- */ 00023 #ifndef ___ServerTime_impl_h__ 00024 #define ___ServerTime_impl_h__ 00025 00026 #include <ServerTime_skel.h> 00027 #include <time.h> 00028 00029 // 00030 // IDL:ServerTime:1.0 00031 // 00032 namespace ServerTime 00033 { 00034 00035 // 00036 // IDL:ServerTime/Time:1.0 00037 // 00038 class Time_impl : virtual public POA_ServerTime::Time, public PortableServer::ServantLocator 00039 { 00040 Time_impl(const Time_impl&); 00041 void operator=(const Time_impl&); 00042 time_t m_drift; 00043 00044 public: 00045 00046 Time_impl(); 00047 ~Time_impl(); 00048 00049 // 00050 // IDL:ServerTime/Time/Now:1.0 00051 // 00052 virtual CORBA::Long Now() 00053 throw(CORBA::SystemException); 00054 00055 // 00056 // IDL:ServerTime/Time/Drift:1.0 00057 // 00058 virtual CORBA::Long Drift() 00059 throw(CORBA::SystemException); 00060 virtual void Drift(CORBA::Long) 00061 throw(CORBA::SystemException); 00062 00063 // 00064 // IDL:ServerTime/Time/WaitThisLong:1.0 00065 // 00066 virtual void WaitThisLong(CORBA::Long seconds) 00067 throw(CORBA::SystemException); 00068 }; 00069 00070 } // End of namespace ServerTime 00071 00072 #endif 00073