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()
ExternalData_Add_Target( ElastixData )
# ---------------------------------------------------------------------
# Setup GoogleTest
# Add GoogleTest
find_package( Git )
if( NOT EXISTS "${CMAKE_SOURCE_DIR}/Testing/GoogleTest/.git" AND GIT_EXECUTABLE )
......@@ -70,7 +70,6 @@ add_subdirectory( Unit )
# Benchmarks
option( ELASTIX_BUILD_BENCHMARKING "Enable building benchmarks." OFF )
if( ${ELASTIX_BUILD_BENCHMARKING} )
add_subdirectory( Benchmark )
endif()
......
#ifndef __DataManager_cxx
#define __DataManager_cxx
#include <itkSimpleDataObjectDecorator.h>
#include "elxDataManager.h"
std::string
const std::string
DataManager
::GetInputFullPath( const std::string filename ) const
{
......@@ -11,7 +12,7 @@ DataManager
return path;
}
std::string
const std::string
DataManager
::GetOutputFullPath( const std::string filename ) const
{
......@@ -19,7 +20,7 @@ DataManager
return path;
}
std::string
const std::string
DataManager
::GetBaselineFullPath( const std::string filename ) const
{
......
......@@ -2,6 +2,7 @@
#define __DataManager_h
#include <string>
#include <itkSimpleDataObjectDecorator.h>
#include "elxMacro.h"
#include "itkObjectFactory.h"
......@@ -25,13 +26,13 @@ public:
std::string GetOutputDirectory( void ) const { return this->m_OutputDirectory; };
std::string GetBaselineDirectory( void ) const { return this->m_BaselineDirectory; };
std::string GetInputFullPath( const std::string filename ) const;
std::string GetOutputFullPath( const std::string filename ) const;
std::string GetBaselineFullPath( const std::string filename ) const;
const std::string GetInputFullPath( const std::string filename ) const;
const std::string GetOutputFullPath( const std::string filename ) const;
const std::string GetBaselineFullPath( const std::string filename ) const;
std::string GetFolderSeparator() const
{
#ifdef WIN32
#ifdef _WIN32
return "\\";
#else
return "/";
......@@ -40,7 +41,7 @@ public:
std::string GetPathSeparator () const
{
#ifdef WIN32
#ifdef _WIN32
return ";";
#else
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