Changeset 840


Ignore:
Timestamp:
02/23/06 11:20:38 (18 years ago)
Author:
mar637
Message:

added conformant() which checks if to objects are conformant

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STFrequencies.cpp

    r830 r840  
    222222}
    223223
     224bool asap::STFrequencies::conformant( const STFrequencies& other ) const
     225{
     226  const Record& r = table_.keywordSet();
     227  const Record& ro = other.table_.keywordSet();
     228  return ( r.asString("REFFRAME") == ro.asString("REFFRAME") &&
     229           r.asString("EQUINOX") == ro.asString("EQUINOX") &&
     230           r.asString("UNIT") == ro.asString("UNIT") &&
     231           r.asString("DOPPLER") == ro.asString("DOPPLER")
     232          );
     233}
     234
    224235} // namespace
  • trunk/src/STFrequencies.h

    r836 r840  
    5454                 casa::Double& inc, casa::uInt id );
    5555
     56
     57  bool conformant(const STFrequencies& other) const;
    5658
    5759  /**
Note: See TracChangeset for help on using the changeset viewer.