Computer Assited Medical Intervention Tool Kit  version 3.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Static Public Member Functions | Static Private Member Functions | List of all members
DicomParser Class Reference

DicomParser allows one to parse a directory DICOM files looking for studies and series. More...

#include <DicomParser.h>

Public Member Functions

 DicomParser ()
 
virtual ~DicomParser ()
 Default Destructor. More...
 

Static Public Member Functions

static QList< DicomSerie * > parseDirectory (const QString &directory)
 Parse the input directory for DICOM series. More...
 

Static Private Member Functions

static QDate getAcquisitionDate (const std::vector< std::string > &serieFileNames)
 Retrieve the SERIE acquisition date. More...
 
static QTime getAcquisitionTime (const std::vector< std::string > &serieFileNames)
 Retrieve the SERIE acquisition time. More...
 
static QString getPatientName (const std::vector< std::string > &serieFileNames)
 Retrieve the patient name information from the input files. More...
 
static QString getSerieDescription (const std::vector< std::string > &serieFileNames)
 Retrieve the serie description. More...
 
static QString getSerieName (const std::vector< std::string > &serieFileNames)
 Retrieve the serie name. More...
 
static QString getStudyName (const std::vector< std::string > &serieFileNames)
 Retrieve the study name. More...
 
static std::vector< std::string > qtListOfStringToStd (const QList< QString > &inputList)
 Convert a QList of QString into a std list of string. More...
 
static QList< QString > stdListOfStringToQt (const std::vector< std::string > &inputList)
 Convert a simple std list of string into a QList of QString. More...
 

Detailed Description

DicomParser allows one to parse a directory DICOM files looking for studies and series.

Note
This class is part of the model (in the MVP pattern) of the DICOM COMPONENT

Constructor & Destructor Documentation

DicomParser::DicomParser ( )
inline
virtual DicomParser::~DicomParser ( )
inlinevirtual

Default Destructor.

Member Function Documentation

QDate DicomParser::getAcquisitionDate ( const std::vector< std::string > &  serieFileNames)
staticprivate

Retrieve the SERIE acquisition date.

Parameters
serieFileNamesThe filenames belonging to a single serie.
Returns
the acquisition date of this SERIE.

Referenced by parseDirectory().

QTime DicomParser::getAcquisitionTime ( const std::vector< std::string > &  serieFileNames)
staticprivate

Retrieve the SERIE acquisition time.

Parameters
serieFileNamesThe filenames belonging to a single serie.
Returns
the acquisition time of this SERIE.

Referenced by parseDirectory().

QString DicomParser::getPatientName ( const std::vector< std::string > &  serieFileNames)
staticprivate

Retrieve the patient name information from the input files.

Parameters
serieFileNamesThe filenames belonging to a single serie.
Returns
the patient name.

Referenced by parseDirectory().

QString DicomParser::getSerieDescription ( const std::vector< std::string > &  serieFileNames)
staticprivate

Retrieve the serie description.

Parameters
serieFileNamesThe filenames belonging to a single serie.
Returns
the serie description.

Referenced by parseDirectory().

QString DicomParser::getSerieName ( const std::vector< std::string > &  serieFileNames)
staticprivate

Retrieve the serie name.

Parameters
serieFileNamesThe filenames belonging to a single serie.
Returns
the serie name.

Referenced by parseDirectory().

QString DicomParser::getStudyName ( const std::vector< std::string > &  serieFileNames)
staticprivate

Retrieve the study name.

Parameters
serieFileNamesThe filenames belonging to a single serie.
Returns
the study name.

Referenced by parseDirectory().

QList< DicomSerie * > DicomParser::parseDirectory ( const QString &  directory)
static
std::vector< std::string > DicomParser::qtListOfStringToStd ( const QList< QString > &  inputList)
staticprivate

Convert a QList of QString into a std list of string.

Parameters
inputListQList of QString to convert.
Returns
std list of string version of the input Qt list.
QList< QString > DicomParser::stdListOfStringToQt ( const std::vector< std::string > &  inputList)
staticprivate

Convert a simple std list of string into a QList of QString.

Parameters
inputListstd list of string to convert.
Returns
QList of QString version of the input std list.

Referenced by parseDirectory().


The documentation for this class was generated from the following files: