MeVisLab Toolbox 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 DataSet & | GetDataSet () const |
Return the DataSet output (use only if Format == DATASET_FORMAT ) | |
const char * | GetInterfile () 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. | |
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.
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.
|
inline |
Definition at line 76 of file mlCSADecoder.h.
Return the DataSet output (use only if Format == DATASET_FORMAT )
Definition at line 95 of file mlCSADecoder.h.
CSAHeaderType gdcm::CSADecoder::GetFormat | ( | ) | const |
return the format of the CSADecoder SV10 and NOMAGIC are equivalent.
Return the string output (use only if Format == Interfile)
Definition at line 98 of file mlCSADecoder.h.
|
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.
|
inline |
Returns information about the reason why decoding failed.
Definition at line 111 of file mlCSADecoder.h.
Helper function to get VR from a DataSet entry if Format is DATASET_FORMAT.
bool gdcm::CSADecoder::LoadFromDataElement | ( | DataElement const & | de | ) |
Decode the CSADecoder from element 'de'.
void gdcm::CSADecoder::Print | ( | std::ostream & | os | ) | const |
Print the CSADecoder (use only if Format == SV10 or NOMAGIC)
|
friend |
Print operator streaming out the CSADecoder.
Definition at line 130 of file mlCSADecoder.h.