SiemensASCIIConvertParser Class Reference

Provides by-name access to values of the ASCIIConvert-Part of a Siemens proprietary MR Spectroscopy dataset. More...

#include <SiemensASCIIConvertParser.h>

List of all members.

Public Member Functions

 SiemensASCIIConvertParser (DCMTree::Const_TreePtr treePtr)
 Initialization with DICOM Tree.
 SiemensASCIIConvertParser (ml::PagedImg *pImg)
 Initialization with ML image DicomTreeImagePropertyExtension must exist in the images property container.
std::string getStringValueFor (std::string key)
 Returns a std::string for the given key (regardless of datatype stored).
double getDoubleValueFor (std::string key)
 Tries to return a double value parsed from the string stored for the given key.
bool isMapValid ()
 Return state of key-value map.

Static Public Member Functions

static DCMTree::Const_TagPtr getSpectASCIITag (DCMTree::Const_TreePtr treePtr)
 Returns an ASCII tag describing spectroscopy data or return an empty default tag pointer.


Detailed Description

Provides by-name access to values of the ASCIIConvert-Part of a Siemens proprietary MR Spectroscopy dataset.

Definition at line 54 of file SiemensASCIIConvertParser.h.


Constructor & Destructor Documentation

SiemensASCIIConvertParser::SiemensASCIIConvertParser ( DCMTree::Const_TreePtr  treePtr  ) 

Initialization with DICOM Tree.

SiemensASCIIConvertParser::SiemensASCIIConvertParser ( ml::PagedImg pImg  ) 

Initialization with ML image DicomTreeImagePropertyExtension must exist in the images property container.


Member Function Documentation

double SiemensASCIIConvertParser::getDoubleValueFor ( std::string  key  ) 

Tries to return a double value parsed from the string stored for the given key.

Returns:
parse result (can be meaningless, if value stored at key is not a double) or 0.0 if key not in map.

static DCMTree::Const_TagPtr SiemensASCIIConvertParser::getSpectASCIITag ( DCMTree::Const_TreePtr  treePtr  )  [static]

Returns an ASCII tag describing spectroscopy data or return an empty default tag pointer.

std::string SiemensASCIIConvertParser::getStringValueFor ( std::string  key  ) 

Returns a std::string for the given key (regardless of datatype stored).

bool SiemensASCIIConvertParser::isMapValid (  ) 

Return state of key-value map.

Returns:
false, if no map was read (e.g. if DICOM2007 data), true, if at least one element was read.


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

Generated on Sat Sep 3 18:39:32 2011 for MeVisLab Toolbox Reference by  doxygen 1.5.8