Program: gdcm
Module: $RCSfile: gdcmDocEntrySet.cxx,v $
Language: C++
- Date: $Date: 2004/06/22 13:47:33 $
- Version: $Revision: 1.10 $
+ Date: $Date: 2004/06/22 14:02:31 $
+ Version: $Revision: 1.11 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
// an remove gdcmDocument::NewDocEntryByNumber
gdcmDocEntry *gdcmDocEntrySet::NewDocEntryByNumber(guint16 group,
guint16 elem) {
-
+
// Find out if the tag we encountered is in the dictionaries:
gdcmDict *PubDict=gdcmGlobal::GetDicts()->GetDefaultPubDict();
gdcmDictEntry *DictEntry = (*PubDict).GetDictEntryByNumber(group, elem);
"failed to allocate gdcmDocEntry");
return (gdcmDocEntry*)0;
}
- return NewEntry;
+ return NewEntry;
}
/// \brief
gdcmDocEntry *gdcmDocEntrySet::NewDocEntryByName (std::string Name) {
- gdcmDict *PubDict=gdcmGlobal::GetDicts()->GetDefaultPubDict();
+ gdcmDict *PubDict=gdcmGlobal::GetDicts()->GetDefaultPubDict();
gdcmDictEntry *NewTag = (*PubDict).GetDictEntryByName(Name);
if (!NewTag)
NewTag = NewVirtualDictEntry(0xffff, 0xffff, "LO", "unkn", Name);
"failed to allocate gdcmDocEntry");
return (gdcmDocEntry *)0;
}
- return NewEntry;
+ return NewEntry;
}
gdcmDictEntry *gdcmDocEntrySet::GetDictEntryByName(std::string Name)
{
gdcmDictEntry *found = (gdcmDictEntry *)0;
- gdcmDict *PubDict=gdcmGlobal::GetDicts()->GetDefaultPubDict();
+ gdcmDict *PubDict=gdcmGlobal::GetDicts()->GetDefaultPubDict()
if (!PubDict)
{
dbg.Verbose(0, "gdcmDocument::GetDictEntry",
gdcmDictEntry *gdcmDocEntrySet::GetDictEntryByNumber(guint16 group,guint16 element)
{
gdcmDictEntry *found = (gdcmDictEntry *)0;
- gdcmDict *PubDict=gdcmGlobal::GetDicts()->GetDefaultPubDict();
+ gdcmDict *PubDict=gdcmGlobal::GetDicts()->GetDefaultPubDict();
if (!PubDict)
{
dbg.Verbose(0, "gdcmDocument::GetDictEntry",
Program: gdcm
Module: $RCSfile: gdcmDocument.cxx,v $
Language: C++
- Date: $Date: 2004/06/22 13:47:33 $
- Version: $Revision: 1.22 $
+ Date: $Date: 2004/06/22 14:07:05 $
+ Version: $Revision: 1.23 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* if ( filetype == ACR)
* UpdateGroupLength(true,ACR);
*/
-
- Write(fp,filetype); // the gdcmElementSet one !
+
+ Write(fp,filetype); // the gdcmElementSet one !
/// WriteEntries(fp,type); // old stuff
return true;
guint16 Elem)
{
gdcmDocEntry* a;
- gdcmBinEntry* b;
+ gdcmBinEntry* b;
a = GetDocEntryByNumber( Group, Elem);
if (a == NULL) {
a =NewBinEntryByNumber(Group, Elem);
if (a == NULL)
return NULL;
- b = new gdcmBinEntry(a);
+ b = new gdcmBinEntry(a);
AddEntry(b);
}
SetEntryByNumber(voidArea, lgth, Group, Elem);
TagKey key = gdcmDictEntry::TranslateToKey(group, element);
if ( ! tagHT.count(key))
return false;
-
+
/* Hope Binray field length is never wrong
if(lgth%2) // Non even length are padded with a space (020H).
{
long offset, long l_max, bool delim_mode)
{
int SQItemNumber = 0;
-
+
gdcmDocEntry *NewDocEntry = (gdcmDocEntry *)0;
gdcmSQItem *itemSQ;
bool dlm_mod;
lgr=ParseDES(itemSQ, NewDocEntry->GetOffset(), l, dlm_mod);
- set->AddEntry(itemSQ,SQItemNumber);
+ set->AddEntry(itemSQ,SQItemNumber);
SQItemNumber ++;
if (!delim_mode && (ftell(fp)-offset) >= l_max) {
break;