MergeTable Class Reference

Class to encapsulate the records that make up a "merge table". More...

#include <MergeTable.h>

Collaboration diagram for MergeTable:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MergeTable (int aNumPb, const std::string &aFileName)
 Constructs a merge table from the contents of a given binary file.
 ~MergeTable ()
 Destructor deletes merge table.
int getNumPassbands () const
 Return the number of entries (ie passbands) per merge record.
int getNumRecords () const
 Return the total number of merged records.
int getEntry (int aRecNo, int aPbNo) const

Private Member Functions

void read (const std::string &aFileName)
 Read the merge table from the given binary file.

Private Attributes

int * mPbDetectionAry
 Put merge table in this array of ints.
int mNumPb
 Number of entries (passbands) per merge record.
int mNumRecords
 Number of merge records.

Detailed Description

Class to encapsulate the records that make up a "merge table".

Each record of a merge table gives the records for input passband data which all correspond to the same object as determined from the pairing procedure.


Constructor & Destructor Documentation

MergeTable::MergeTable ( int  aNumPb,
const std::string &  aFileName 
)

Constructs a merge table from the contents of a given binary file.

Parameters:
aNumPb Number of passbands
aFileName Name of binary file containing merge table records

References read().

MergeTable::~MergeTable (  )  [inline]

Destructor deletes merge table.

References mPbDetectionAry.


Member Function Documentation

int MergeTable::getEntry ( int  aRecNo,
int  aPbNo 
) const [inline]

Return the input passband record number for the given merged record number and passband number

References mNumPb, and mPbDetectionAry.

Referenced by SourceTable::copyPassband(), and SourceTable::insertAstrometricData().

int MergeTable::getNumPassbands (  )  const [inline]

Return the number of entries (ie passbands) per merge record.

References mNumPb.

int MergeTable::getNumRecords (  )  const [inline]

Return the total number of merged records.

References mNumRecords.

void MergeTable::read ( const std::string &  aFileName  )  [private]

Read the merge table from the given binary file.

References Logger::addMessage(), mNumPb, mNumRecords, mPbDetectionAry, and StringOps::NumToString().

Referenced by MergeTable().


Member Data Documentation

int MergeTable::mNumPb [private]

Number of entries (passbands) per merge record.

Referenced by getEntry(), getNumPassbands(), and read().

int MergeTable::mNumRecords [private]

Number of merge records.

Referenced by getNumRecords(), and read().

Put merge table in this array of ints.

Referenced by getEntry(), read(), and ~MergeTable().


The documentation for this class was generated from the following files:
Generated on Mon Oct 4 10:39:34 2010 for WfcamSrc by  doxygen 1.6.3