#ifndef __SOFIE_SOLAR_IMAGE_SAMPLE_03_07_2006__ #define __SOFIE_SOLAR_IMAGE_SAMPLE_03_07_2006__ /** @file SolImageSample.h @author Brian Magill @datecreated 3/07/2006 $Date: 2006/04/06 18:25:15 $ $Revision: 1.2 $ @copyright (©) Copyright 2006 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 Solar Image data for a given instant in time */ //---------------------------------------------------------------------- // #include "SOFIE_namespace.h" //#include #include const unsigned long SolarImgSampleSize = 31; class SolImageSample { private: double time; // time of sample std::valarray ImageData; public: SolImageSample( ):time(0.0), ImageData(SolarImgSampleSize) { }; SolImageSample(double tim, std::valarray const &data) :time(tim),ImageData(data) { }; SolImageSample(SolImageSample const& rhs ) :time(rhs.time),ImageData(rhs.ImageData) { };; SolImageSample& operator = (SolImageSample const& rhs ); ~SolImageSample() { }; bool operator < (SolImageSample const& rhs ) const; bool operator > (SolImageSample const& rhs ) const; double getTime() const { return time; } ; int getImageData(unsigned long j) const; std::valarray getSample() const{ return ImageData; } ; unsigned int size() const { return ImageData.size(); } ; void dump() const; }; #endif