MeVisLab Toolbox Reference
gdcm::CSADecoder Class Reference

Class CSADecoder adopted from gdcm implementation to decode Siemens CSA DICOM header tags. More...

#include <mlCSADecoder.h>

Public Types

enum  CSAHeaderType {
  UNKNOWN = 0 , SV10 , NOMAGIC , DATASET_FORMAT ,
  INTERFILE , ZEROED_OUT
}
 Divers format of CSADecoder as found 'in the wild'. More...
 

Public Member Functions

 CSADecoder ()
 
bool LoadFromDataElement (DataElement const &de)
 Decode the CSADecoder from element 'de'.
 
void Print (std::ostream &os) const
 Print the CSADecoder (use only if Format == SV10 or NOMAGIC)
 
const DataSetGetDataSet () const
 Return the DataSet output (use only if Format == DATASET_FORMAT )
 
const charGetInterfile () const
 Return the string output (use only if Format == Interfile)
 
CSAHeaderType GetFormat () const
 return the format of the CSADecoder SV10 and NOMAGIC are equivalent.
 
const std::set< CSAElement > & getInternalCSADataSet () const
 wsp: Added access function to traverse all private elements. I wonder why this is not available normally.
 
const std::string & getReportString () const
 Returns information about the reason why decoding failed.
 

Static Public Member Functions

static VR GetVRFromDataSetFormatDict (const Tag &t)
 Helper function to get VR from a DataSet entry if Format is DATASET_FORMAT.
 

Friends

std::ostream & operator<< (std::ostream &_os, const CSADecoder &d)
 Print operator streaming out the CSADecoder.
 

Detailed Description

Class CSADecoder adopted from gdcm implementation to decode Siemens CSA DICOM header tags.

SIEMENS store private information in tag (0x0029,0x10,"SIEMENS CSA HEADER") this class is meant for user wishing to access values stored within this private attribute. There are basically two main 'format' for this attribute : SV10/NOMAGIC and DATASET_FORMAT SV10 and NOMAGIC are from a user prospective identical, see CSAHeader.xml for possible name / value stored in this format. DATASET_FORMAT is in fact simply just another DICOM dataset (implicit) with -currently unknown- value. This can be only be printed for now.

MrEvaProtocol in 29,1020 contains ^M that would be nice to get rid of on UNIX system...

External references: 5.1.3.2.4.1 MEDCOM History Information and 5.1.4.3 CSA Non-Image Module in http://tamsinfo.toshiba.com/docrequest/pdf/E.Soft_v2.0.pdf

Definition at line 71 of file mlCSADecoder.h.

Member Enumeration Documentation

◆ CSAHeaderType

Divers format of CSADecoder as found 'in the wild'.

Enumerator
UNKNOWN 
SV10 
NOMAGIC 
DATASET_FORMAT 
INTERFILE 
ZEROED_OUT 

Definition at line 79 of file mlCSADecoder.h.

Constructor & Destructor Documentation

◆ CSADecoder()

gdcm::CSADecoder::CSADecoder ( )
inline

Definition at line 76 of file mlCSADecoder.h.

Member Function Documentation

◆ GetDataSet()

const DataSet & gdcm::CSADecoder::GetDataSet ( ) const
inline

Return the DataSet output (use only if Format == DATASET_FORMAT )

Definition at line 95 of file mlCSADecoder.h.

◆ GetFormat()

CSAHeaderType gdcm::CSADecoder::GetFormat ( ) const

return the format of the CSADecoder SV10 and NOMAGIC are equivalent.

◆ GetInterfile()

const char * gdcm::CSADecoder::GetInterfile ( ) const
inline

Return the string output (use only if Format == Interfile)

Definition at line 98 of file mlCSADecoder.h.

◆ getInternalCSADataSet()

const std::set< CSAElement > & gdcm::CSADecoder::getInternalCSADataSet ( ) const
inline

wsp: Added access function to traverse all private elements. I wonder why this is not available normally.

Definition at line 108 of file mlCSADecoder.h.

◆ getReportString()

const std::string & gdcm::CSADecoder::getReportString ( ) const
inline

Returns information about the reason why decoding failed.

Definition at line 111 of file mlCSADecoder.h.

◆ GetVRFromDataSetFormatDict()

static VR gdcm::CSADecoder::GetVRFromDataSetFormatDict ( const Tag & t)
static

Helper function to get VR from a DataSet entry if Format is DATASET_FORMAT.

◆ LoadFromDataElement()

bool gdcm::CSADecoder::LoadFromDataElement ( DataElement const & de)

Decode the CSADecoder from element 'de'.

◆ Print()

void gdcm::CSADecoder::Print ( std::ostream & os) const

Print the CSADecoder (use only if Format == SV10 or NOMAGIC)

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & _os,
const CSADecoder & d )
friend

Print operator streaming out the CSADecoder.

Definition at line 130 of file mlCSADecoder.h.


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