]> Creatis software - gdcm.git/blobdiff - src/gdcmFileHelper.h
Comments
[gdcm.git] / src / gdcmFileHelper.h
index ceeae46d50907b1e1070979be884ba04c0a61195..327431ba5193a3e64202d348fa0911de455fa703 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmFileHelper.h,v $
   Language:  C++
-  Date:      $Date: 2005/02/17 11:00:33 $
-  Version:   $Revision: 1.14 $
+  Date:      $Date: 2005/07/08 14:36:48 $
+  Version:   $Revision: 1.18 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -50,14 +50,19 @@ public:
    FileHelper( );
    FileHelper( File *header );
    FileHelper( std::string const &filename );
+   
    virtual ~FileHelper();
 
    void Print(std::ostream &os = std::cout, std::string const &indent = ""); 
 
    /// Accessor to \ref File
    File *GetFile() { return FileInternal; }
+   
 
+   void SetLoadMode(int loadMode);
+   void SetFileName(std::string const &fileName);
+   bool Load();
+   
    // File methods
    bool SetValEntry(std::string const &content,
                     uint16_t group, uint16_t elem);
@@ -93,6 +98,8 @@ public:
 
    // LUT
    uint8_t* GetLutRGBA();
+   int GetLutItemNumber();
+   int GetLutItemSize();
 
    // Write mode
 
@@ -152,7 +159,8 @@ protected:
    ValEntry *CopyValEntry(uint16_t group, uint16_t elem);
    BinEntry *CopyBinEntry(uint16_t group, uint16_t elem, 
                           const std::string &vr);
-   void CheckMetaElements();
+   void CheckMandatoryElements();
+   void RestoreWriteMandatory();
 
 private:
    void Initialize();