Program: gdcm
Module: $RCSfile: gdcmDicomDir.cxx,v $
Language: C++
- Date: $Date: 2006/02/16 20:06:13 $
- Version: $Revision: 1.186 $
+ Date: $Date: 2006/05/30 08:10:19 $
+ Version: $Revision: 1.189 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
NewMeta();
}
-#ifndef GDCM_LEGACY_REMOVE
+//#ifndef GDCM_LEGACY_REMOVE
/**
* \brief Constructor Parses recursively the directory and creates the DicomDir
* or uses an already built DICOMDIR, depending on 'parseDir' value.
* @deprecated use : new DicomDir() + [ SetLoadMode(lm) + ] SetDirectoryName(name)
* or : new DicomDir() + SetFileName(name)
*/
+ /*
DicomDir::DicomDir(std::string const &fileName, bool parseDir ):
Document( )
{
SetFileName( fileName );
Load( );
}
-#endif
+*/
+//#endif
/**
* \brief Canonical destructor
}
return DoTheLoadingJob( );
}
-#ifndef GDCM_LEGACY_REMOVE
+//#ifndef GDCM_LEGACY_REMOVE
/**
* \brief Loader. (DEPRECATED : kept not to break the API)
* @param fileName file to be open for parsing
* or no tag was found.
* @deprecated use SetFileName(n) + Load() instead
*/
+ /*
bool DicomDir::Load(std::string const &fileName )
{
// We should clean out anything that already exists.
}
return DoTheLoadingJob( );
}
-#endif
+*/
+//#endif
/**
* \brief Does the Loading Job (internal use only)
ListDicomDirElem elemList;
ListDicomDirElem::const_iterator it;
uint16_t tmpGr, tmpEl;
- DictEntry *dictEntry;
+ //DictEntry *dictEntry;
DataEntry *entry;
std::string val;
SQItem *si;
{
tmpGr = it->Group;
tmpEl = it->Elem;
- dictEntry = GetPubDict()->GetEntry(tmpGr, tmpEl);
-
- entry = DataEntry::New( dictEntry );
+ //dictEntry = GetPubDict()->GetEntry(tmpGr, tmpEl);
+ //entry = DataEntry::New( dictEntry );
+
+ entry = DataEntry::New(tmpGr, tmpEl, GDCM_VRUNKNOWN); /// \todo : modify dicomelements file, to store VR
entry->SetOffset(0); // just to avoid further missprinting
if ( header )