casa
$Rev:20696$
|
00001 //# VLAOnlineInput.h: This class reads VLA data from the online computers 00002 //# Copyright (C) 2001 00003 //# Associated Universities, Inc. Washington DC, USA. 00004 //# 00005 //# This library is free software; you can redistribute it and/or modify it 00006 //# under the terms of the GNU Library General Public License as published by 00007 //# the Free Software Foundation; either version 2 of the License, or (at your 00008 //# option) any later version. 00009 //# 00010 //# This library is distributed in the hope that it will be useful, but WITHOUT 00011 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00012 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public 00013 //# License for more details. 00014 //# 00015 //# You should have received a copy of the GNU Library General Public License 00016 //# along with this library; if not, write to the Free Software Foundation, 00017 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA. 00018 //# 00019 //# Correspondence concerning AIPS++ should be addressed as follows: 00020 //# Internet email: aips2-request@nrao.edu. 00021 //# Postal address: AIPS++ Project Office 00022 //# National Radio Astronomy Observatory 00023 //# 520 Edgemont Road 00024 //# Charlottesville, VA 22903-2475 USA 00025 //# 00026 //# $Id: VLAOnlineInput.h,v 19.3.14.2 2006/02/17 23:46:40 wyoung Exp $ 00027 00028 #ifndef NRAO_VLAONLINEINPUT_H 00029 #define NRAO_VLAONLINEINPUT_H 00030 00031 #include <casa/aips.h> 00032 #include <casa/IO/StreamIO.h> 00033 #include <casa/BasicSL/String.h> 00034 #include <nrao/VLA/VLAArchiveInput.h> 00035 00036 #include <casa/namespace.h> 00037 namespace casa { //# NAMESPACE CASA - BEGIN 00038 class Path; 00039 } //# NAMESPACE CASA - END 00040 00041 00042 // <summary>This class reads VLA archive records from the online computers</summary> 00043 00044 // <reviewed reviewer="" date="" tests="" demos=""> 00045 00046 // <prerequisite> 00047 // <ol> 00048 // <li> The IO Module 00049 // </ol> 00050 // </prerequisite> 00051 // 00052 // <etymology> 00053 // This class is designed to reads VLA archive records from a Disk file 00054 // </etymology> 00055 // 00056 // <synopsis> 00057 00058 // </synopsis> 00059 // 00060 // <example> 00061 // </example> 00062 // 00063 // <motivation> 00064 // </motivation> 00065 // 00066 // <todo asof=""> 00067 // </todo> 00068 00069 class VLAOnlineInput: public VLAArchiveInput 00070 { 00071 public: 00072 00073 // Create an object that reads its data from the vis-server disk 00074 // An exception is thrown if a connection cannot be made. 00075 VLAOnlineInput(String &online, Int afiles=0); 00076 00077 // The destructor closes the file. 00078 virtual ~VLAOnlineInput(); 00079 00080 // Reads the next logical record from specified IO source. Returns False if 00081 // there was a problem assembling the next record ie., it returns the value 00082 // of the hasData() member function. 00083 virtual Bool read(); 00084 00085 private: 00086 //# The copy constructor is private and undefined 00087 VLAOnlineInput(const VLAOnlineInput& other); 00088 00089 //# The assignment operator is private and undefined 00090 VLAOnlineInput& operator=(const VLAOnlineInput& other); 00091 00092 Bool onlineFill; 00093 String visDir; 00094 Int oldDay; 00095 Int previousDay; 00096 00097 String getTodaysFile(int relDay=0); 00098 Int whatsToday(); 00099 00100 }; 00101 00102 #endif