r333: *** empty log message ***
[ctsim.git] / libctsupport / plotfile.cpp
index ef8d26420a5dfb95aec58445d17eac3d4667c4ea..be54e569e6dcb95d3f5f9f47ca954b9d91f5c423 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: plotfile.cpp,v 1.8 2001/01/02 05:34:57 kevin Exp $
+**  $Id: plotfile.cpp,v 1.9 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
@@ -265,7 +265,7 @@ PlotFile::headerWrite (std::iostream& fs)
   fs.seekp (0);
   fs << m_iNumColumns << " " << m_iNumRecords << "\n";\r
 \r
-  int i;
+  unsigned int i;
   for (i = 0; i < m_vecStrEzsetCommands.size(); i++)\r
       fs << m_vecStrEzsetCommands[i] << "\n";\r
   \r
@@ -347,3 +347,15 @@ PlotFile::printHeaders (std::ostream& os) const
   for (unsigned int iDesc = 0; iDesc < m_vecStrDescriptions.size(); iDesc++)\r
     os << m_vecStrDescriptions[iDesc] << "\n";
 }
+
+void
+PlotFile::printHeaders (std::ostringstream& os) const
+{\r
+  os << "EZSet Commands\n";\r
+  for (unsigned int iEZ = 0; iEZ < m_vecStrEzsetCommands.size(); iEZ++)\r
+    os << m_vecStrEzsetCommands[iEZ] << "\n";\r
+\r
+  os << "Descriptions\n";\r
+  for (unsigned int iDesc = 0; iDesc < m_vecStrDescriptions.size(); iDesc++)\r
+    os << m_vecStrDescriptions[iDesc] << "\n";
+}