Program: gdcm
Module: $RCSfile: gdcmDocument.cxx,v $
Language: C++
- Date: $Date: 2004/06/24 18:03:14 $
- Version: $Revision: 1.32 $
+ Date: $Date: 2004/06/25 19:37:05 $
+ Version: $Revision: 1.35 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* (ACR-NEMA, ExplicitVR, ImplicitVR)
* \return Always true.
*/
-bool gdcmDocument::WriteF(FileType filetype) {
-/// \todo
+void gdcmDocument::Write(FILE* fp,FileType filetype) {
+///
/// ==============
/// The stuff is rewritten using the SeQuence based
/// tree-like stucture (cf : Print )
/// WARNING : Si on veut ecrire du DICOM V3 a partir d'un DcmHeader ACR-NEMA
/// no way (check : FileType est un champ de gdcmDocument ...)
/// a moins de se livrer a un tres complique ajout des champs manquants.
- /// faire un CheckAndCorrectHeader (?)
-
+ /// faire un CheckAndCorrectHeader (?)
+
if (filetype == gdcmImplicitVR)
{
std::string implicitVRTransfertSyntax = UI1_2_840_10008_1_2;
* UpdateGroupLength(true,ACR);
*/
- gdcmElementSet::Write(fp,filetype);
+ gdcmElementSet::Write(fp,filetype);
- return true;
+ // return true;
}
/**
guint16 Elem)
{
gdcmDocEntry* a;
- gdcmBinEntry* b;
+ gdcmBinEntry* b = 0;
a = GetDocEntryByNumber( Group, Elem);
if (a == NULL) {
a =NewBinEntryByNumber(Group, Elem);
gdcmBinEntry *bn;
gdcmSeqEntry *sq;
VRKey vr;
- unsigned long l;
+ unsigned long l = 0;
int depth;
depth = set->GetDepthLevel();
if (NewDocEntry->GetGroup() == 0x7fe0 &&
NewDocEntry->GetElement() == 0x0010 )
{
- if (NewDocEntry->GetLength()==0xffffffff)
+ if (NewDocEntry->GetReadLength()==0xffffffff)
{
// Broken US.3405.1.dcm
Parse7FE0(); // to skip the pixels
// When we find a BinEntry not very much can be done :
if (gdcmBinEntry* BinEntryPtr = dynamic_cast< gdcmBinEntry* >(Entry) ) {
-
+
LoadEntryVoidArea(BinEntryPtr);
- s << "gdcm::Loaded (BinEntry)";
+ s << "gdcm::Loaded (BinEntry)";
BinEntryPtr->SetValue(s.str());
return;
}