MeVisLab Toolbox Reference
SiemensASCIIConvertParser Class Reference

Deprecated helper class SiemensASCIIConvertParser to partially decode Siemens ASCII CSAHeader contents and providing by-name access to values of the ASCIIConvert-Part of a Siemens proprietary MR Spectroscopy data set. More...

#include <SiemensASCIIConvertParser.h>

Public Member Functions

 SiemensASCIIConvertParser (DCMTree::Const_TreePtr treePtr)
 Initialization with DICOM Tree.
 
 SiemensASCIIConvertParser (DCMTree::Const_TagPtr tagPtr)
 Initialization with DICOM Tag, assuming that it is the SpectASCIITag of Siemens with private creator SIEMENS MEDCOM HEADER.
 
 SiemensASCIIConvertParser (ml::PagedImage *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 data type 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.
 
const std::map< std::string, std::string > & getValueMap () const
 Return the tag map itself.
 

Static Public Member Functions

static bool isSpectASCIITagId (DCMTree::Const_TagPtr tagPtr)
 Returns true if tag id with ASCII tag matches, otherwise false.
 
static std::string getASCIIString (DCMTree::Const_TagPtr tagPtr)
 Reads the Siemens specific ASCII header to be parsed for spectroscopy information.
 
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

Deprecated helper class SiemensASCIIConvertParser to partially decode Siemens ASCII CSAHeader contents and providing by-name access to values of the ASCIIConvert-Part of a Siemens proprietary MR Spectroscopy data set.

Definition at line 43 of file SiemensASCIIConvertParser.h.

Constructor & Destructor Documentation

◆ SiemensASCIIConvertParser() [1/3]

SiemensASCIIConvertParser::SiemensASCIIConvertParser ( DCMTree::Const_TreePtr treePtr)

Initialization with DICOM Tree.

◆ SiemensASCIIConvertParser() [2/3]

SiemensASCIIConvertParser::SiemensASCIIConvertParser ( DCMTree::Const_TagPtr tagPtr)

Initialization with DICOM Tag, assuming that it is the SpectASCIITag of Siemens with private creator SIEMENS MEDCOM HEADER.

◆ SiemensASCIIConvertParser() [3/3]

SiemensASCIIConvertParser::SiemensASCIIConvertParser ( ml::PagedImage * pImg)

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

Member Function Documentation

◆ getASCIIString()

static std::string SiemensASCIIConvertParser::getASCIIString ( DCMTree::Const_TagPtr tagPtr)
static

Reads the Siemens specific ASCII header to be parsed for spectroscopy information.

◆ getDoubleValueFor()

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.

◆ getSpectASCIITag()

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.

◆ getStringValueFor()

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

Returns a std::string for the given key (regardless of data type stored)

◆ getValueMap()

const std::map< std::string, std::string > & SiemensASCIIConvertParser::getValueMap ( ) const
inline

Return the tag map itself.

Definition at line 79 of file SiemensASCIIConvertParser.h.

◆ isMapValid()

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.

◆ isSpectASCIITagId()

static bool SiemensASCIIConvertParser::isSpectASCIITagId ( DCMTree::Const_TagPtr tagPtr)
static

Returns true if tag id with ASCII tag matches, otherwise false.


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