12 #ifndef CARMA_SDP_MIRIADSDP_H
13 #define CARMA_SDP_MIRIADSDP_H
38 const std::string &
name()
const {
return name_;}
51 bool isOld()
const{
return isOld_;}
64 virtual void hisopen(
const char *status=0)=0;
78 virtual bool hisread(
char *line,
int linelength)=0;
82 virtual void hiswrite(
const char *line)=0;
91 virtual void hopen(
const char *
name,
const char *status,
int &iostat)=0;
103 virtual void haccess(
int &handle,
const char *
name,
const char *status,
108 virtual void hreada(
int handle,
char *buf,
int buflen,
int &iostat)=0;
112 virtual void hdaccess(
int handle,
int &iostat)=0;
116 virtual void hwritea(
int handle,
const char *buf,
int buflen,
120 bool justGather(){
return justGatherPdb_;};
122 void setGather(
const bool gather);
127 { tno_ = tno; name_ =
name; isOld_ =
isOld; isOpen_=
true;}
167 virtual void hisopen(
const char *status);
175 virtual bool hisread(
char *line,
int linelength);
179 virtual void hiswrite(
const char *line);
188 virtual void hopen(
const char *
name,
const char *status,
int &iostat);
200 virtual void haccess(
int &handle,
const char *name,
const char *status,
205 virtual void hreada(
int handle,
char *buf,
int buflen,
int &iostat);
209 virtual void hdaccess(
int handle,
int &iostat);
213 void hwritea(
int handle,
const char *buf,
int buflen,
int &iostat);
virtual bool hisread(char *line, int linelength)=0
Read one line from history file.
virtual void haccess(int &handle, const char *name, const char *status, int &iostat)
Open as a file some part of a data set.
virtual void hisclose()
Close history file.
virtual ~MiriadBin()
Destrcutor.
virtual ~Miriad()
Destructor.
const std::string & name() const
Return name of dataset.
virtual void hreada(int handle, char *buf, int buflen, int &iostat)=0
Read ascii string terminated by a newline.
virtual void hiswrite(const char *line)=0
Write one history line.
virtual void hisclose()=0
Close history file.
void miropen(int tno, const std::string &name, bool isOld)
Sets various variables relating to an open dataset.
int getHandle() const
Return handle for dataset.
void mirclose()
Sets the isOpen_ and hisOpen flags to false and tno_ to -1.
virtual void hdaccess(int handle, int &iostat)=0
Close file.
virtual void haccess(int &handle, const char *name, const char *status, int &iostat)=0
Open a file as some part of a data set.
virtual void hisopen(const char *status=0)=0
Opens history file.
virtual void hiswrite(const char *line)
Write one line to history file.
virtual void hisopen(const char *status)
Opens history file.
virtual void hwritea(int handle, const char *buf, int buflen, int &iostat)=0
Write ASCII text.
virtual void hopen(const char *name, const char *status, int &iostat)
Open a MIRIAD dataset.
bool isOpen() const
Is dataset open?
virtual void hreada(int handle, char *buf, int buflen, int &iostat)
Read ascii string terminated by a newline.
virtual bool hisread(char *line, int linelength)
Read one line from history file.
bool isOld() const
Is this an 'old' dataset?
const std::string & getFileName() const
Return name of dataset.
virtual void hclose()=0
Close a MIRIAD dataset.
virtual void hclose()
Close a MIRIAD dataset.
void hwritea(int handle, const char *buf, int buflen, int &iostat)
Write ASCII text to file.
bool isHistoryOpen() const
Is history files open?
virtual void hopen(const char *name, const char *status, int &iostat)=0
Open a MIRIAD dataset.
Abstract Base clase for item- and file-level MIRIAD operations.
Class for item- and file-level access to MIRIAD data.
virtual void hdaccess(int handle, int &iostat)
Close file.
void setHistoryIsOpen(bool isopen)
Sets the flag indicating the history file status.