32 #include <ThirdPartyWarningsDisable.h>
33 #include <gdcmTypes.h>
34 #include <gdcmDataSet.h>
35 #include <gdcmCSAElement.h>
36 #include <ThirdPartyWarningsRestore.h>
76 CSADecoder(): InternalDataSet(), InternalType(UNKNOWN), InterfileData(nullptr) {};
92 void Print(std::ostream &os)
const;
95 const DataSet&
GetDataSet()
const {
return InternalDataSet; }
115 std::set<CSAElement> InternalCSADataSet;
117 DataSet InternalDataSet;
119 CSAHeaderType InternalType;
123 const char *InterfileData;
125 std::string reportString;
Class CSADecoder adopted from gdcm implementation to decode Siemens CSA DICOM header tags.
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)
const std::set< CSAElement > & getInternalCSADataSet() const
wsp: Added access function to traverse all private elements. I wonder why this is not available norma...
CSAHeaderType GetFormat() const
return the format of the CSADecoder SV10 and NOMAGIC are equivalent.
static VR GetVRFromDataSetFormatDict(const Tag &t)
Helper function to get VR from a DataSet entry if Format is DATASET_FORMAT.
bool LoadFromDataElement(DataElement const &de)
Decode the CSADecoder from element 'de'.
CSAHeaderType
Divers format of CSADecoder as found 'in the wild'.
const std::string & getReportString() const
Returns information about the reason why decoding failed.
Namespace of the Grassroots DICOM library.
std::ostream & operator<<(std::ostream &os, const CSADecoder &d)
Print operator streaming out the CSADecoder.