Program: gdcm
Module: $RCSfile: gdcmDocument.cxx,v $
Language: C++
- Date: $Date: 2004/06/23 16:22:21 $
- Version: $Revision: 1.30 $
+ Date: $Date: 2004/06/23 16:34:36 $
+ Version: $Revision: 1.31 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* \brief Get the public dictionary used
*/
gdcmDict *gdcmDocument::GetPubDict(void) {
- return(RefPubDict);
+ return RefPubDict;
}
/**
* \brief Get the shadow dictionary used
*/
gdcmDict *gdcmDocument::GetShaDict(void) {
- return(RefShaDict);
+ return RefShaDict;
}
/**
*/
bool gdcmDocument::SetShaDict(gdcmDict *dict){
RefShaDict=dict;
- return(!RefShaDict);
+ return !RefShaDict;
}
/**
*/
bool gdcmDocument::SetShaDict(DictKey dictName){
RefShaDict=gdcmGlobal::GetDicts()->GetDict(dictName);
- return(!RefShaDict);
+ return !RefShaDict;
}
/**
bool gdcmDocument::IsReadable(void) {
if(Filetype==gdcmUnknown) {
dbg.Verbose(0, "gdcmDocument::IsReadable: wrong filetype");
- return(false);
+ return false;
}
if(!tagHT.empty()<=0) {
dbg.Verbose(0, "gdcmDocument::IsReadable: no tags in internal"
" hash table.");
- return(false);
+ return false;
}
return(true);
{
return ( IsGivenTransferSyntax(UI1_2_840_10008_1_2_4_55)
|| IsGivenTransferSyntax(UI1_2_840_10008_1_2_4_57)
- || IsGivenTransferSyntax(UI1_2_840_10008_1_2_4_70) ); // was 90
+ || IsGivenTransferSyntax(UI1_2_840_10008_1_2_4_70) );
}
/**
dbg.Error(" gdcmDocument::SwapLong : unset swap code");
a=0;
}
- return(a);
+ return a;
}
/**
* @return The properly unswaped 32 bits integer.
*/
guint32 gdcmDocument::UnswapLong(guint32 a) {
- return (SwapLong(a));
+ return SwapLong(a);
}
/**
guint16 gdcmDocument::SwapShort(guint16 a) {
if ( (sw==4321) || (sw==2143) )
a =(((a<<8) & 0x0ff00) | ((a>>8)&0x00ff));
- return (a);
+ return a;
}
/**
* @return The properly unswaped 16 bits integer.
*/
guint16 gdcmDocument::UnswapShort(guint16 a) {
- return (SwapShort(a));
+ return SwapShort(a);
}
//-----------------------------------------------------------------------------
l, delim_mode);
(void)lgt; //not used...
}
- // FIXME : on en fait quoi, de lgt ?
set->AddEntry(sq);
if ( !delim_mode && ftell(fp)-offset >= l_max)
{
}
delete NewDocEntry;
}
- return l; // ??
+ return l; // Probably useless
}
/**
}
}
lgth = ftell(fp) - offset;
- return(lgth);
+ return lgth;
}
/**
Entry->SetDictEntry(NewTag);
}
- // Heuristic: well some files are really ill-formed.
+ // Heuristic: well, some files are really ill-formed.
if ( length16 == 0xffff)
{
length16 = 0;
- //dbg.Verbose(0, "gdcmDocument::FindLength",
- // "Erroneous element length fixed.");
- // Actually, length= 0xffff means that we deal with
- // Unknown Sequence Length
+ // Length16= 0xffff means that we deal with
+ // 'Unknown Length' Sequence
}
FixDocEntryFoundLength(Entry, (guint32)length16);
return;
"UL","FIXME","Group Length");
Entry->SetDictEntry(NewEntry);
}
- return(false);
+ return false;
}
if ( Entry->IsVRUnknown() )
vr,"FIXME",Entry->GetName());
Entry->SetDictEntry(NewEntry);
}
- return(true);
+ return true;
}
/**
#ifdef GDCM_NO_ANSI_STRING_STREAM
s << std::ends; // to avoid oddities on Solaris
#endif //GDCM_NO_ANSI_STRING_STREAM
- return(s.str());
+ return s.str();
}
- return(((gdcmValEntry *)Entry)->GetValue());
+ return ((gdcmValEntry *)Entry)->GetValue();
}
/**
#ifdef GDCM_NO_ANSI_STRING_STREAM
s << std::ends; // to avoid oddities on Solaris
#endif //GDCM_NO_ANSI_STRING_STREAM
- return(s.str());
+ return s.str();
}
- return(((gdcmValEntry *)Entry)->GetValue());
+ return ((gdcmValEntry *)Entry)->GetValue();
}
/**