X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctsupport%2Fplotfile.cpp;h=be54e569e6dcb95d3f5f9f47ca954b9d91f5c423;hp=ef8d26420a5dfb95aec58445d17eac3d4667c4ea;hb=4076fbc077adfd9ee610beef09b52d9e12c14abb;hpb=c39188dafe238b70c0e2dd45fd1cd2e2be95a7dc diff --git a/libctsupport/plotfile.cpp b/libctsupport/plotfile.cpp index ef8d264..be54e56 100644 --- a/libctsupport/plotfile.cpp +++ b/libctsupport/plotfile.cpp @@ -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"; - int i; + unsigned int i; for (i = 0; i < m_vecStrEzsetCommands.size(); i++) fs << m_vecStrEzsetCommands[i] << "\n"; @@ -347,3 +347,15 @@ PlotFile::printHeaders (std::ostream& os) const for (unsigned int iDesc = 0; iDesc < m_vecStrDescriptions.size(); iDesc++) os << m_vecStrDescriptions[iDesc] << "\n"; } + +void +PlotFile::printHeaders (std::ostringstream& os) const +{ + os << "EZSet Commands\n"; + for (unsigned int iEZ = 0; iEZ < m_vecStrEzsetCommands.size(); iEZ++) + os << m_vecStrEzsetCommands[iEZ] << "\n"; + + os << "Descriptions\n"; + for (unsigned int iDesc = 0; iDesc < m_vecStrDescriptions.size(); iDesc++) + os << m_vecStrDescriptions[iDesc] << "\n"; +}