comparison OrthancServer/DicomDirWriter.cpp @ 1130:baac89e6cc4b

removal of debug code
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 08 Sep 2014 16:21:23 +0200
parents 82567bac5e25
children 6e7e5ed91c2d
comparison
equal deleted inserted replaced
1129:8dabdc0d3007 1130:baac89e6cc4b
549 pimpl_->CreateResource(patient, ResourceType_Patient, fileFormat, filename.c_str(), NULL); 549 pimpl_->CreateResource(patient, ResourceType_Patient, fileFormat, filename.c_str(), NULL);
550 patient->insertSub(study); 550 patient->insertSub(study);
551 } 551 }
552 } 552 }
553 } 553 }
554
555
556 {
557 // DEBUG
558 static unsigned int count = 0;
559 char buf[1024];
560 sprintf(buf, "/tmp/dicomdir-%06d.dcm", count++);
561
562 std::string s;
563 pimpl_->Read(s);
564 Toolbox::WriteFile(s, buf);
565 }
566 } 554 }
567 555
568 void DicomDirWriter::Encode(std::string& target) 556 void DicomDirWriter::Encode(std::string& target)
569 { 557 {
570 pimpl_->Read(target); 558 pimpl_->Read(target);