Main Page | Class List | Directories | File List | Class Members | File Members

ObitAIPSDir.h

Go to the documentation of this file.
00001 /* $Id: ObitAIPSDir.h,v 1.6 2006/02/22 22:37:24 bcotton Exp $                            */
00002 /*--------------------------------------------------------------------*/
00003 /*;  Copyright (C) 2003                                               */
00004 /*;  Associated Universities, Inc. Washington DC, USA.                */
00005 /*;  This program is free software; you can redistribute it and/or    */
00006 /*;  modify it under the terms of the GNU General Public License as   */
00007 /*;  published by the Free Software Foundation; either version 2 of   */
00008 /*;  the License, or (at your option) any later version.              */
00009 /*;                                                                   */
00010 /*;  This program is distributed in the hope that it will be useful,  */
00011 /*;  but WITHOUT ANY WARRANTY; without even the implied warranty of   */
00012 /*;  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    */
00013 /*;  GNU General Public License for more details.                     */
00014 /*;                                                                   */
00015 /*;  You should have received a copy of the GNU General Public        */
00016 /*;  License along with this program; if not, write to the Free       */
00017 /*;  Software Foundation, Inc., 675 Massachusetts Ave, Cambridge,     */
00018 /*;  MA 02139, USA.                                                   */
00019 /*;                                                                   */
00020 /*;  Correspondence this software should be addressed as follows:     */
00021 /*;         Internet email: bcotton@nrao.edu.                         */
00022 /*;         Postal address: William Cotton                            */
00023 /*;                         National Radio Astronomy Observatory      */
00024 /*;                         520 Edgemont Road                         */
00025 /*;                         Charlottesville, VA 22903-2475 USA        */
00026 /*--------------------------------------------------------------------*/
00027 #ifndef OBITAIPSDIR_H 
00028 #define OBITAIPSDIR_H 
00029 #include <glib.h>
00030 #include "ObitErr.h"
00031 #include "ObitThread.h"
00032 #include "ObitAIPS.h"
00033 
00042 /*------------------ Structures -----------------------------*/
00047 typedef struct {
00049   gint user;
00056   gint32 status;
00062   guint32 access[2];
00064   gint32 seq;
00066   gchar name[12];
00068   gchar class[6];
00070   gchar type[2];
00071 } ObitAIPSDirCatEntry;
00072 
00073 /*----------------- enums ---------------------------*/
00075 enum _ObitAIPSDirStatusCode {
00077   OBIT_AIPS_Dir_AddWrite,
00079   OBIT_AIPS_Dir_ClearWrite,
00081   OBIT_AIPS_Dir_IncRead,
00083   OBIT_AIPS_Dir_DecRead,
00085   OBIT_AIPS_Dir_ClearAll
00086 };/* end enum _ObitAIPSDirStatusCode */
00088 typedef enum _ObitAIPSDirStatusCode ObitAIPSDirStatusCode;
00089 
00091 enum _ObitAIPSDirStatusError {
00093   OBIT_AIPS_Dir_StatusOK,
00095   OBIT_AIPS_Dir_StatusSpecErr,
00097   OBIT_AIPS_Dir_StatusIOErr,
00099   OBIT_AIPS_Dir_StatusRead,
00101   OBIT_AIPS_Dir_StatusWrite
00102 };/* end enum _ObitAIPSDirStatusError */
00104 typedef enum _ObitAIPSDirStatusError ObitAIPSDirStatusError;
00105 
00106 /*---------------Public functions---------------------------*/
00108 gint ObitAIPSDirFindCNO(gint disk, gint user, 
00109                      gchar Aname[13], gchar Aclass[7], gchar Atype[3], 
00110                      gint seq, ObitErr *err);
00111 
00113 gint ObitAIPSDirAlloc(gint disk, gint user, 
00114                      gchar Aname[13], gchar Aclass[7], gchar Atype[3], 
00115                      gint seq, gboolean *exist, ObitErr *err);
00116 
00118 void ObitAIPSDirRemoveEntry(gint disk, gint user, gint cno, ObitErr *err);
00119 
00121 gint ObitAIPSDirNumber(gint disk, gint user, ObitErr *err);
00122 
00124 gint ObitAIPSDirHiSeq(gint disk, gint user, gchar Aname[13], 
00125                       gchar Aclass[7], gchar Atype[3], 
00126                       gboolean exist, ObitErr *err);
00127 
00129 void ObitAIPSDirRename(gint disk, gint user,  gint cno, gchar *newName, 
00130                       gchar *newClass, gint newSeq, ObitErr *err);
00131 
00133 ObitAIPSDirCatEntry* 
00134 ObitAIPSDirGetEntry(gint disk, gint user, gint cno, ObitErr *err);
00135 
00137 void ObitAIPSDirGetAccess(ObitAIPSDirCatEntry* entry, gchar *timeDate);
00138 
00140 ObitAIPSDirStatusError
00141 ObitAIPSDirStatus(gint disk, gint user, gint cno, 
00142                   ObitAIPSDirStatusCode code, ObitErr *err);
00143 
00144 #endif /* OBITAIPSDIR_H */ 
00145 

Generated on Fri Aug 31 22:13:04 2007 for Obit by  doxygen 1.3.9.1