Program: gdcm
Module: $RCSfile: gdcmDocEntry.cxx,v $
Language: C++
- Date: $Date: 2004/11/19 18:49:39 $
- Version: $Revision: 1.32 $
+ Date: $Date: 2005/01/05 15:38:28 $
+ Version: $Revision: 1.36 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#include "gdcmDocEntry.h"
#include "gdcmTS.h"
+#include "gdcmVR.h"
#include "gdcmGlobal.h"
#include "gdcmUtil.h"
// init some variables
ReadLength = 0;
UsableLength = 0;
- PrintLevel = 0;
}
//-----------------------------------------------------------------------------
*/
void DocEntry::Print(std::ostream& os)
{
- PrintLevel = 2; // FIXME
-
size_t o;
std::string st;
TSKey v;
* @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();
uint16_t z = 0;
uint16_t shortLgr = lgr;
- if (vr == "unkn")
+ if (vr == GDCM_UNKNOWN)
{
// Unknown was 'written'
// deal with Little Endian
ReadLength = e->ReadLength;
ImplicitVR = e->ImplicitVR;
Offset = e->Offset;
- PrintLevel = e->PrintLevel;
// TODO : remove DocEntry SQDepth
}