// SolarTracking.cpp // Brian Magill // 12/23/2005 // // Methods for the SolarTracking Class. This class contains the // data for tracking the solar image. // //---------------------------------------------------------------------- // #include #include "SolarTracking.h" #include #include using namespace std; // SolarTracking::SolarTracking(const SolarTracking& rhs ) { // // time = rhs.time; // // X_Low = rhs.X_Low; // X_High = rhs.X_High; // Y_Low = rhs.Y_Low; // Y_High = rhs.Y_High; // Elev = rhs.Elev; // Azim = rhs.Azim; // Status = rhs.Status; // } SolarTracking& SolarTracking::operator = (const SolarTracking& rhs ) { if (this == &rhs) return *this; time = rhs.time; X_Low = rhs.X_Low; X_High = rhs.X_High; Y_Low = rhs.Y_Low; Y_High = rhs.Y_High; Elev = rhs.Elev; Azim = rhs.Azim; Status = rhs.Status; return *this; } bool SolarTracking::operator < (const SolarTracking& rhs ) const { if ( time < rhs.time ) return true; else return false; } bool SolarTracking::operator > (const SolarTracking& rhs ) const { if ( time > rhs.time ) return true; else return false; } void SolarTracking::dump() const { std::cout << "time: " << std::setw(16) << std::setprecision (15) << time << std::endl; std::cout << " X_Low: " << X_Low << std::endl; std::cout << " X_High: " << X_High << std::endl; std::cout << " Y_Low: " << Y_Low << std::endl; std::cout << " Y_High: " << Y_High << std::endl; std::cout << " Elev: " << Elev << std::endl; std::cout << " Azim: " << Azim << std::endl; std::cout << " Status: " << Status << std::endl; }