#include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include "ObitFile.h"
Functions | |
| void | ObitFileInit (gpointer in) |
| Private: Initialize newly instantiated object. | |
| void | ObitFileClear (gpointer in) |
| Private: Deallocate members. | |
| ObitFile * | newObitFile (gchar *name) |
| Public: Constructor. | |
| gconstpointer | ObitFileGetClass (void) |
| Public: ClassInfo pointer. | |
| ObitFile * | ObitFileZap (ObitFile *in, ObitErr *err) |
| Public: destroy. | |
| void | ObitFileRename (gchar *oldName, gchar *newName, ObitErr *err) |
| Public: rename. | |
| ObitFile * | ObitFileCopy (ObitFile *in, ObitFile *out, ObitErr *err) |
| Public: Copy constructor. | |
| gboolean | ObitFileExist (gchar *fileName, ObitErr *err) |
| Public: Does a given file exist? | |
| ObitFilePos | ObitFileSize (gchar *fileName, ObitErr *err) |
| Public: What is the current size of a file. | |
| gchar * | ObitFileName (gchar *fileName) |
| Public: What is the name (without path) if a file. | |
| ObitIOCode | ObitFileOpen (ObitFile *in, gchar *fileName, ObitIOAccess access, ObitIOType type, glong blockSize, ObitErr *err) |
| Public: Open. | |
| ObitIOCode | ObitFileClose (ObitFile *in, ObitErr *err) |
| Public: Close. | |
| ObitIOCode | ObitFileSetPos (ObitFile *in, ObitFilePos filePos, ObitErr *err) |
| Public: Position file. | |
| ObitIOCode | ObitFileEnd (ObitFile *in, ObitErr *err) |
| Public: Position at end of file. | |
| ObitIOCode | ObitFileRead (ObitFile *in, ObitFilePos filePos, glong size, gchar *buffer, ObitErr *err) |
| Public: Read. | |
| ObitIOCode | ObitFileReadLine (ObitFile *in, gchar *line, gint lineMax, ObitErr *err) |
| Public: Read next line of text file. | |
| ObitIOCode | ObitFileWrite (ObitFile *in, ObitFilePos filePos, glong size, gchar *buffer, ObitErr *err) |
| Public: Write. | |
| ObitIOCode | ObitFileWriteLine (ObitFile *in, gchar *line, ObitErr *err) |
| Public: Write next line to text file. | |
| ObitIOCode | ObitFilePad (ObitFile *in, glong padTo, gchar *buffer, glong bsize, ObitErr *err) |
| Public: Pad remainder of a block. | |
| ObitIOCode | ObitFilePadFile (ObitFile *in, glong blksize, ObitErr *err) |
| Public: Pad end of file to an integral of a given size. | |
| ObitIOCode | ObitFileFlush (ObitFile *in, ObitErr *err) |
| Public: Flush Buffer. | |
| gboolean | ObitFileErrMsg (ObitErr *err) |
| Public: Utility, Error message for errno. | |
| void | ObitFileClassInit (void) |
| Public: Class initializer. | |
This Class allows access to the underlying file system.
|
|
Public: Constructor. Initializes class if needed on first call.
|
|
|
Public: Class initializer.
|
|
|
Private: Deallocate members. Does (recursive) deallocation of parent class members.
|
|
||||||||||||
|
Public: Close.
|
|
||||||||||||||||
|
Public: Copy constructor. The result will have pointers to the more complex members. Parent class members are included but any derived class info is ignored. The contents of any files are not modified.
|
|
||||||||||||
|
Public: Position at end of file.
|
|
|
Public: Utility, Error message for errno. errno is reset to 0.
|
|
||||||||||||
|
Public: Does a given file exist?
|
|
||||||||||||
|
Public: Flush Buffer. Note: this is done automatically on Close.
|
|
|
Public: ClassInfo pointer. Initializes class if needed on first call.
|
|
|
Private: Initialize newly instantiated object. Does (recursive) initialization of base class members before this class.
|
|
|
Public: What is the name (without path) if a file.
|
|
||||||||||||||||||||||||||||
|
Public: Open. The file will be positioned at the beginning.
|
|
||||||||||||||||||||||||
|
Public: Pad remainder of a block. This is mostly useful for AIPS files for which ancient concepts of file blocking are enforced.
|
|
||||||||||||||||
|
Public: Pad end of file to an integral of a given size. Any unwritten bytes are zero filled. This is mostly useful for AIPS files for which ancient concepts of file blocking are enforced.
|
|
||||||||||||||||||||||||
|
Public: Read.
|
|
||||||||||||||||||||
|
Public: Read next line of text file.
|
|
||||||||||||||||
|
Public: rename.
|
|
||||||||||||||||
|
Public: Position file.
|
|
||||||||||||
|
Public: What is the current size of a file.
|
|
||||||||||||||||||||||||
|
Public: Write.
|
|
||||||||||||||||
|
Public: Write next line to text file.
|
|
||||||||||||
|
Public: destroy.
|
1.3.9.1