#ifndef DETECTOR_TEMPERATURE_SAMPLE_2007_06_20 #define DETECTOR_TEMPERATURE_SAMPLE_2007_06_20 /** @file DetectorTSample.h @author Brian Magill @datecreated 6/20/2007 $Date:$ $Revision:$ @copyright (©) Copyright 2007 by GATS Inc. 11864 Canon Blvd., Suite 101, Newport News, VA 23606 All Rights Reserved. No part of this software or publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise without the prior written permission of GATS Inc. @brief Detector temperatures for a given instant */ //---------------------------------------------------------------------- // //#include "SOFIE_namespace.h" #include #include class DetectorTSample { protected: double time; // time of sample std::vector Temperatures; // detector values public: DetectorTSample( ): time(0), Temperatures(0) { } DetectorTSample(double t, std::vector const &tem ): time(t), Temperatures(tem) { } DetectorTSample(DetectorTSample const& rhs ): time(rhs.time), Temperatures(rhs.Temperatures) { } DetectorTSample& operator = (DetectorTSample const& rhs ); ~DetectorTSample() { } bool operator < (DetectorTSample const& rhs ) const {return time < rhs.time;} bool operator > (DetectorTSample const& rhs ) const {return time > rhs.time;} double getTime() const {return time;} double getTemperature(unsigned long index) const {return Temperatures.at(index);} unsigned long size() const { return Temperatures.size(); } void dump() const; }; #endif