Skip to content

Commit

Permalink
mitkCommandLineParser: Replace InputFile and OutputFile with `S…
Browse files Browse the repository at this point in the history
…tring`

Fixes compilation errors on both Linux and macOS, as discussed on Slack
  • Loading branch information
JostMigenda committed Mar 28, 2024
1 parent 2f1f216 commit 511fa92
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ int main(int argc, char* argv[]) {
// Add arguments. Unless specified otherwise, each argument is optional.
// See mitkCommandLineParser::addArgument() for more information.
parser.addArgument(
"input", "i", mitkCommandLineParser::InputFile,
"input", "i", mitkCommandLineParser::String,
"Input Image", "Any image format known to MITK.",
us::Any(), false);
parser.addArgument(
"output", "o", mitkCommandLineParser::OutputFile,
"output", "o", mitkCommandLineParser::String,
"Output file", "Where to save the output.",
us::Any(), false);
parser.addArgument(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ int main(int argc, char* argv[]) {
// Add arguments. Unless specified otherwise, each argument is optional.
// See mitkCommandLineParser::addArgument() for more information.
// parser.addArgument(
// "input-path", "p", mitkCommandLineParser::InputFile,
// "input-path", "p", mitkCommandLineParser::String,
// "Input Directory Path", "Path of directory containing LGE files.",
// us::Any(), false);
parser.addArgument(
"input", "i", mitkCommandLineParser::InputFile,
"input", "i", mitkCommandLineParser::String,
"Surface mesh path", "Full path of mesh vtk polydata file.",
us::Any(), false);
parser.addArgument(
Expand Down
6 changes: 3 additions & 3 deletions CemrgApp/Modules/CemrgAppModule/cmdapps/CemrgClippingTool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,15 @@ int main(int argc, char* argv[]) {
// Add arguments. Unless specified otherwise, each argument is optional.
// See mitkCommandLineParser::addArgument() for more information.
// parser.addArgument(
// "input-path", "p", mitkCommandLineParser::InputFile,
// "input-path", "p", mitkCommandLineParser::String,
// "Input Directory Path", "Path of directory containing LGE files.",
// us::Any(), false);
parser.addArgument(
"input-vtk", "i", mitkCommandLineParser::InputFile,
"input-vtk", "i", mitkCommandLineParser::String,
"segmentation (vtk) path", "Full path of segmentation.vtk file.",
us::Any(), false);
parser.addArgument(
"output", "o", mitkCommandLineParser::OutputFile,
"output", "o", mitkCommandLineParser::String,
"Output file", "Where to save the output.",
us::Any(), false);
parser.addArgument(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ int main(int argc, char* argv[]) {
// Add arguments. Unless specified otherwise, each argument is optional.
// See mitkCommandLineParser::addArgument() for more information.
parser.addArgument("input-segmentation", "i",
mitkCommandLineParser::InputFile,"Input segmentation (.nii)",
mitkCommandLineParser::String,"Input segmentation (.nii)",
"Input segmentation file (commonly output of CEMRGNET)", us::Any(), false
);

Expand Down
6 changes: 3 additions & 3 deletions CemrgApp/Modules/CemrgAppModule/cmdapps/CemrgFixShellApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ int main(int argc, char* argv[]) {
// Add arguments. Unless specified otherwise, each argument is optional.
// See mitkCommandLineParser::addArgument() for more information.
// parser.addArgument(
// "input-path", "p", mitkCommandLineParser::InputFile,
// "input-path", "p", mitkCommandLineParser::String,
// "Input Directory Path", "Path of directory containing LGE files.",
// us::Any(), false);
parser.addArgument(
"input-lge", "i", mitkCommandLineParser::InputFile,
"input-lge", "i", mitkCommandLineParser::String,
"LGE path", "Full path of LGE.nii file.",
us::Any(), false);
parser.addArgument(
"output", "o", mitkCommandLineParser::OutputFile,
"output", "o", mitkCommandLineParser::String,
"Output file", "Where to save the output.",
us::Any(), false);
parser.addArgument( // optional
Expand Down
4 changes: 2 additions & 2 deletions CemrgApp/Modules/CemrgAppModule/cmdapps/CemrgIM2INR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ int main(int argc, char* argv[]) {
// Add arguments. Unless specified otherwise, each argument is optional.
// See mitkCommandLineParser::addArgument() for more information.
// parser.addArgument(
// "input-path", "p", mitkCommandLineParser::InputFile,
// "input-path", "p", mitkCommandLineParser::String,
// "Input Directory Path", "Path of directory containing LGE files.",
// us::Any(), false);
parser.addArgument(
"input", "i", mitkCommandLineParser::InputFile,
"input", "i", mitkCommandLineParser::String,
"Input image", "Full path of image file.",
us::Any(), false);
parser.addArgument(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ int main(int argc, char* argv[]) {
// Add arguments. Unless specified otherwise, each argument is optional.
// See mitkCommandLineParser::addArgument() for more information.
// parser.addArgument(
// "input-path", "p", mitkCommandLineParser::InputFile,
// "input-path", "p", mitkCommandLineParser::String,
// "Input Directory Path", "Path of directory containing LGE files.",
// us::Any(), false);
parser.addArgument(
"input", "i", mitkCommandLineParser::InputFile,
"input", "i", mitkCommandLineParser::String,
"Input image", "Full path of image file.",
us::Any(), false);
parser.addArgument(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ int main(int argc, char* argv[]) {

// Add arguments. Unless specified otherwise, each argument is optional.
parser.addArgument(
"directory", "d", mitkCommandLineParser::InputFile,
"directory", "d", mitkCommandLineParser::String,
"Directory path", "Full path of directory",
us::Any(), false);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ int main(int argc, char* argv[]) {
// Add arguments. Unless specified otherwise, each argument is optional.
// See mitkCommandLineParser::addArgument() for more information.
parser.addArgument(
"input-lge", "lge", mitkCommandLineParser::InputFile,
"input-lge", "lge", mitkCommandLineParser::String,
"LGE Image", "Full path to the .nii file with the lge score.",
us::Any(), false);
parser.addArgument(
"input-surface", "surf", mitkCommandLineParser::InputFile,
"input-surface", "surf", mitkCommandLineParser::String,
"Surface Image", "Full path to the .vtk file with the surface.",
us::Any(), false);
parser.addArgument(
"output", "o", mitkCommandLineParser::OutputFile,
"output", "o", mitkCommandLineParser::String,
"Output file", "Where to save the output.",
us::Any(), false);
parser.addArgument(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ int main(int argc, char* argv[]) {
// Add arguments. Unless specified otherwise, each argument is optional.
// See mitkCommandLineParser::addArgument() for more information.
// parser.addArgument(
// "input-path", "p", mitkCommandLineParser::InputFile,
// "input-path", "p", mitkCommandLineParser::String,
// "Input Directory Path", "Path of directory containing LGE files.",
// us::Any(), false);
parser.addArgument(
"input-lge", "i", mitkCommandLineParser::InputFile,
"input-lge", "i", mitkCommandLineParser::String,
"LGE path", "Full path of LGE.nii file.",
us::Any(), false);
parser.addArgument( // optional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ int main(int argc, char* argv[]) {

// Add arguments. Unless specified otherwise, each argument is optional.
parser.addArgument(
"input", "i", mitkCommandLineParser::InputFile,
"input", "i", mitkCommandLineParser::String,
"NIFTI file path", "Full path of .nii file.",
us::Any(), false);
parser.addArgument(
"output", "o", mitkCommandLineParser::OutputFile,
"output", "o", mitkCommandLineParser::String,
"Output file", "Where to save the output.",
us::Any(), false);
parser.addArgument( // optional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ int main(int argc, char* argv[]) {
// Add arguments. Unless specified otherwise, each argument is optional.
// See mitkCommandLineParser::addArgument() for more information.
parser.addArgument(
"reference", "i", mitkCommandLineParser::InputFile,
"reference", "i", mitkCommandLineParser::String,
"Input object (reference)", "Reference for registration. Accepts any image format known to MITK.",
us::Any(), false);
parser.addArgument(
"otherimage", "j", mitkCommandLineParser::InputFile,
"otherimage", "j", mitkCommandLineParser::String,
"Input object (reference)", "Image to calculate transformation from. Accepts any image format known to MITK.",
us::Any(), false);
parser.addArgument( // optional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,15 @@ int main(int argc, char* argv[]) {
// Add arguments. Unless specified otherwise, each argument is optional.
// See mitkCommandLineParser::addArgument() for more information.
// parser.addArgument(
// "input-path", "p", mitkCommandLineParser::InputFile,
// "input-path", "p", mitkCommandLineParser::String,
// "Input Directory Path", "Path of directory containing LGE files.",
// us::Any(), false);
parser.addArgument(
"input", "i", mitkCommandLineParser::InputFile,
"input", "i", mitkCommandLineParser::String,
"Input image segmentation", "Full path of segmentation file.",
us::Any(), false);
parser.addArgument(
"bloodpool", "b", mitkCommandLineParser::InputFile,
"bloodpool", "b", mitkCommandLineParser::String,
"Input image bloodpool seg", "Full path of bloodpool file.",
us::Any(), false);
parser.addArgument( // optional
Expand Down

0 comments on commit 511fa92

Please sign in to comment.