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

baciDevIO.h

Go to the documentation of this file.
00001 #ifndef _BACI_DEVIO_H_
00002 #define _BACI_DEVIO_H_
00003 /*******************************************************************************
00004 * ALMA - Atacama Large Millimiter Array
00005 * (c) European Southern Observatory, 2003 
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: baciDevIO.h,v 1.102 2008/10/09 06:18:16 cparedes Exp $"
00022 *
00023 * who       when      what
00024 * --------  --------  ----------------------------------------------
00025 * bjeram 2003-06-02 renamed to DevIO
00026 * bjeram 2002-03-20 changed methods to virtual (before they were pure virtual)
00027 * bjeram  25/02/02  created
00028 */
00029 
00030 /************************************************************************
00031  *
00032  *----------------------------------------------------------------------
00033  */
00034 
00040 #ifndef __cplusplus
00041 #error This is a C++ include file and cannot be used from plain C
00042 #endif
00043 
00044 
00045 #include <ACSErrTypeCommon.h>
00046 #include "baciErrTypeDevIO.h"  // we have to include this that exceptions can be thrown in backward compatiblity support code
00047 // it can be removed when we remove "old" write and read
00048 
00059 template <class T> class DevIO
00060 {
00061 public:
00066     bool m_initialize;
00067  
00068 
00072     DevIO() {
00073         m_initialize=false;
00074         }
00078     virtual ~DevIO(){}
00079   
00088     virtual bool initializeValue(){
00089         return m_initialize;
00090     }
00091 
00101     virtual T read(ACS::Time& timestamp) 
00102         {
00103             throw ACSErrTypeCommon::NotImplementedExImpl(__FILE__, __LINE__,
00104                                                          "baci::DevIO<>::read");
00105         }//read
00106     
00116     virtual void write(const T& value, ACS::Time& timestamp)
00117         {
00118             throw ACSErrTypeCommon::NotImplementedExImpl(__FILE__, __LINE__,
00119                                                          "baci::DevIO<>::write");                
00120         }//write
00121 
00122 };//DevIO<>
00123 
00124 #endif 
00125 

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