Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkdump.cpp File Reference

Commandline application to see what DICOMFileReaderSelector would produce from a set of files. More...

Go to the source code of this file.

Functions

std::string buildDateString ()
 
void gen_random (char *s, const int len)
 
std::string gen_random (const int len)
 
std::string removeUnsafeChars (const std::string &str)
 
std::string extractDirString (const std::string &dirString)
 
int main (int argc, char *argv[])
 

Detailed Description

Commandline application to see what DICOMFileReaderSelector would produce from a set of files.

Usage:

  mitkdump [-v] file1 [... fileN]

  -v      output more details on commandline
  fileN   DICOM file

The application will ask a DICOMFileReaderSelector to analyze the files given as file1 .. fileN. Once the reader with the least number of files is selected, this result is printed to commandline.

If the "-v" flag is used (as a first parameter), the output will contain details about filenames, which can make the output considerably harder to read.

Output is also written to a log file of name "gt;datetime-stamplt;dir>directory-name<.mitkdump

Definition in file mitkdump.cpp.

Function Documentation

std::string buildDateString ( )

Definition at line 45 of file mitkdump.cpp.

Referenced by main().

std::string extractDirString ( const std::string &  dirString)

Definition at line 101 of file mitkdump.cpp.

References gen_random(), and removeUnsafeChars().

Referenced by main().

void gen_random ( char *  s,
const int  len 
)

Definition at line 59 of file mitkdump.cpp.

Referenced by extractDirString(), and gen_random().

std::string gen_random ( const int  len)

Definition at line 72 of file mitkdump.cpp.

References gen_random().

int main ( int  argc,
char *  argv[] 
)
std::string removeUnsafeChars ( const std::string &  str)

Definition at line 86 of file mitkdump.cpp.

Referenced by extractDirString().