]> Creatis software - gdcm.git/blobdiff - src/gdcmHeader.h
adding the UIDs full names
[gdcm.git] / src / gdcmHeader.h
index 2ad78057816677f7b428910537e2bded92137654..33abf811398f7ed07c4417bf5c358d81488c226d 100644 (file)
@@ -1,11 +1,12 @@
-// $Header: /cvs/public/gdcm/src/Attic/gdcmHeader.h,v 1.28 2003/06/20 14:17:47 jpr Exp $
+// $Header: /cvs/public/gdcm/src/Attic/gdcmHeader.h,v 1.34 2003/07/07 10:26:14 regrain Exp $
 
 #ifndef GDCMHEADER_H
 #define GDCMHEADER_H
 
 #include <map>
 #include "gdcmCommon.h"
-#include "gdcmUtil.h"
+#include "gdcmVR.h"
+#include "gdcmTS.h"
 #include "gdcmException.h"
 #include "gdcmDictSet.h"
 #include "gdcmElValue.h"
@@ -105,6 +106,7 @@ protected:
    FileType filetype;
    
    gdcmElValue * GetElValueByNumber(guint16 group, guint16 element);
+   int CheckIfExistByNumber(guint16 Group, guint16 Elem );
 
    guint16 SwapShort(guint16); // needed by gdcmFile
    guint32 SwapLong(guint32);  // for JPEG Files :-(
@@ -131,6 +133,8 @@ public:
    gdcmHeader(const char *filename, bool exception_on_error = false);
    gdcmHeader( bool exception_on_error = false);
    virtual ~gdcmHeader();
+
+   std::string GetFileName(void) {return filename;}
    
    size_t GetPixelOffset(void);
    int    GetSwapCode(void) { return sw; }
@@ -162,20 +166,25 @@ public:
 
    int SetPubElValByName  (std::string content, std::string TagName);
    int SetShaElValByName  (std::string content, std::string ShadowTagName);
+   
    int SetPubElValByNumber(std::string content, guint16 group, guint16 element);
-
    int SetShaElValByNumber(std::string content, guint16 group, guint16 element);
    
    int SetPubElValLengthByNumber(guint32 lgr, guint16 group, guint16 element);                                   
 
    int ReplaceOrCreateByNumber(std::string Value, guint16 Group, guint16 Elem); 
-   int ReplaceOrCreateByNumber(char * Value,      guint16 Group, guint16 Elem);                                
+   int ReplaceOrCreateByNumber(     char * Value, guint16 Group, guint16 Elem);                                
                                
    int GetXSize(void);  
    int GetYSize(void);
    int GetZSize(void);
    int GetBitsStored(void);
    int GetSamplesPerPixel(void);
+   
+/* ================ COMMENT OUT after unfreeze
+   int GetPlanarConfiguration(void);
+   ======================================= */
+
    int GetPixelSize(void);       
    std::string GetPixelType(void);