X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=include%2Farray2dfile.h;h=5aa522db89080e67d93ba93850d465c74adfd15b;hp=754ad93a9d1df81138605fc684a81edf8db8a8a0;hb=e3776d3d7bf82adfea545c1f06c8b4ce660190b0;hpb=67a6c34b5a6f38d34e8cbe66091853f453fd2d7a diff --git a/include/array2dfile.h b/include/array2dfile.h index 754ad93..5aa522d 100644 --- a/include/array2dfile.h +++ b/include/array2dfile.h @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: array2dfile.h,v 1.13 2000/12/29 19:30:08 kevin Exp $ +** $Id: array2dfile.h,v 1.16 2001/01/02 06:29:23 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -89,6 +89,7 @@ public: const std::string& getDateString () const; void print (std::ostream& os) const; + void printBrief (std::ostream& os) const; Array2dFileLabel (const Array2dFileLabel& rhs); @@ -151,7 +152,7 @@ public: void labelAdd (int type, const char* const m_strLabel, double calc_time=0.); - void labelsCopy (Array2dFile& file, const char* const idStr = NULL); + void labelsCopy (const Array2dFile& file, const char* const idStr = NULL); void setPixelFormat (int type) { m_pixelFormat = type; } @@ -165,6 +166,12 @@ public: kuint32 ny (void) const { return m_ny; } + bool isComplex() const + { return m_dataType == DATA_TYPE_COMPLEX; } + + bool isReal() const + { return m_dataType == DATA_TYPE_REAL; } + int dataType () const { return static_cast(m_dataType); } @@ -195,7 +202,11 @@ public: const std::string& getFilename (void) const { return m_filename; } - void printLabels (std::ostream& os) const; + void printLabels (std::ostream& os) const; + void printLabelsBrief (std::ostream& os) const; + + unsigned int nLabels() const + { return m_labels.size(); } typedef std::vector::iterator labelIterator; typedef std::vector::const_iterator constLabelIterator;