]> Creatis software - gdcm.git/blobdiff - src/gdcmDocument.cxx
string "gdcm::Loaded (BinEntry)" replaced by GDCM_BINLOADED
[gdcm.git] / src / gdcmDocument.cxx
index 543315b9a869c3094a90deea38e15b0cd4675c1a..954b5e4096bb5e2568a7d5773ed88602d910a021 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocument.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/09/21 10:46:10 $
-  Version:   $Revision: 1.83 $
+  Date:      $Date: 2004/09/22 10:34:53 $
+  Version:   $Revision: 1.86 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -694,7 +694,7 @@ gdcmBinEntry * gdcmDocument::ReplaceOrCreateByNumber(
 
       if (!dictEntry)
       {
-         currentEntry = NewDocEntryByNumber(group, elem,VR);
+         currentEntry = NewDocEntryByNumber(group, elem, VR);
       }
       else
       {
@@ -1010,6 +1010,7 @@ bool gdcmDocument::SetEntryByNumber(void *content,
    gdcmBinEntry* a = (gdcmBinEntry *)TagHT[key];           
    a->SetVoidArea(content);  
    a->SetLength(lgth);
+   a->SetValue(GDCM_BINLOADED);
 
    return true;
 } 
@@ -1397,6 +1398,7 @@ long gdcmDocument::ParseDES(gdcmDocEntrySet *set,
             // hierarchy and the Key is simply of the form ( group, elem )...
             if (gdcmDocument* dummy = dynamic_cast< gdcmDocument* > ( set ) )
             {
+               (void)dummy;
                newValEntry->SetKey( newValEntry->GetKey() );
             }
             // ...but when "set" is a gdcmSQItem, we are inserting this new
@@ -1437,6 +1439,7 @@ long gdcmDocument::ParseDES(gdcmDocEntrySet *set,
             // form ( group, elem )...
             if (gdcmDocument* dummy = dynamic_cast< gdcmDocument* > ( set ) )
             {
+               (void)dummy;
                newBinEntry->SetKey( newBinEntry->GetKey() );
             }
             // but when "this" is a SQItem, we are inserting this new
@@ -1501,6 +1504,7 @@ long gdcmDocument::ParseDES(gdcmDocEntrySet *set,
          // level of one:
          if (gdcmDocument* dummy = dynamic_cast< gdcmDocument* > ( set ) )
          {
+            (void)dummy;
             newSeqEntry->SetDepthLevel( 1 );
             newSeqEntry->SetKey( newSeqEntry->GetKey() );
          }
@@ -1666,7 +1670,7 @@ void gdcmDocument::LoadDocEntry(gdcmDocEntry* entry)
    // When we find a BinEntry not very much can be done :
    if (gdcmBinEntry* binEntryPtr = dynamic_cast< gdcmBinEntry* >(entry) )
    {
-      s << "gdcm::Loaded (BinEntry)";
+      s << GDCM_BINLOADED;
       binEntryPtr->SetValue(s.str());
       LoadEntryVoidArea(binEntryPtr); // last one, not to erase length !
       return;
@@ -2995,8 +2999,8 @@ void gdcmDocument::BuildFlatHashTableRecurse( TagDocEntryHT& builtHT,
  *        Dicom entries in a flat structure (a \ref TagDocEntryHT i.e. a
  *        std::map<>).
  * \warning Of course there is NO integrity constrain between the 
- *        returned \ref TagDocEntryHT and the \ref gdcmElemenSet used
- *        to build it. Hence if the underlying \ref gdcmElemenSet is
+ *        returned \ref TagDocEntryHT and the \ref gdcmElementSet used
+ *        to build it. Hence if the underlying \ref gdcmElementSet is
  *        altered, then it is the caller responsability to invoke 
  *        \ref BuildFlatHashTable again...
  * @return The flat std::map<> we juste build.