/** @class MultiSignal.cpp @author Brian Magill @creation date 11/13/2006 @brief data class for signal corrections */ #include "MultiSignal.h" #include using namespace std; MultiSignal const & MultiSignal::operator = (MultiSignal const &rhs) { valarray inArray(rhs.channelArray.at(0).size() ); if(&rhs == this) return *this; AuditInfo::operator=(rhs); time_150km = rhs.time_150km; sunsetMode = rhs.sunsetMode; time.resize(rhs.time.size() ); time = rhs.time; channelArray = rhs.channelArray; return *this; }; void MultiSignal::getTime(std::valarray &t_out) const { t_out.resize(time.size()); t_out = time; }; ChannelSignals MultiSignal::getChannel(int indx) const { return channelArray.at(indx); }; void MultiSignal::dump() const { unsigned long i; // unsigned long j; cout << "Time at 150 km point: " << time_150km << endl; cout << "sunsetMode flag: " << sunsetMode << endl; cout << "time : "; for(i = 0; i < time.size(); i++) { cout << time[i] << " "; } cout << endl; cout << "signals:" << endl; for(i = 0; i < channelArray.size(); i++) { channelArray[i].dump( ); } };