X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=include%2Farray2dfile.h;h=79ae2f26f74b1ea476f82ea4bb3ab4cddfd50b1d;hp=22e8b6173401fe6ed3d2dec6dccc4c2211e65af5;hb=4076fbc077adfd9ee610beef09b52d9e12c14abb;hpb=7ec2cd66921180a624813dff9f8bac76c6b268cc diff --git a/include/array2dfile.h b/include/array2dfile.h index 22e8b61..79ae2f2 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.14 2001/01/01 10:14:34 kevin Exp $ +** $Id: array2dfile.h,v 1.17 2001/01/02 07:47:36 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,8 @@ public: const std::string& getDateString () const; void print (std::ostream& os) const; + void printBrief (std::ostream& os) const; + void printBrief (std::ostringstream& os) const; Array2dFileLabel (const Array2dFileLabel& rhs); @@ -151,7 +153,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; } @@ -201,7 +203,12 @@ 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; + void printLabelsBrief (std::ostringstream& os) const; + + unsigned int nLabels() const + { return m_labels.size(); } typedef std::vector::iterator labelIterator; typedef std::vector::const_iterator constLabelIterator;