** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: projections.cpp,v 1.34 2001/01/02 06:29:23 kevin Exp $
+** $Id: projections.cpp,v 1.35 2001/01/02 16:02:13 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
******************************************************************************/
#include "ct.h"
-\r
-const kuint16 Projections::m_signature = ('P'*256 + 'J');\r
+
+const kuint16 Projections::m_signature = ('P'*256 + 'J');
/* NAME
* Projections Constructor for projections matrix storage
m_nView = nView;
m_nDet = nDet;
newProjData ();
-\r
- time_t t = time (NULL);\r
- tm* lt = localtime (&t);\r
- m_year = lt->tm_year;\r
- m_month = lt->tm_mon;\r
- m_day = lt->tm_mday;\r
- m_hour = lt->tm_hour;\r
- m_minute = lt->tm_min;\r
- m_second = lt->tm_sec;\r
+
+ time_t t = time (NULL);
+ tm* lt = localtime (&t);
+ m_year = lt->tm_year;
+ m_month = lt->tm_mon;
+ m_day = lt->tm_mday;
+ m_hour = lt->tm_hour;
+ m_minute = lt->tm_min;
+ m_second = lt->tm_sec;
}
void
}
pszRemarkStorage[_remarksize] = 0;
m_remark = pszRemarkStorage;
- delete pszRemarkStorage;\r
+ delete pszRemarkStorage;
off_t _hsizeread = fs.tellg();
if (!fs || _hsizeread != _hsize) {
bool
Projections::read (const char* filename)
{
- m_filename = filename;\r
-#ifdef MSVC\r
- frnetorderstream fileRead (m_filename.c_str(), std::ios::in | std::ios::binary);\r
-#else\r
- frnetorderstream fileRead (m_filename.c_str(), std::ios::in | std::ios::binary | std::ios::nocreate);\r
-#endif\r
+ m_filename = filename;
+#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);
+#endif
if (fileRead.fail())
return false;