Program: gdcm
Module: $RCSfile: gdcmDicomDir.cxx,v $
Language: C++
- Date: $Date: 2007/05/23 14:18:08 $
- Version: $Revision: 1.193 $
+ Date: $Date: 2008/02/13 18:53:33 $
+ Version: $Revision: 1.197 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
std::ofstream *fp = new std::ofstream(fileName.c_str(),
std::ios::out | std::ios::binary);
- if ( !fp )
+ if ( !fp )
{
gdcmWarningMacro("Failed to open(write) File: " << fileName.c_str());
return false;
binary_write( *fp, "DICM");
DicomDirMeta *ptrMeta = GetMeta();
- ptrMeta->WriteContent(fp, ExplicitVR);
+ ptrMeta->WriteContent(fp, ExplicitVR, true, false);
// force writing 0004|1220 [SQ ], that CANNOT exist within DicomDirMeta
for(i=0;i<6;++i)
cc != Patients.end();
++cc )
{
- (*cc)->WriteContent( fp, ExplicitVR );
+ (*cc)->WriteContent( fp, ExplicitVR, false, true );
}
// force writing Sequence Delimitation Item
gdcmErrorMacro( "Add PatientToEnd failed");
}
}
- /// \to do : deal with PRIVATE (not so easy, since PRIVATE appears
+ /// \todo : deal with PRIVATE (not so easy, since PRIVATE appears
/// at different levels ?!? )
else if ( v == "PRIVATE " ) // for SIEMENS 'CSA Non Image'