r10877: Automated commit for Debian build of ctsim upstream-version-4.4.3
[ctsim.git] / libctsupport / plotfile.cpp
index ef492d64d47a06f7b6761cbff812d093ad772ef9..9daba2feef498a6bd760d1f1107c3877da945f23 100644 (file)
@@ -7,9 +7,9 @@
 **     Date Started: Dec 2000
 **
 **  This is part of the CTSim program
-**  Copyright (C) 1983-2000 Kevin Rosenberg
+**  Copyright (c) 1983-2001 Kevin Rosenberg
 **
-**  $Id: plotfile.cpp,v 1.11 2001/01/07 22:53:36 kevin Exp $
+**  $Id$
 **
 **  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
@@ -64,17 +64,17 @@ PlotFile::initHeaders ()
 }
 
 void
-PlotFile::setCurveSize (int nCols, int nRecords)
+PlotFile::setCurveSize (int nCols, int nRecords, bool bScatterPlot)
 {
   m_iNumColumns = nCols;
   m_iNumRecords = nRecords;
+  m_bScatterPlot = bScatterPlot;
   m_vecCurves.clear();
   m_vecCurves.reserve (m_iNumColumns * m_iNumRecords);
 }
 
 // Storage format
 //   a Column's records are stored sequentially. It begins at iCol * m_iNumRecords
-
 bool
 PlotFile::addColumn (int iCol, const double* const pdColData)
 {
@@ -191,7 +191,7 @@ PlotFile::fileRead (const char* const filename)
 #ifdef MSVC
   fstream fs (m_strFilename.c_str(), std::ios::in);
 #else
-  fstream fs (m_strFilename.c_str(), std::ios::in | std::ios::nocreate);
+  fstream fs (m_strFilename.c_str(), std::ios::in); // | std::ios::nocreate);
 #endif
   
   if (fs.fail()) {