casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
nreal.h
Go to the documentation of this file.
00001 //# nreal.h: this defines nreal time structures used by the VLA table filler
00002 //# Copyright (C) 1999
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 //#
00027 //# $Id: nreal.h,v 19.3.18.3 2006/02/17 23:46:40 wyoung Exp $
00028 //#! ========================================================================
00029 
00030 #ifndef NRAO_NREAL_H
00031 #define NRAO_NREAL_H
00032 //
00033 //# Forward Declarations
00034 //
00035 // <summary>
00036 // Defines nreal time structures used by the VLA table filler
00037 // </summary>
00038 //
00039 // <use visibility=local>   or   <use visibility=export>
00040 //
00041 // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
00042 // </reviewed>
00043 //
00044 // <prerequisite>
00045 //   <li> SomeClass
00046 //   <li> SomeOtherClass
00047 //   <li> some concept
00048 // </prerequisite>
00049 //
00050 // <etymology>
00051 // </etymology>
00052 //
00053 // <synopsis>
00054 // </synopsis>
00055 //
00056 // <example>
00057 // </example>
00058 //
00059 // <motivation>
00060 // </motivation>
00061 //
00062 // <templating arg=T>
00063 //    <li>
00064 //    <li>
00065 // </templating>
00066 //
00067 // <thrown>
00068 //    <li>
00069 //    <li>
00070 // </thrown>
00071 //
00072 // <todo asof="yyyy/mm/dd">
00073 //   <li> add this feature
00074 //   <li> fix this bug
00075 //   <li> start discussion of this possible extension
00076 // </todo>
00077 //
00078 //class ClassName
00079 //{
00080 //public:
00081 //
00082 //protected:
00083 //
00084 //private:
00085 //
00086 //};
00087 //
00088 //
00089 // Global Functions
00090 //
00091 // <linkfrom anchor=unique-string-within-this-file
00092 //classes="class-1,...,class-n">
00093 //     <here> Global functions </here> for foo and bar.
00094 // </linkfrom>
00095 //
00096 // comments for this group of related global functions
00097 // go here...
00098 //
00099 // <group name=unique-string-within-this-file>  
00100 // </group>
00101 //
00102 // comments about the following group
00103 // <group name=another-unique-string-within-this-file>
00104 // </group>
00105 
00106 
00107 /* Simple union to help make an internet addr printable in the
00108 123.456.789.123 format.  Likely unnecessary but I'm learning */
00109 
00110 #include <stdio.h>
00111 
00112 #define BUF_SIZE   2048
00113 #define ONLINE_RECORD_SIZE_MAX 26624
00114 #define PHYS_RECORD_SIZE 26624
00115 #define MAX_LOGICAL_RECORD_SIZE 850000
00116 /* #define MAX_TIME 60 */
00117 
00118 struct TapeHeader{
00119    short current;
00120    short total;
00121 };
00122 
00123 void attachFile(const char *);
00124 void detachFile();
00125 int olopen_(int *, char *, int);
00126 int oladvf_(int *, int *);
00127 int readVLALogRec(char *);
00128 
00129 #endif