Program: gdcm
Module: $RCSfile: gdcmDicomDirMeta.cxx,v $
Language: C++
- Date: $Date: 2007/08/29 15:30:48 $
- Version: $Revision: 1.39 $
+ Date: $Date: 2007/10/08 15:20:17 $
+ Version: $Revision: 1.40 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* @return
*/
void DicomDirMeta::WriteContent(std::ofstream *fp, FileType filetype,
- bool dummy, bool dummy2)
+ bool , bool )
{
// 'File Meta Information Version'
Program: gdcm
Module: $RCSfile: gdcmDicomDirPatient.cxx,v $
Language: C++
- Date: $Date: 2007/08/29 15:30:48 $
- Version: $Revision: 1.43 $
+ Date: $Date: 2007/10/08 15:20:17 $
+ Version: $Revision: 1.44 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* @param fp ofstream to write to
* @param t Type of the File (explicit VR, implicitVR, ...)
*/
-void DicomDirPatient::WriteContent(std::ofstream *fp, FileType t, bool dummy, bool dummy2)
+void DicomDirPatient::WriteContent(std::ofstream *fp, FileType t, bool , bool )
{
DicomDirObject::WriteContent(fp, t, false, true);
Program: gdcm
Module: $RCSfile: gdcmDicomDirSerie.cxx,v $
Language: C++
- Date: $Date: 2007/08/29 15:30:49 $
- Version: $Revision: 1.45 $
+ Date: $Date: 2007/10/08 15:20:17 $
+ Version: $Revision: 1.46 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* @param fp ofstream to write to
* @param t Type of the File (explicit VR, implicitVR, ...)
*/
-void DicomDirSerie::WriteContent(std::ofstream *fp, FileType t, bool dummy, bool dummy2)
+void DicomDirSerie::WriteContent(std::ofstream *fp, FileType t, bool , bool )
{
DicomDirObject::WriteContent(fp, t, false, true);
Program: gdcm
Module: $RCSfile: gdcmDicomDirStudy.cxx,v $
Language: C++
- Date: $Date: 2007/08/29 15:30:49 $
- Version: $Revision: 1.45 $
+ Date: $Date: 2007/10/08 15:20:17 $
+ Version: $Revision: 1.46 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* @param t Type of the File (explicit VR, implicitVR, ...)
* @return
*/
-void DicomDirStudy::WriteContent(std::ofstream *fp, FileType t, bool dummy, bool dummy2)
+void DicomDirStudy::WriteContent(std::ofstream *fp, FileType t, bool , bool )
{
DicomDirObject::WriteContent(fp, t, false, true);
Program: gdcm
Module: $RCSfile: gdcmDocument.cxx,v $
Language: C++
- Date: $Date: 2007/09/25 15:21:57 $
- Version: $Revision: 1.372 $
+ Date: $Date: 2007/10/08 15:20:17 $
+ Version: $Revision: 1.373 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* @param filetype Type of the File to be written
* (ACR-NEMA, ExplicitVR, ImplicitVR)
*/
-void Document::WriteContent(std::ofstream *fp, FileType filetype)
+void Document::WriteContent(std::ofstream *fp, FileType filetype, bool, bool)
{
// Skip if user wants to write an ACR-NEMA file
Program: gdcm
Module: $RCSfile: gdcmDocument.h,v $
Language: C++
- Date: $Date: 2007/09/17 12:16:02 $
- Version: $Revision: 1.147 $
+ Date: $Date: 2007/10/08 15:20:17 $
+ Version: $Revision: 1.148 $
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 WriteContent( std::ofstream *fp, FileType type );
+ void WriteContent( std::ofstream *fp, FileType type, bool insideMetaElements, bool insideSequence );
// Data entries
virtual void LoadEntryBinArea(uint16_t group, uint16_t elem);
Program: gdcm
Module: $RCSfile: gdcmFile.cxx,v $
Language: C++
- Date: $Date: 2007/10/03 09:32:10 $
- Version: $Revision: 1.339 $
+ Date: $Date: 2007/10/08 15:20:17 $
+ Version: $Revision: 1.340 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
InsertEntryString(s_lgPix,GrPixel, 0x0000, "UL");
}
}
- Document::WriteContent(fp, writetype);
+ Document::WriteContent(fp, writetype,false,false);
fp->close();
delete fp;
Module: $RCSfile: gdcmFileHelper.cxx,v $
Language: C++
- Date: $Date: 2007/10/01 09:28:57 $
- Version: $Revision: 1.131 $
+ Date: $Date: 2007/10/08 15:20:17 $
+ Version: $Revision: 1.132 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
{
CheckMandatoryElements(); //called once, here !
- bool flag = false;
switch(WriteType)
{
case ImplicitVR:
Program: gdcm
Module: $RCSfile: gdcmSQItem.cxx,v $
Language: C++
- Date: $Date: 2007/08/29 15:30:49 $
- Version: $Revision: 1.87 $
+ Date: $Date: 2007/10/08 15:20:17 $
+ Version: $Revision: 1.88 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* @param filetype type of the file (ACR, ImplicitVR, ExplicitVR, ...)
*/
void SQItem::WriteContent(std::ofstream *fp, FileType filetype,
- bool insideMetaElements, bool dummy2)
+ bool , bool )
{
int j;
uint16_t item[4] = { 0xfffe, 0xe000, 0xffff, 0xffff };
Program: gdcm
Module: $RCSfile: gdcmSegmentedPalette.h,v $
Language: C++
- Date: $Date: 2007/10/03 13:18:28 $
- Version: $Revision: 1.8 $
+ Date: $Date: 2007/10/08 15:20:17 $
+ Version: $Revision: 1.9 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#include <vector>
#include <iterator>
+// Hack for VS6
+#if defined(_MSC_VER) && (_MSC_VER < 1310)
+#define GDCM_TYPENAME class
+#else
+#define GDCM_TYPENAME typename
+#endif
+
namespace GDCM_NAME_SPACE
{
// abstract class for segment.
- template <typename EntryType>
+ template <GDCM_TYPENAME EntryType>
class Segment {
public:
typedef std::map<const EntryType*, const Segment*> SegmentMap;
};
// discrete segment (opcode = 0)
- template <typename EntryType>
+ template <GDCM_TYPENAME EntryType>
class DiscreteSegment : public Segment<EntryType> {
public:
typedef typename Segment<EntryType>::SegmentMap SegmentMap;
};
// linear segment (opcode = 1)
- template <typename EntryType>
+ template <GDCM_TYPENAME EntryType>
class LinearSegment : public Segment<EntryType> {
public:
typedef typename Segment<EntryType>::SegmentMap SegmentMap;
};
// indirect segment (opcode = 2)
- template <typename EntryType>
+ template <GDCM_TYPENAME EntryType>
class IndirectSegment : public Segment<EntryType> {
public:
typedef typename Segment<EntryType>::SegmentMap SegmentMap;
}
};
- template <typename EntryType>
+ template <GDCM_TYPENAME EntryType>
void ExpandPalette(const EntryType* raw_values, uint32_t length,
std::vector<EntryType>& palette)
{
} // end namespace gdcm
+// do not pollute namespace:
+#undef GDCM_TYPENAME
+
#endif
Program: gdcm
Module: $RCSfile: gdcmSeqEntry.cxx,v $
Language: C++
- Date: $Date: 2007/09/14 08:22:19 $
- Version: $Revision: 1.71 $
+ Date: $Date: 2007/10/08 15:20:17 $
+ Version: $Revision: 1.72 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* @param fp pointer to an already open file
* @param filetype type of the file (ACR, ImplicitVR, ExplicitVR, ...)
*/
-void SeqEntry::WriteContent(std::ofstream *fp, FileType filetype, bool dummy, bool dummy2)
+void SeqEntry::WriteContent(std::ofstream *fp, FileType filetype, bool , bool )
{
uint16_t seq_term_gr = 0xfffe;
uint16_t seq_term_el = 0xe0dd;