+2004-11-25 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
+ * src/ : fix compilation warnings for the Write method (2 different
+ proto). So Rename 'Write(ifstream* fp' into 'WriteContent(ifstream* fp'
+
2004-11-25 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
* src/gdcmDocument.[h|cxx] : set the Transfert Syntax values to the header
file, to be accessed by other files (like gdcmFile). Remove commented
Program: gdcm
Module: $RCSfile: gdcmBinEntry.cxx,v $
Language: C++
- Date: $Date: 2004/11/24 16:39:18 $
- Version: $Revision: 1.38 $
+ Date: $Date: 2004/11/25 15:46:10 $
+ Version: $Revision: 1.39 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* @param fp already open file pointer
* @param filetype type of the file to be written
*/
-void BinEntry::Write(std::ofstream* fp, FileType filetype)
+void BinEntry::WriteContent(std::ofstream* fp, FileType filetype)
{
- DocEntry::Write(fp, filetype);
+ DocEntry::WriteContent(fp, filetype);
void* binArea = GetBinArea();
int lgr = GetLength();
if (binArea)
Program: gdcm
Module: $RCSfile: gdcmBinEntry.h,v $
Language: C++
- Date: $Date: 2004/11/16 16:20:23 $
- Version: $Revision: 1.25 $
+ Date: $Date: 2004/11/25 15:46:10 $
+ Version: $Revision: 1.26 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
~BinEntry();
void Print( std::ostream &os = std::cout );
- void Write( std::ofstream*, FileType );
+ void WriteContent( std::ofstream*, FileType );
/// \brief Returns the area value of the current Dicom Header Entry
/// when it's not string-translatable (e.g : a LUT table)
Program: gdcm
Module: $RCSfile: gdcmDicomDir.cxx,v $
Language: C++
- Date: $Date: 2004/11/16 16:20:23 $
- Version: $Revision: 1.81 $
+ Date: $Date: 2004/11/25 15:46:10 $
+ Version: $Revision: 1.82 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
binary_write( *fp, "DICM");
DicomDirMeta *ptrMeta = GetDicomDirMeta();
- ptrMeta->Write(fp, ExplicitVR);
+ ptrMeta->WriteContent(fp, ExplicitVR);
// force writing 0004|1220 [SQ ], that CANNOT exist within DicomDirMeta
for(i=0;i<4;++i)
cc != Patients.end();
++cc )
{
- (*cc)->Write( fp, ExplicitVR );
+ (*cc)->WriteContent( fp, ExplicitVR );
}
// force writing Sequence Delimitation Item
Program: gdcm
Module: $RCSfile: gdcmDicomDirMeta.cxx,v $
Language: C++
- Date: $Date: 2004/10/25 03:35:19 $
- Version: $Revision: 1.14 $
+ Date: $Date: 2004/11/25 15:46:10 $
+ Version: $Revision: 1.15 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* \brief Writes the Meta Elements
* @return
*/
-void DicomDirMeta::Write(std::ofstream* fp, FileType t)
+void DicomDirMeta::WriteContent(std::ofstream* fp, FileType t)
{
for (ListDocEntry::iterator i = DocEntries.begin();
i != DocEntries.end();
++i)
{
- (*i)->Write(fp, t);
+ (*i)->WriteContent(fp, t);
}
}
Program: gdcm
Module: $RCSfile: gdcmDicomDirMeta.h,v $
Language: C++
- Date: $Date: 2004/10/22 03:05:41 $
- Version: $Revision: 1.10 $
+ Date: $Date: 2004/11/25 15:46:11 $
+ 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
~DicomDirMeta();
virtual void Print(std::ostream &os = std::cout);
- virtual void Write(std::ofstream * fp, FileType t);
+ virtual void WriteContent(std::ofstream * fp, FileType t);
};
} // end namespace gdcm
//-----------------------------------------------------------------------------
Program: gdcm
Module: $RCSfile: gdcmDicomDirPatient.cxx,v $
Language: C++
- Date: $Date: 2004/10/25 04:08:20 $
- Version: $Revision: 1.18 $
+ Date: $Date: 2004/11/25 15:46:11 $
+ Version: $Revision: 1.19 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* \brief Writes the Object
* @return
*/
-void DicomDirPatient::Write(std::ofstream* fp, FileType t)
+void DicomDirPatient::WriteContent(std::ofstream* fp, FileType t)
{
- DicomDirObject::Write(fp, t);
+ DicomDirObject::WriteContent(fp, t);
for(ListDicomDirStudy::iterator cc = Studies.begin();
cc!= Studies.end();
++cc )
{
- (*cc)->Write( fp, t );
+ (*cc)->WriteContent( fp, t );
}
}
//-----------------------------------------------------------------------------
Program: gdcm
Module: $RCSfile: gdcmDicomDirPatient.h,v $
Language: C++
- Date: $Date: 2004/10/25 04:08:20 $
- Version: $Revision: 1.12 $
+ Date: $Date: 2004/11/25 15:46:11 $
+ Version: $Revision: 1.13 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
~DicomDirPatient();
void Print(std::ostream &os = std::cout);
- void Write(std::ofstream *fp, FileType t);
+ void WriteContent(std::ofstream *fp, FileType t);
/// Returns the STUDY chained List for this PATIENT.
ListDicomDirStudy const & GetDicomDirStudies() const { return Studies; };
Program: gdcm
Module: $RCSfile: gdcmDicomDirSerie.cxx,v $
Language: C++
- Date: $Date: 2004/10/25 04:08:20 $
- Version: $Revision: 1.20 $
+ Date: $Date: 2004/11/25 15:46:11 $
+ Version: $Revision: 1.21 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* \brief Writes the Object
* @return
*/
-void DicomDirSerie::Write(std::ofstream* fp, FileType t)
+void DicomDirSerie::WriteContent(std::ofstream* fp, FileType t)
{
- DicomDirObject::Write(fp, t);
+ DicomDirObject::WriteContent(fp, t);
for(ListDicomDirImage::iterator cc = Images.begin();
cc!= Images.end();
++cc )
{
- (*cc)->Write( fp, t );
+ (*cc)->WriteContent( fp, t );
}
}
Program: gdcm
Module: $RCSfile: gdcmDicomDirSerie.h,v $
Language: C++
- Date: $Date: 2004/10/25 04:08:20 $
- Version: $Revision: 1.13 $
+ Date: $Date: 2004/11/25 15:46:11 $
+ Version: $Revision: 1.14 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
~DicomDirSerie();
void Print( std::ostream& os = std::cout );
- void Write( std::ofstream* fp, FileType t );
+ void WriteContent( std::ofstream* fp, FileType t );
/**
* \ingroup DicomDirSerie
Program: gdcm
Module: $RCSfile: gdcmDicomDirStudy.cxx,v $
Language: C++
- Date: $Date: 2004/10/25 04:08:20 $
- Version: $Revision: 1.17 $
+ Date: $Date: 2004/11/25 15:46:11 $
+ Version: $Revision: 1.18 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* \brief Writes the Object
* @return
*/
-void DicomDirStudy::Write(std::ofstream* fp, FileType t)
+void DicomDirStudy::WriteContent(std::ofstream* fp, FileType t)
{
- DicomDirObject::Write(fp, t);
+ DicomDirObject::WriteContent(fp, t);
for(ListDicomDirSerie::iterator cc = Series.begin();
cc!= Series.end();
++cc )
{
- (*cc)->Write( fp, t );
+ (*cc)->WriteContent( fp, t );
}
}
Program: gdcm
Module: $RCSfile: gdcmDicomDirStudy.h,v $
Language: C++
- Date: $Date: 2004/10/25 04:08:20 $
- Version: $Revision: 1.12 $
+ Date: $Date: 2004/11/25 15:46:11 $
+ Version: $Revision: 1.13 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
~DicomDirStudy();
void Print(std::ostream &os = std::cout);
- void Write(std::ofstream *fp, FileType t);
+ void WriteContent(std::ofstream *fp, FileType t);
/**
* \ingroup DicomDirStudy
Program: gdcm
Module: $RCSfile: gdcmDocEntry.cxx,v $
Language: C++
- Date: $Date: 2004/11/19 18:49:39 $
- Version: $Revision: 1.32 $
+ Date: $Date: 2004/11/25 15:46:11 $
+ Version: $Revision: 1.33 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* @param fp already open file pointer
* @param filetype type of the file to be written
*/
-void DocEntry::Write(std::ofstream* fp, FileType filetype)
+void DocEntry::WriteContent(std::ofstream* fp, FileType filetype)
{
uint32_t ffff = 0xffffffff;
uint16_t group = GetGroup();
Program: gdcm
Module: $RCSfile: gdcmDocEntry.h,v $
Language: C++
- Date: $Date: 2004/11/16 14:48:19 $
- Version: $Revision: 1.29 $
+ Date: $Date: 2004/11/25 15:46:11 $
+ Version: $Revision: 1.30 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
int GetPrintLevel() { return PrintLevel; };
virtual void Print (std::ostream & os = std::cout);
- virtual void Write(std::ofstream *fp, FileType filetype);
+ virtual void WriteContent(std::ofstream *fp, FileType filetype);
uint32_t GetFullLength();
Program: gdcm
Module: $RCSfile: gdcmDocEntrySet.h,v $
Language: C++
- Date: $Date: 2004/11/16 10:25:53 $
- Version: $Revision: 1.23 $
+ Date: $Date: 2004/11/25 15:46:11 $
+ Version: $Revision: 1.24 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
virtual void Print (std::ostream & os = std::cout) = 0;// pure virtual
/// \brief write any type of entry to the entry set
- virtual void Write (std::ofstream *fp, FileType filetype) = 0;// pure virtual
+ virtual void WriteContent (std::ofstream *fp, FileType filetype) = 0;// pure virtual
virtual DocEntry* GetDocEntryByNumber(uint16_t group,
uint16_t element) = 0;
Program: gdcm
Module: $RCSfile: gdcmDocument.cxx,v $
Language: C++
- Date: $Date: 2004/11/25 13:12:02 $
- Version: $Revision: 1.139 $
+ Date: $Date: 2004/11/25 15:46:11 $
+ Version: $Revision: 1.140 $
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.
*/
-void Document::Write(std::ofstream* fp, FileType filetype)
+void Document::WriteContent(std::ofstream* fp, FileType filetype)
{
/// \todo move the following lines (and a lot of others, to be written)
/// to a future function CheckAndCorrectHeader
* UpdateGroupLength(true,ACR);
*/
- ElementSet::Write(fp, filetype); // This one is recursive
+ ElementSet::WriteContent(fp, filetype); // This one is recursive
}
/**
Program: gdcm
Module: $RCSfile: gdcmDocument.h,v $
Language: C++
- Date: $Date: 2004/11/25 13:12:02 $
- Version: $Revision: 1.63 $
+ Date: $Date: 2004/11/25 15:46:11 $
+ Version: $Revision: 1.64 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
std::ifstream * OpenFile();
bool CloseFile();
- void Write( std::ofstream* fp, FileType type );
+ void WriteContent( std::ofstream* fp, FileType type );
ValEntry* ReplaceOrCreateByNumber(std::string const & value,
uint16_t group, uint16_t elem,
Program: gdcm
Module: $RCSfile: gdcmElementSet.cxx,v $
Language: C++
- Date: $Date: 2004/11/24 10:23:47 $
- Version: $Revision: 1.31 $
+ Date: $Date: 2004/11/25 15:46:11 $
+ Version: $Revision: 1.32 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* from the H Table
* @return
*/
-void ElementSet::Write(std::ofstream* fp, FileType filetype)
+void ElementSet::WriteContent(std::ofstream* fp, FileType filetype)
{
for (TagDocEntryHT::const_iterator i = TagHT.begin();
i != TagHT.end();
++i)
{
- i->second->Write(fp, filetype);
+ i->second->WriteContent(fp, filetype);
}
}
//-----------------------------------------------------------------------------
Program: gdcm
Module: $RCSfile: gdcmElementSet.h,v $
Language: C++
- Date: $Date: 2004/11/24 10:23:47 $
- Version: $Revision: 1.23 $
+ Date: $Date: 2004/11/25 15:46:11 $
+ Version: $Revision: 1.24 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
bool RemoveEntryNoDestroy(DocEntry *EntryToRemove);
void Print(std::ostream &os = std::cout);
- void Write(std::ofstream *fp, FileType filetype);
+ void WriteContent(std::ofstream *fp, FileType filetype);
/// Accessor to \ref TagHT
// Do not expose this to user (public API) !
Program: gdcm
Module: $RCSfile: gdcmHeader.cxx,v $
Language: C++
- Date: $Date: 2004/11/25 13:12:02 $
- Version: $Revision: 1.206 $
+ Date: $Date: 2004/11/25 15:46:11 $
+ Version: $Revision: 1.207 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
RemoveEntryNoDestroy(e);
}
}
- Document::Write(fp,filetype);
+ Document::WriteContent(fp,filetype);
fp->close();
delete fp;
Program: gdcm
Module: $RCSfile: gdcmSQItem.cxx,v $
Language: C++
- Date: $Date: 2004/11/24 16:39:19 $
- Version: $Revision: 1.37 $
+ Date: $Date: 2004/11/25 15:46:11 $
+ Version: $Revision: 1.38 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* \ingroup SQItem
* \brief canonical Writer
*/
-void SQItem::Write(std::ofstream* fp, FileType filetype)
+void SQItem::WriteContent(std::ofstream* fp, FileType filetype)
{
int j;
uint16_t item[4] = { 0xfffe, 0xe000, 0xffff, 0xffff };
break; // FIXME : continue; ?!?
}
- (*it)->Write(fp, filetype);
+ (*it)->WriteContent(fp, filetype);
}
//we force the writting of an 'Item Delimitation' item
Program: gdcm
Module: $RCSfile: gdcmSQItem.h,v $
Language: C++
- Date: $Date: 2004/10/28 03:10:58 $
- Version: $Revision: 1.22 $
+ Date: $Date: 2004/11/25 15:46:11 $
+ 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
~SQItem();
void Print(std::ostream &os = std::cout);
- void Write(std::ofstream *fp, FileType filetype);
+ void WriteContent(std::ofstream *fp, FileType filetype);
/// \brief returns the DocEntry chained List for this SQ Item.
ListDocEntry const & GetDocEntries() const { return DocEntries; };
Program: gdcm
Module: $RCSfile: gdcmSeqEntry.cxx,v $
Language: C++
- Date: $Date: 2004/11/24 16:39:19 $
- Version: $Revision: 1.37 $
+ Date: $Date: 2004/11/25 15:46:11 $
+ Version: $Revision: 1.38 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
/*
* \brief canonical Writer
*/
-void SeqEntry::Write(std::ofstream* fp, FileType filetype)
+void SeqEntry::WriteContent(std::ofstream* fp, FileType filetype)
{
uint16_t seq_term_gr = 0xfffe;
uint16_t seq_term_el = 0xe0dd;
//uint16_t item_term_gr = 0xfffe;
//uint16_t item_term_el = 0xe00d;
- DocEntry::Write(fp, filetype);
+ DocEntry::WriteContent(fp, filetype);
for(ListSQItem::iterator cc = Items.begin();
cc != Items.end();
++cc)
{
- (*cc)->Write(fp, filetype);
+ (*cc)->WriteContent(fp, filetype);
}
// we force the writting of a Sequence Delimitation item
Program: gdcm
Module: $RCSfile: gdcmSeqEntry.h,v $
Language: C++
- Date: $Date: 2004/11/16 02:54:35 $
- Version: $Revision: 1.23 $
+ Date: $Date: 2004/11/25 15:46:12 $
+ Version: $Revision: 1.24 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
~SeqEntry();
void Print(std::ostream &os = std::cout);
- void Write(std::ofstream *fp, FileType filetype);
+ void WriteContent(std::ofstream *fp, FileType filetype);
/// returns the SQITEM chained List for this SeQuence.
ListSQItem const & GetSQItems() const { return Items; }
Program: gdcm
Module: $RCSfile: gdcmValEntry.cxx,v $
Language: C++
- Date: $Date: 2004/11/24 16:39:19 $
- Version: $Revision: 1.37 $
+ Date: $Date: 2004/11/25 15:46:12 $
+ Version: $Revision: 1.38 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
/*
* \brief canonical Writer
*/
-void ValEntry::Write(std::ofstream* fp, FileType filetype)
+void ValEntry::WriteContent(std::ofstream* fp, FileType filetype)
{
- DocEntry::Write(fp, filetype);
+ DocEntry::WriteContent(fp, filetype);
//std::cout << "=====================================" << GetVR() << std::endl;
Program: gdcm
Module: $RCSfile: gdcmValEntry.h,v $
Language: C++
- Date: $Date: 2004/11/05 20:23:14 $
- Version: $Revision: 1.30 $
+ Date: $Date: 2004/11/25 15:46:12 $
+ 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
void SetValue(std::string const & val) { Value = val; };
virtual void Print(std::ostream &os = std::cout);
- virtual void Write(std::ofstream *fp, FileType filetype);
+ virtual void WriteContent(std::ofstream *fp, FileType filetype);
protected: