Program: gdcm
Module: $RCSfile: gdcmDocEntry.cxx,v $
Language: C++
- Date: $Date: 2004/12/16 13:46:37 $
- Version: $Revision: 1.35 $
+ Date: $Date: 2005/01/06 20:03:27 $
+ 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 Constructor from a given DictEntry
* @param in Pointer to existing dictionary entry
*/
-DocEntry::DocEntry(DictEntry* in)
+DocEntry::DocEntry(DictEntry *in)
{
ImplicitVR = false;
DicomDict = in;
* \brief Prints the common part of ValEntry, BinEntry, SeqEntry
* @param os ostream we want to print in
*/
-void DocEntry::Print(std::ostream& os)
+void DocEntry::Print(std::ostream &os)
{
size_t o;
std::string st;
o = GetOffset();
vr = GetVR();
+ if(vr==GDCM_UNKNOWN)
+ vr=" ";
s << DictEntry::TranslateToKey(GetGroup(),GetElement());
* @param fp already open file pointer
* @param filetype type of the file to be written
*/
-void DocEntry::WriteContent(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
* \ingroup DocEntry
* \brief Copies all the attributes from an other DocEntry
*/
-void DocEntry::Copy (DocEntry* e)
+void DocEntry::Copy (DocEntry *e)
{
// DicomDict = e->DicomDict;
UsableLength = e->UsableLength;