** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: plotfile.cpp,v 1.12 2001/01/28 19:10:18 kevin Exp $
+** $Id: plotfile.cpp,v 1.14 2002/05/28 18:43:16 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
}
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)
{
#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()) {