29 #ifndef BIMA_MIRVISREADER_H
30 #define BIMA_MIRVISREADER_H
204 if (
atEnd())
return false;
casacore::Double starttime_p
t & getRight()
Returns the element to the right of the cursor.
casacore::Bool previewed()
return true if this dataset has been previewed
casacore::Bool verbose()
return the basic characteristics of the input dataset as a Record.
casacore::Int pol()
return the polarization code
void clearMarks()
set the marked data item for each MirDataRecord to false
casacore::Int uv_handle_p
casacore::Int uv_handle_p
casacore::String inname_p
info that doesn't change during life of filler
MirVarHandler * varhandler_p
casacore::Float * wide()
return the address of the wide channel data buffer
void reset(MirVarHandler *filler=NULL, casacore::Bool verbose=false, casacore::Bool dowide=true, casacore::Int maxrec=0)
rewind the input dataset and prepare for a new reading.
wideConventions wideconv_p
an editable container for a set of Miriad polarization correlation types
casacore::Double * preamble()
return the address of the preamble buffer
void checkIsMiriadDataset(const casacore::String &name)
check to be sure that the given name points to a readable miriad dataset.
casacore::Double getTime()
return the (AIPS++-referenced) timestamp for the current buffered records.
casacore::List< MirSource * > sources_p
ABSTRACT TOOL CLASSES A PlotTool is a higher level event handler for a PlotCanvas The idea is to take common tasks which may require multiple events and put them in one place PlotTools also provide additional functionality in that they can be active and blocking non blocking The PlotCanvas will only send events to active and will not send events to later tools or event handlers if the latest tool was blocking In this way a single tool can be used to handle ALL user interaction via the GUI at one time
void fullscan(casacore::Int scanlim, casacore::Int obslim)
full and brief scanning of the data–should only be called from preview()
void setPol(casacore::Int val)
set the polarization code
ostream-like interface to creating log messages.
void hisread_c(int tno, char *text, size_t length, int *eof)
casacore::Bool previewed_p
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the if a human readable name(i.e."black").In many places throughout the plotter
void hisopen_c(int tno, Const char *status)
casacore::Int firstmode_p
MirVisReader(const casacore::String &mirfile, casacore::Bool doscan=true, casacore::Int dbg=0, casacore::Bool dopreview=true)
construct a reader.
casacore::Bool readLine(casacore::String &line)
read the next available line into a String.
casacore::uInt getPreambleCount()
return the number of preamble elements
casacore::Int getDebugLevel() const
set the debugging level which controls the amount of debugging messages that are printed to the termi...
a container for a data record read in from a Miriad datatset
a base for classes that rely on assumptions regarding privitive type sizes.
casacore::List< casacore::String > telescopes_p
casacore::Bool atEnd()
return true this reader there is no more history to read
casacore::uInt getWideCount()
return the number of wide band channels
casacore::uInt getNarrowCount()
return the number of narrow band channels
casacore::Double * preamble_p
casacore::Int getNumRecs()
return the number of records buffered for the current integration
void preview(casacore::Bool scan=true)
peek into the contents of the dataset to cache important information.
void setDebugLevel(casacore::Int level)
set the debugging level which controls the amount of debugging messages that are printed to the termi...
void preview(casacore::Int scanlim, casacore::Int obslim, casacore::Bool scan=true)
peek into the contents of the dataset to cache important information.
MirHisReader * openHistory()
create and return a new pointer to a history reader.
casacore::Float * narrow_p
casacore::Char hline[256]
~MirHisReader()
delete the reader
a Miriad visibility dataset reader
casacore::Int * flags()
return the address of the flags channel data buffer
bool Bool
Define the standard types used by Casacore.
casacore::Double endtime_p
casacore::List< MirFreqSetup * > fsetups_p
variable information worth caching
casacore::Float * narrow()
return the address of the narrow channel data buffer
void handleVarChanges(::FillMetadata &fm, casacore::Double time)
update the given FillMetadata container with updated variable values.
MirHisReader(casacore::Int mirhandle)
create a History reader from a Miriad file handle
void addRight(t e)
This function adds the element to the right of the current cursor position.
void copyFrom(const MirDataRecord &other)
~MirVisReader()
destroy the reader
const casacore::List< MirSource * > & getSourceList()
return the list of sources
const casacore::String & getName()
return the Miriad dataset name
Base class for all Casacore library errors.
ConstMirPolSetup & getDefaultPolSetup()
return the basic characteristics of the input dataset as a Record.
Doubly linked non-constant list iterator The List class above only provides for the list framework...
a static container for a set of Miriad polarization correlation types
String: the storage and methods of handling collections of characters.
void setTelescope(casacore::String name)
add to a cached list of telescopes
void setMarked(casacore::Bool val)
set the mark
MirDataRecord(casacore::Int nnarrow=0, casacore::Int nwide=0, casacore::Int npreamble=5)
casacore::Bool Debug(casacore::Int level)
return true if the debugging level is at least as high as a given level.
casacore::Block< MirDataRecord * > buf_p
read state
void toStart()
This function moves the cursor to the beginning of the list.
casacore::Int readIntegration(::FillMetadata &fm)
read in the data for a single timestamp.
casacore::Bool isMarked()
return true if this record is marked
void resizeBufferFor(casacore::Int nrec=0, casacore::Int nnarrow=0, casacore::Int nwide=0)
resize the data buffer for a new read.
casacore::Int * wflags()
return the address of the wflags channel data buffer
MirDataRecord * getRecord(casacore::Int i)
return the correlation data for the i-th buffered record.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.