Changeset 838


Ignore:
Timestamp:
02/23/06 11:17: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/SDContainer.cc

    r832 r838  
    4545using namespace casa;
    4646using namespace asap;
     47
     48
     49
     50bool SDHeader::conformant( const SDHeader& other )
     51{
     52  bool conforms;
     53  conforms = (this->antennaname == other.antennaname
     54              && this->equinox == other.equinox
     55              && this->obstype == other.obstype
     56              && this->fluxunit == other.fluxunit
     57              );
     58  return conforms;
     59}
    4760
    4861void SDHeader::print() const {
  • trunk/src/SDContainer.h

    r832 r838  
    4646
    4747struct SDHeader {
     48
     49  bool conformant(const SDHeader& other);
     50
    4851  casa::Int nchan;
    4952  casa::Int npol;
Note: See TracChangeset for help on using the changeset viewer.