Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
ExampleToUpperCaseMiniApp.cpp File Reference
#include <algorithm>
#include <string>
#include "mitkCommandLineParser.h"
#include "mitkExampleDataStructure.h"
#include <mitkIOUtil.h>

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 Example MiniApp that converts a text file content to upper case. More...
 

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Example MiniApp that converts a text file content to upper case.

This MiniApp provides the capability to convert a text file to content to upper case. This is done loading the text file as a mitk::ExampleDataStructure, getting the string content, using the std to transform it and writing it to file again.

Supported file extensions are .txt and .example.

You will need to specify an input and an output file path. The -v flag is optional and will produce additional output.[main]

[main]

[create parser]

[create parser]

[add arguments]

[add arguments]

[parse the arguments]

[parse the arguments]

[do processing]

[do processing]

Definition at line 41 of file ExampleToUpperCaseMiniApp.cpp.