]> Creatis software - gdcm.git/blobdiff - src/gdcmDataEntry.h
We don't switch any longer to ImplicitVR when undocumented DataElement is found
[gdcm.git] / src / gdcmDataEntry.h
index 1b9aba72dc86437a185a52ff689a6a7effd6d1e6..d06093a9266f0e107f11ebdadc2dd54ef9704f6b 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDataEntry.h,v $
   Language:  C++
-  Date:      $Date: 2006/04/11 16:03:26 $
-  Version:   $Revision: 1.14 $
+  Date:      $Date: 2007/07/04 10:40:56 $
+  Version:   $Revision: 1.17 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -24,7 +24,7 @@
 #include <vector> // for GetDSValue
 #include <iostream>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 /**
@@ -97,7 +97,7 @@ public:
    /// \brief Sets the state (Loaded, NotLoaded, UnFound, ...) of the DataEntry
    void SetState(const TValueState &state) { State = state; }
    /// \brief Returns the state (Loaded, NotLoaded, ...) of the DataEntry
-      const TValueState &GetState() const { return State; }
+   const TValueState &GetState() const { return State; }
    /// \brief true when value Entry not loaded  
    bool IsNotLoaded() { return State == STATE_NOTLOADED; }
    /// \brief true if Entry not found  
@@ -144,7 +144,8 @@ protected:
    bool SelfArea;
    /// \brief  std::string representable value of the Entry. 
    ///        Parts of a multivaluated data are separated by back-slash
-   mutable std::string StrArea;
+   //mutable std::string StrArea;
+   mutable std::string *StrArea; // to avoid allocating useless std::string
 
 private:
    /// \brief 0 for straight entries, FLAG_PIXELDATA for Pixel Data entries