r253: *** empty log message ***
authorKevin M. Rosenberg <kevin@rosenberg.net>
Fri, 15 Dec 2000 23:48:25 +0000 (23:48 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Fri, 15 Dec 2000 23:48:25 +0000 (23:48 +0000)
include/ct.h
include/sstream [deleted file]
include/sstream_subst [new file with mode: 0644]
include/transformmatrix.h

index 84e139f8f892f86b65a0906ffc01500aefbec697..16b79a60c3b03e3ac03853432d2977bbcb308ead 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: ct.h,v 1.42 2000/12/06 15:17:51 kevin Exp $
+**  $Id: ct.h,v 1.43 2000/12/15 23:48:25 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
 **
 **  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
@@ -57,7 +57,7 @@ using namespace std;
 #if defined(MSVC) || HAVE_SSTREAM\r
 #include <sstream>
 #else\r
 #if defined(MSVC) || HAVE_SSTREAM\r
 #include <sstream>
 #else\r
-#include <sstream_subst>\r
+#include <sstream_subst>
 #endif\r
 \r
 #include <fstream>
 #endif\r
 \r
 #include <fstream>
diff --git a/include/sstream b/include/sstream
deleted file mode 100644 (file)
index c89ffdc..0000000
+++ /dev/null
@@ -1,114 +0,0 @@
-#ifndef __CM_SSTREAM__
-#define __CM_SSTREAM__
-\r
-#ifndef MSVC\r
-
-#include <string>
-#include <cstdio>
-#include <strstream>
-#include <algorithm>
-
-namespace std {
-
-class ostringstream
-{
-public:
-    ostringstream (const string & str = "")
-        : buffer(str) {}
-
-    const string & str() const
-    {
-        return buffer;
-    }
-
-    void str (const string & new_string)
-    {
-        buffer = new_string;
-    }
-
-    ostringstream & operator<< (const string & item)
-    {
-        buffer += item;
-
-        return *this;
-    }
-
-    ostringstream & operator<< (int item)
-    {
-        char temp[100];
-
-        sprintf (temp, "%d", item);
-        buffer += temp;
-
-        return *this;
-    }
-
-    ostringstream & operator<< (unsigned int item)
-    {
-        char temp[100];
-
-        sprintf (temp, "%u", item);
-        buffer += temp;
-
-        return *this;
-    }
-
-    ostringstream & operator<< (char item)
-    {
-        buffer += item;
-        return *this;
-    }
-
-    ostringstream & operator<< (double item)
-    {
-        char temp[1000];
-
-        sprintf (temp, "%g", item);
-        buffer += temp;
-
-        return *this;
-    }
-
-private:
-    string buffer;
-};
-
-
-
-class istringstream
-{
-    friend istringstream & getline (istringstream &, string &, char = '\n');
-
-public:
-    istringstream (const string & str = "")
-        : buffer (str.c_str(), str.length()) {}
-
-    template <class T>
-    istringstream & operator>> (T & item)
-    {
-        buffer >> item;
-        return *this;
-    }
-
-    operator void * () const
-    {
-        return (void *) buffer;
-    }
-
-private:
-    istrstream buffer;
-};
-
-
-inline istringstream & getline (istringstream & src_stream, string & str, char separator)
-{
-    getline (src_stream.buffer, str, separator);
-    return src_stream;
-}
-
-}   // End of namespace std
-\r
-#endif\r
-
-#endif
-
diff --git a/include/sstream_subst b/include/sstream_subst
new file mode 100644 (file)
index 0000000..c89ffdc
--- /dev/null
@@ -0,0 +1,114 @@
+#ifndef __CM_SSTREAM__
+#define __CM_SSTREAM__
+\r
+#ifndef MSVC\r
+
+#include <string>
+#include <cstdio>
+#include <strstream>
+#include <algorithm>
+
+namespace std {
+
+class ostringstream
+{
+public:
+    ostringstream (const string & str = "")
+        : buffer(str) {}
+
+    const string & str() const
+    {
+        return buffer;
+    }
+
+    void str (const string & new_string)
+    {
+        buffer = new_string;
+    }
+
+    ostringstream & operator<< (const string & item)
+    {
+        buffer += item;
+
+        return *this;
+    }
+
+    ostringstream & operator<< (int item)
+    {
+        char temp[100];
+
+        sprintf (temp, "%d", item);
+        buffer += temp;
+
+        return *this;
+    }
+
+    ostringstream & operator<< (unsigned int item)
+    {
+        char temp[100];
+
+        sprintf (temp, "%u", item);
+        buffer += temp;
+
+        return *this;
+    }
+
+    ostringstream & operator<< (char item)
+    {
+        buffer += item;
+        return *this;
+    }
+
+    ostringstream & operator<< (double item)
+    {
+        char temp[1000];
+
+        sprintf (temp, "%g", item);
+        buffer += temp;
+
+        return *this;
+    }
+
+private:
+    string buffer;
+};
+
+
+
+class istringstream
+{
+    friend istringstream & getline (istringstream &, string &, char = '\n');
+
+public:
+    istringstream (const string & str = "")
+        : buffer (str.c_str(), str.length()) {}
+
+    template <class T>
+    istringstream & operator>> (T & item)
+    {
+        buffer >> item;
+        return *this;
+    }
+
+    operator void * () const
+    {
+        return (void *) buffer;
+    }
+
+private:
+    istrstream buffer;
+};
+
+
+inline istringstream & getline (istringstream & src_stream, string & str, char separator)
+{
+    getline (src_stream.buffer, str, separator);
+    return src_stream;
+}
+
+}   // End of namespace std
+\r
+#endif\r
+
+#endif
+
index 6282b6172babce9f88b0c131c469e449491b3151..bdae6cfcafba9ad37d8a7b4090a320072c013507 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: transformmatrix.h,v 1.2 2000/12/06 01:46:43 kevin Exp $
+**  $Id: transformmatrix.h,v 1.3 2000/12/15 23:48:25 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
 **
 **  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
@@ -28,7 +28,7 @@
 #ifndef __H_TRANSFORMMATRIX
 #define __H_TRANSFORMMATRIX
 
 #ifndef __H_TRANSFORMMATRIX
 #define __H_TRANSFORMMATRIX
 
-#include <ostream>\r
+#include <iostream>
 
 class TransformationMatrix2D {
 public:
 
 class TransformationMatrix2D {
 public: