casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
VLAOnlineInput Class Reference

This class reads VLA archive records from the online computers. More...

#include <VLAOnlineInput.h>

Inheritance diagram for VLAOnlineInput:
VLAArchiveInput

Public Member Functions

 VLAOnlineInput (casacore::String &online, casacore::Int afiles=0)
 Create an object that reads its data from the vis-server disk An exception is thrown if a connection cannot be made. More...
 
virtual ~VLAOnlineInput ()
 The destructor closes the file. More...
 
virtual casacore::Bool read ()
 Reads the next logical record from specified IO source. More...
 
- Public Member Functions inherited from VLAArchiveInput
virtual ~VLAArchiveInput ()
 The destructor is virtual to ensure that the destructor in a derived class is actually used. More...
 
casacore::ByteSourcelogicalRecord ()
 This returns a reconstructed VLA logical record from the input stream. More...
 
const casacore::ByteSourcelogicalRecord () const
 
casacore::Bool hasData () const
 Returns if true if the current record contains data. More...
 

Private Member Functions

 VLAOnlineInput (const VLAOnlineInput &other)
 
VLAOnlineInputoperator= (const VLAOnlineInput &other)
 
casacore::String getTodaysFile (int relDay=0)
 
casacore::Int whatsToday ()
 

Private Attributes

casacore::Bool onlineFill
 
casacore::String visDir
 
casacore::Int oldDay
 
casacore::Int previousDay
 

Additional Inherited Members

- Protected Member Functions inherited from VLAArchiveInput
 VLAArchiveInput ()
 
- Protected Attributes inherited from VLAArchiveInput
casacore::MemoryIO itsMemIO
 
casacore::ByteSinkSource itsRecord
 
- Static Protected Attributes inherited from VLAArchiveInput
static const casacore::uInt BlockSize
 
static const casacore::uInt HeaderSize
 
static const casacore::uInt MaxBlocksPerPhysicalRecord
 

Detailed Description

This class reads VLA archive records from the online computers.

Prerequisite

  1. The IO Module

Etymology

This class is designed to reads VLA archive records from a Disk file

Synopsis

Example

Motivation

Definition at line 73 of file VLAOnlineInput.h.

Constructor & Destructor Documentation

VLAOnlineInput::VLAOnlineInput ( casacore::String online,
casacore::Int  afiles = 0 
)

Create an object that reads its data from the vis-server disk An exception is thrown if a connection cannot be made.

virtual VLAOnlineInput::~VLAOnlineInput ( )
virtual

The destructor closes the file.

VLAOnlineInput::VLAOnlineInput ( const VLAOnlineInput other)
private

Member Function Documentation

casacore::String VLAOnlineInput::getTodaysFile ( int  relDay = 0)
private
VLAOnlineInput& VLAOnlineInput::operator= ( const VLAOnlineInput other)
private
virtual casacore::Bool VLAOnlineInput::read ( )
virtual

Reads the next logical record from specified IO source.

Returns false if there was a problem assembling the next record ie., it returns the value of the hasData() member function.

Implements VLAArchiveInput.

casacore::Int VLAOnlineInput::whatsToday ( )
private

Member Data Documentation

casacore::Int VLAOnlineInput::oldDay
private

Definition at line 98 of file VLAOnlineInput.h.

casacore::Bool VLAOnlineInput::onlineFill
private

Definition at line 96 of file VLAOnlineInput.h.

casacore::Int VLAOnlineInput::previousDay
private

Definition at line 99 of file VLAOnlineInput.h.

casacore::String VLAOnlineInput::visDir
private

Definition at line 97 of file VLAOnlineInput.h.


The documentation for this class was generated from the following file: