• Classes
  • Modules
  • Namespaces
  • Files
  • Related Pages
  • File List
  • File Members

acstimeClockImpl.h

Go to the documentation of this file.
00001 #ifndef ACSTIME_CLOCK_IMPL_H
00002 #define ACSTIME_CLOCK_IMPL_H
00003 /*******************************************************************************
00004 * ALMA - Atacama Large Millimiter Array
00005 * Copyright (c) European Southern Observatory, 2011
00006 *
00007 * This library is free software; you can redistribute it and/or
00008 * modify it under the terms of the GNU Lesser General Public
00009 * License as published by the Free Software Foundation; either
00010 * version 2.1 of the License, or (at your option) any later version.
00011 *
00012 * This library is distributed in the hope that it will be useful,
00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015 * Lesser General Public License for more details.
00016 *
00017 * You should have received a copy of the GNU Lesser General Public
00018 * License along with this library; if not, write to the Free Software
00019 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
00020 *
00021 * "@(#) $Id: acstimeClockImpl.h,v 1.18 2011/10/28 15:12:04 hsommer Exp $"
00022 */
00023 #ifndef __cplusplus
00024 #error This is a C++ include file and cannot be used from plain C
00025 #endif
00026 
00027 #include <baciCharacteristicComponentImpl.h>
00028 #include <baci.h>
00029 #include <baciRWlong.h>
00030 #include <baciROuLongLong.h>
00031 #include <ace/Timer_Heap_T.h>
00032 #include <ace/Timer_Queue_Adapters.h>
00034 #include "acstimeS.h"
00035 #include "ACSTimeError.h"
00036 #include "acstimeTimeUtil.h"
00037 #include "acstimeDevIOTime.h"
00039 
00058 class ClockImpl : public virtual baci::CharacteristicComponentImpl,
00059                   public virtual POA_acstime::Clock
00060 {
00061   public:
00063 
00070     ClockImpl(
00071               const ACE_CString &name,
00072               maci::ContainerServices * containerServices);
00073     
00077     virtual ~ClockImpl();
00079 
00086     virtual acstime::Duration 
00087     getTimeInterval(const acstime::Epoch &prevEpoch);
00088     
00096     virtual ACS::RWlong_ptr 
00097     array2TAI();
00098     
00106     virtual ACS::RWlong_ptr 
00107     TAI2UTC();
00108     
00116     virtual ACS::ROuLongLong_ptr 
00117     now();
00118 
00127     virtual acstime::Epoch 
00128     fromISO8601(acstime::TimeSystem ts,
00129                 const char *iso);
00130     
00139     virtual char* 
00140     toISO8601(acstime::TimeSystem ts,
00141               const acstime::Epoch &timeValue);
00142 
00144   private:
00145     
00149     baci::RWlong *m_array2TAI;
00150     
00154     baci::RWlong *m_TAI2UTC;
00155     
00159     baci::ROuLongLong *m_now;
00160     
00164     DevIOTime *m_now_dev;
00165     
00167     ClockImpl(const ClockImpl&);
00168     
00170     void operator= (const ClockImpl&);
00172 };
00173 #endif
00174 

Generated on Thu Jan 12 2012 23:13:50 for ACS-10.0 C++ API by  doxygen 1.7.0