From 8b046691e7cf5ba603b690e5a820869f7aba0bb6 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Wed, 16 Apr 2014 11:13:17 +0000 Subject: Clean up sstream include --- include/astra/Float32Data2D.h | 12 ------------ include/astra/Float32Data3D.h | 12 ------------ src/Float32Data2D.cpp | 11 +++++++++++ src/Float32Data3D.cpp | 12 ++++++++++++ 4 files changed, 23 insertions(+), 24 deletions(-) diff --git a/include/astra/Float32Data2D.h b/include/astra/Float32Data2D.h index c89e9f8..062feb5 100644 --- a/include/astra/Float32Data2D.h +++ b/include/astra/Float32Data2D.h @@ -32,8 +32,6 @@ $Id$ #include "Globals.h" #include "Float32Data.h" -#include - namespace astra { /** @@ -433,16 +431,6 @@ inline int CFloat32Data2D::getDimensionCount() const return 2; } -//---------------------------------------------------------------------------------------- -inline std::string CFloat32Data2D::description() const -{ - std::stringstream res; - res << m_iWidth << "x" << m_iHeight; - if (getType() == CFloat32Data2D::PROJECTION) res << " sinogram data \t"; - if (getType() == CFloat32Data2D::VOLUME) res << " volume data \t"; - return res.str(); -} - //---------------------------------------------------------------------------------------- // Get the type of this object. inline CFloat32Data2D::EDataType CFloat32Data2D::getType() const diff --git a/include/astra/Float32Data3D.h b/include/astra/Float32Data3D.h index 8666890..ee385f0 100644 --- a/include/astra/Float32Data3D.h +++ b/include/astra/Float32Data3D.h @@ -182,18 +182,6 @@ inline CFloat32Data3D::EDataType CFloat32Data3D::getType() const return BASE; } -//---------------------------------------------------------------------------------------- -// To String -inline std::string CFloat32Data3D::description() const -{ - std::stringstream res; - res << m_iWidth << "x" << m_iHeight << "x" << m_iDepth; - if (getType() == CFloat32Data3D::PROJECTION) res << " sinogram data \t"; - if (getType() == CFloat32Data3D::VOLUME) res << " volume data \t"; - return res.str(); -} -//---------------------------------------------------------------------------------------- - } // end namespace astra #endif // _INC_ASTRA_FLOAT32DATA2D diff --git a/src/Float32Data2D.cpp b/src/Float32Data2D.cpp index e51935f..ae84716 100644 --- a/src/Float32Data2D.cpp +++ b/src/Float32Data2D.cpp @@ -29,6 +29,7 @@ $Id$ #include "astra/Float32Data2D.h" #include #include +#include #ifdef _MSC_VER #include @@ -518,6 +519,16 @@ CFloat32Data2D& CFloat32Data2D::operator-=(const float32& f) } +std::string CFloat32Data2D::description() const +{ + std::stringstream res; + res << m_iWidth << "x" << m_iHeight; + if (getType() == CFloat32Data2D::PROJECTION) res << " sinogram data \t"; + if (getType() == CFloat32Data2D::VOLUME) res << " volume data \t"; + return res.str(); +} + + } // end namespace astra diff --git a/src/Float32Data3D.cpp b/src/Float32Data3D.cpp index 4280b3b..57c72ed 100644 --- a/src/Float32Data3D.cpp +++ b/src/Float32Data3D.cpp @@ -27,6 +27,7 @@ $Id$ */ #include "astra/Float32Data3D.h" +#include using namespace std; @@ -52,4 +53,15 @@ bool CFloat32Data3D::_data3DSizesEqual(const CFloat32Data3D * _pA, const CFloat3 return ((_pA->m_iWidth == _pB->m_iWidth) && (_pA->m_iHeight == _pB->m_iHeight) && (_pA->m_iDepth == _pB->m_iDepth)); } +std::string CFloat32Data3D::description() const +{ + std::stringstream res; + res << m_iWidth << "x" << m_iHeight << "x" << m_iDepth; + if (getType() == CFloat32Data3D::PROJECTION) res << " sinogram data \t"; + if (getType() == CFloat32Data3D::VOLUME) res << " volume data \t"; + return res.str(); +} +//---------------------------------------------------------------------------------------- + + } // end namespace astra -- cgit v1.2.3