casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
VLAOnlineInput.h
Go to the documentation of this file.
1 //# VLAOnlineInput.h: This class reads VLA data from the online computers
2 //# Copyright (C) 2001
3 //# Associated Universities, Inc. Washington DC, USA.
4 //#
5 //# This library is free software; you can redistribute it and/or modify it
6 //# under the terms of the GNU Library General Public License as published by
7 //# the Free Software Foundation; either version 2 of the License, or (at your
8 //# option) any later version.
9 //#
10 //# This library is distributed in the hope that it will be useful, but WITHOUT
11 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 //# License for more details.
14 //#
15 //# You should have received a copy of the GNU Library General Public License
16 //# along with this library; if not, write to the Free Software Foundation,
17 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18 //#
19 //# Correspondence concerning AIPS++ should be addressed as follows:
20 //# Internet email: aips2-request@nrao.edu.
21 //# Postal address: AIPS++ Project Office
22 //# National Radio Astronomy Observatory
23 //# 520 Edgemont Road
24 //# Charlottesville, VA 22903-2475 USA
25 //#
26 //# $Id: VLAOnlineInput.h,v 19.3.14.2 2006/02/17 23:46:40 wyoung Exp $
27 
28 #ifndef NRAO_VLAONLINEINPUT_H
29 #define NRAO_VLAONLINEINPUT_H
30 
31 #include <casa/aips.h>
32 #include <casa/IO/StreamIO.h>
33 #include <casa/BasicSL/String.h>
35 
36 #include <casa/namespace.h>
37 namespace casacore{
38 
39 class Path;
40 }
41 
42 namespace casa { //# NAMESPACE CASA - BEGIN
43 } //# NAMESPACE CASA - END
44 
45 
46 // <summary>This class reads VLA archive records from the online computers</summary>
47 
48 // <reviewed reviewer="" date="" tests="" demos="">
49 
50 // <prerequisite>
51 // <ol>
52 // <li> The IO Module
53 // </ol>
54 // </prerequisite>
55 //
56 // <etymology>
57 // This class is designed to reads VLA archive records from a Disk file
58 // </etymology>
59 //
60 // <synopsis>
61 
62 // </synopsis>
63 //
64 // <example>
65 // </example>
66 //
67 // <motivation>
68 // </motivation>
69 //
70 // <todo asof="">
71 // </todo>
72 
74 {
75 public:
76 
77  // Create an object that reads its data from the vis-server disk
78  // An exception is thrown if a connection cannot be made.
80 
81  // The destructor closes the file.
82  virtual ~VLAOnlineInput();
83 
84  // Reads the next logical record from specified IO source. Returns false if
85  // there was a problem assembling the next record ie., it returns the value
86  // of the hasData() member function.
87  virtual casacore::Bool read();
88 
89 private:
90  //# The copy constructor is private and undefined
91  VLAOnlineInput(const VLAOnlineInput& other);
92 
93  //# The assignment operator is private and undefined
95 
100 
101  casacore::String getTodaysFile(int relDay=0);
103 
104 };
105 
106 #endif
This class reads VLA archive records from a Tape.
int Int
Definition: aipstype.h:50
casacore::Int previousDay
This class reads VLA archive records from the online computers.
virtual casacore::Bool read()
Reads the next logical record from specified IO source.
VLAOnlineInput(casacore::String &online, casacore::Int afiles=0)
Create an object that reads its data from the vis-server disk An exception is thrown if a connection ...
Path name of a file.
Definition: Path.h:126
casacore::String visDir
casacore::Int oldDay
VLAOnlineInput & operator=(const VLAOnlineInput &other)
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
virtual ~VLAOnlineInput()
The destructor closes the file.
casacore::Int whatsToday()
String: the storage and methods of handling collections of characters.
Definition: String.h:223
casacore::Bool onlineFill
casacore::String getTodaysFile(int relDay=0)
#define casacore
&lt;X11/Intrinsic.h&gt; #defines true, false, casacore::Bool, and String.
Definition: X11Intrinsic.h:42