Skip to content
Snippets Groups Projects
Commit e5185eae authored by Kasper Marstal's avatar Kasper Marstal
Browse files

ENH: ELASTIX-1 DataManager now return const strings instead of just strings

parent 9849c78c
No related branches found
No related tags found
No related merge requests found
...@@ -30,7 +30,7 @@ endforeach() ...@@ -30,7 +30,7 @@ endforeach()
ExternalData_Add_Target( ElastixData ) ExternalData_Add_Target( ElastixData )
# --------------------------------------------------------------------- # ---------------------------------------------------------------------
# Setup GoogleTest # Add GoogleTest
find_package( Git ) find_package( Git )
if( NOT EXISTS "${CMAKE_SOURCE_DIR}/Testing/GoogleTest/.git" AND GIT_EXECUTABLE ) if( NOT EXISTS "${CMAKE_SOURCE_DIR}/Testing/GoogleTest/.git" AND GIT_EXECUTABLE )
...@@ -70,7 +70,6 @@ add_subdirectory( Unit ) ...@@ -70,7 +70,6 @@ add_subdirectory( Unit )
# Benchmarks # Benchmarks
option( ELASTIX_BUILD_BENCHMARKING "Enable building benchmarks." OFF ) option( ELASTIX_BUILD_BENCHMARKING "Enable building benchmarks." OFF )
if( ${ELASTIX_BUILD_BENCHMARKING} ) if( ${ELASTIX_BUILD_BENCHMARKING} )
add_subdirectory( Benchmark ) add_subdirectory( Benchmark )
endif() endif()
......
#ifndef __DataManager_cxx #ifndef __DataManager_cxx
#define __DataManager_cxx #define __DataManager_cxx
#include <itkSimpleDataObjectDecorator.h>
#include "elxDataManager.h" #include "elxDataManager.h"
std::string const std::string
DataManager DataManager
::GetInputFullPath( const std::string filename ) const ::GetInputFullPath( const std::string filename ) const
{ {
...@@ -11,7 +12,7 @@ DataManager ...@@ -11,7 +12,7 @@ DataManager
return path; return path;
} }
std::string const std::string
DataManager DataManager
::GetOutputFullPath( const std::string filename ) const ::GetOutputFullPath( const std::string filename ) const
{ {
...@@ -19,7 +20,7 @@ DataManager ...@@ -19,7 +20,7 @@ DataManager
return path; return path;
} }
std::string const std::string
DataManager DataManager
::GetBaselineFullPath( const std::string filename ) const ::GetBaselineFullPath( const std::string filename ) const
{ {
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#define __DataManager_h #define __DataManager_h
#include <string> #include <string>
#include <itkSimpleDataObjectDecorator.h>
#include "elxMacro.h" #include "elxMacro.h"
#include "itkObjectFactory.h" #include "itkObjectFactory.h"
...@@ -25,13 +26,13 @@ public: ...@@ -25,13 +26,13 @@ public:
std::string GetOutputDirectory( void ) const { return this->m_OutputDirectory; }; std::string GetOutputDirectory( void ) const { return this->m_OutputDirectory; };
std::string GetBaselineDirectory( void ) const { return this->m_BaselineDirectory; }; std::string GetBaselineDirectory( void ) const { return this->m_BaselineDirectory; };
std::string GetInputFullPath( const std::string filename ) const; const std::string GetInputFullPath( const std::string filename ) const;
std::string GetOutputFullPath( const std::string filename ) const; const std::string GetOutputFullPath( const std::string filename ) const;
std::string GetBaselineFullPath( const std::string filename ) const; const std::string GetBaselineFullPath( const std::string filename ) const;
std::string GetFolderSeparator() const std::string GetFolderSeparator() const
{ {
#ifdef WIN32 #ifdef _WIN32
return "\\"; return "\\";
#else #else
return "/"; return "/";
...@@ -40,7 +41,7 @@ public: ...@@ -40,7 +41,7 @@ public:
std::string GetPathSeparator () const std::string GetPathSeparator () const
{ {
#ifdef WIN32 #ifdef _WIN32
return ";"; return ";";
#else #else
return ":"; return ":";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment