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

added conformant() which checks if to objects are conformant

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.