Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
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

◆ buildDateString()

std::string buildDateString ( )

Definition at line 41 of file mitkdump.cpp.

Referenced by main().

◆ extractDirString()

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

Definition at line 97 of file mitkdump.cpp.

References gen_random(), and removeUnsafeChars().

Referenced by main().

◆ gen_random() [1/2]

void gen_random ( char *  s,
const int  len 
)

Definition at line 55 of file mitkdump.cpp.

Referenced by extractDirString(), and gen_random().

◆ gen_random() [2/2]

std::string gen_random ( const int  len)

Definition at line 68 of file mitkdump.cpp.

References gen_random().

◆ main()

◆ removeUnsafeChars()

std::string removeUnsafeChars ( const std::string &  str)

Definition at line 82 of file mitkdump.cpp.

Referenced by extractDirString().