Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SuperElastix
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirrors
SuperElastix
Commits
e5185eae
Commit
e5185eae
authored
9 years ago
by
Kasper Marstal
Browse files
Options
Downloads
Patches
Plain Diff
ENH: ELASTIX-1 DataManager now return const strings instead of just strings
parent
9849c78c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Testing/CMakeLists.txt
+1
-2
1 addition, 2 deletions
Testing/CMakeLists.txt
Testing/Unit/elxDataManager.cxx
+4
-3
4 additions, 3 deletions
Testing/Unit/elxDataManager.cxx
Testing/Unit/elxDataManager.h
+6
-5
6 additions, 5 deletions
Testing/Unit/elxDataManager.h
with
11 additions
and
10 deletions
Testing/CMakeLists.txt
+
1
−
2
View file @
e5185eae
...
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
Testing/Unit/elxDataManager.cxx
+
4
−
3
View file @
e5185eae
#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
{
...
...
This diff is collapsed.
Click to expand it.
Testing/Unit/elxDataManager.h
+
6
−
5
View file @
e5185eae
...
...
@@ -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
":"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment