ctsim (3.5.2-2) unstable; urgency=low
* Split online help into ctsim-help package
-
+
* Split pdf and html documentation into ctsim-doc package
+ * Removed definition of ostringstream class (Closes: #148379)
+
-- Kevin Rosenberg <kevin@pal.med-info.com> Tue, 28 May 2002 01:16:28 -0600
ctsim (3.5.2-1) unstable; urgency=low
** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: fnetorderstream.h,v 1.9 2001/03/13 04:44:25 kevin Exp $
+** $Id: fnetorderstream.h,v 1.10 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 ConvertNetworkOrder (void* buffer, size_t bytes);
void ConvertReverseNetworkOrder (void* buffer, size_t bytes);
+#define GPP3 1
using std::fstream;
class fnetorderstream : public fstream {
public:
+#if GPP3
+ fnetorderstream (const char* filename, std::ios::openmode mode)
+ : fstream (filename, mode) {}
+#else
fnetorderstream (const char* filename, int mode)
: fstream (filename, mode) {}
+#endif
~fnetorderstream (void)
{}
class frnetorderstream : public fnetorderstream {
public:
+#if GPP3
+ frnetorderstream (const char* filename, std::ios::openmode mode)
+ : fnetorderstream (filename, mode) {}
+#else
frnetorderstream (const char* filename, int mode)
: fnetorderstream (filename, mode) {}
-
+#endif
virtual void writeInt16 (kuint16 n);
virtual void writeInt32 (kuint32 n);
virtual void writeFloat32 (kfloat32 n);
#ifndef __CM_SSTREAM__
#define __CM_SSTREAM__
\r
-#ifndef MSVC\r
+#if 0
+//#ifndef MSVC\r
#include <string>
#include <cstdio>
** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: ezplot.cpp,v 1.33 2001/03/11 15:27:30 kevin Exp $
+** $Id: ezplot.cpp,v 1.34 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
*/
static inline double
-trunc (double x)
+my_trunc (double x)
{
double integer;
if (*nfrac < 0) { // calculate frac
delta /= pow (10., floor(logt)); // scale delta
- frac = static_cast<int>(fabs(trunc(log10(delta)))) + 1;
+ frac = static_cast<int>(fabs(my_trunc(log10(delta)))) + 1;
if (frac < 1)
frac = 1; // to be safe, add decimal pt
} else // use users' frac
++wid;
sprintf (fmtstr, "%s%d%s%d%s", "%", wid, ".", frac, "g");
} else { // use fixed format
- wid = static_cast<int>(trunc(logt)) + 1;
+ wid = static_cast<int>(my_trunc(logt)) + 1;
if (wid < 1)
wid = 1;
if (minval < 0. || maxval < 0.)
if (delta >= 0.999999)
frac = 1; // add a decimal pt to be safe
else
- frac = static_cast<int>(fabs(trunc(log10(delta)))) + 1;
+ frac = static_cast<int>(fabs(my_trunc(log10(delta)))) + 1;
} else // use users' frac
frac = *nfrac;
** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: array2dfile.cpp,v 1.28 2001/01/27 21:02:20 kevin Exp $
+** $Id: array2dfile.cpp,v 1.29 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
{
m_filename = filename;
-#ifdef MSVC
frnetorderstream fs (m_filename.c_str(), std::ios::out | std::ios::in | std::ios::binary);
-#else
- frnetorderstream fs (m_filename.c_str(), std::ios::out | std::ios::in | std::ios::binary | std::ios::nocreate);
-#endif
+
if (fs.fail()) {
sys_error (ERR_WARNING, "Unable to open file %s [fileRead]", m_filename.c_str());
return false;
** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: phantom.cpp,v 1.31 2001/03/24 05:28:28 kevin Exp $
+** $Id: phantom.cpp,v 1.32 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
bool
Phantom::fileWrite (const char* const fname)
{
- fstream file (fname, ios::out);
+ fstream file (fname, std::ios::out);
if (! file.fail())
printDefinitions (file);
** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: projections.cpp,v 1.76 2001/09/24 11:29:41 kevin Exp $
+** $Id: projections.cpp,v 1.77 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
#ifdef MSVC
frnetorderstream fileRead (m_filename.c_str(), std::ios::in | std::ios::binary);
#else
- frnetorderstream fileRead (m_filename.c_str(), std::ios::in | std::ios::binary | std::ios::nocreate);
+ frnetorderstream fileRead (m_filename.c_str(), std::ios::in | std::ios::binary); // | std::ios::nocreate);
#endif
if (fileRead.fail())
** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: plotfile.cpp,v 1.13 2001/03/10 23:14:16 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
#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()) {
** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: docs.h,v 1.30 2001/03/11 18:52:03 kevin Exp $
+** $Id: docs.h,v 1.31 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
class Graph3dFileDocument: public wxDocument
{
- friend Graph3dFileView;
+ friend class Graph3dFileView;
private:
DECLARE_DYNAMIC_CLASS(Graph3dFileDocument)
** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: graph3dview.h,v 1.8 2001/03/21 21:45:31 kevin Exp $
+** $Id: graph3dview.h,v 1.9 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
class Graph3dFileCanvas;
class Graph3dFileView : public wxView
{
- friend Graph3dFileCanvas;
+ friend class Graph3dFileCanvas;
private:
DECLARE_DYNAMIC_CLASS(Graph3dFileView)