** 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
#if defined(MSVC) || HAVE_SSTREAM\r
#include <sstream>
#else\r
-#include <sstream_subst>\r
+#include <sstream_subst>
#endif\r
\r
#include <fstream>
+++ /dev/null
-#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
-
--- /dev/null
+#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
+
** 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
#ifndef __H_TRANSFORMMATRIX
#define __H_TRANSFORMMATRIX
-#include <ostream>\r
+#include <iostream>
class TransformationMatrix2D {
public: