Ignore:
Timestamp:
02/09/05 13:00:12 (19 years ago)
Author:
kil064
Message:

add a secondary index argument to the SDDataDesc container

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDContainer.h

    r392 r396  
    210210  ~SDDataDesc() {;}
    211211
    212 // Add an entry if source name (not direction at this point) and freqID are unique
    213   casa::uInt addEntry (const casa::String& source, casa::uInt freqID,
    214                        const casa::MDirection& dir);
     212// Add an entry if source name and Integer ID (can be anything you like, such
     213// as FreqID) are unique.  You can add secondary entries direction
     214// and another integer index which are just stored along with the
     215// the primary entries
     216  casa::uInt addEntry (const casa::String& source, casa::uInt ID,
     217                       const casa::MDirection& secDir, casa::uInt secID);
    215218
    216219// Number of entries
     
    219222// Get attributes
    220223  casa::String source (casa::uInt which) const {return source_[which];}
    221   casa::uInt freqID(casa::uInt which) const {return freqID_[which];}
    222   casa::MDirection direction (casa::uInt which) const {return dir_[which];}
     224  casa::uInt ID(casa::uInt which) const {return ID_[which];}
     225  casa::uInt secID(casa::uInt which) const {return secID_[which];}
     226  casa::MDirection secDir (casa::uInt which) const {return secDir_[which];}
    223227
    224228// Summary
     
    228232  casa::uInt n_;
    229233  casa::Vector<casa::String> source_;
    230   casa::Vector<casa::uInt> freqID_;
    231   casa::Block<casa::MDirection> dir_;
     234  casa::Vector<casa::uInt> ID_, secID_;
     235  casa::Block<casa::MDirection> secDir_;
    232236//
    233237  SDDataDesc(const SDDataDesc& other);
Note: See TracChangeset for help on using the changeset viewer.