gdcmHeader(bool exception_on_error = false);
gdcmHeader(const char *filename,
bool exception_on_error = false,
- bool enable_sequences = false);
+ bool enable_sequences = false,
+ bool skip_shadow = false);
virtual ~gdcmHeader();
// Standard values and informations contained in the header
+ virtual bool IsReadable(void);
bool IsJPEGBaseLineProcess1TransferSyntax(void);
bool IsJPEGExtendedProcess2_4TransferSyntax(void);
bool IsJPEGExtendedProcess3_5TransferSyntax(void);
// Some heuristic based accessors, end user intended
// (to be move to gdcmHeaderHelper?)
- int GetXSize(void);
+ int GetXSize(void);
int GetYSize(void);
int GetZSize(void);
int GetBitsStored(void);
// TODO Swig int SetPubDict(std::string filename);
// Entry
- inline virtual std::string GetEntryByName (std::string tagName)
- { return(gdcmParser::GetEntryByName(tagName)); }
- inline virtual std::string GetEntryVRByName (std::string tagName)
- { return(gdcmParser::GetEntryVRByName(tagName)); }
+
inline virtual std::string GetEntryByNumber (guint16 group, guint16 element)
{ return(gdcmParser::GetEntryByNumber(group,element)); }
inline virtual std::string GetEntryVRByNumber(guint16 group, guint16 element)
{ return(gdcmParser::GetEntryVRByNumber(group,element)); }
-
- inline virtual bool SetEntryByName(std::string content,std::string tagName)
- { return(gdcmParser::SetEntryByName(content,tagName)); }
+
+ inline virtual std::string GetEntryByName (std::string tagName)
+ { return(gdcmParser::GetEntryByName(tagName)); }
+ inline virtual std::string GetEntryVRByName (std::string tagName)
+ { return(gdcmParser::GetEntryVRByName(tagName)); }
+
inline virtual bool SetEntryByNumber(std::string content,guint16 group, guint16 element)
{ return(gdcmParser::SetEntryByNumber(content,group,element)); }
+ inline virtual bool SetEntryByName(std::string content,std::string tagName)
+ { return(gdcmParser::SetEntryByName(content,tagName)); }
+ inline virtual bool SetEntryLengthByNumber(guint32 l,guint16 group, guint16 element)
+ { return(gdcmParser::SetEntryLengthByNumber(l,group,element)); }
+
+ inline virtual void UpdateShaEntries(void)
+ { gdcmParser::UpdateShaEntries(); }
// Read (used in gdcmFile)
void SetImageDataSize(size_t ExpectedSize);
+ bool operator<(gdcmHeader &header);
+
protected:
int write(std::ostream&);
int anonymize(std::ostream&); // FIXME : anonymize should be a friend ?
-
+ bool anonymizeHeader(void);
private:
+
};
//-----------------------------------------------------------------------------