comparison OrthancServer/ParsedDicomFile.h @ 791:381f90e2b69d

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 05 May 2014 22:44:34 +0200
parents 331eaf9d9d69
children 111a1738e11e
comparison
equal deleted inserted replaced
790:331eaf9d9d69 791:381f90e2b69d
58 58
59 public: 59 public:
60 ParsedDicomFile(); // Create a minimal DICOM instance 60 ParsedDicomFile(); // Create a minimal DICOM instance
61 61
62 ParsedDicomFile(const char* content, 62 ParsedDicomFile(const char* content,
63 size_t size) 63 size_t size);
64 {
65 Setup(content, size);
66 }
67 64
68 ParsedDicomFile(const std::string& content) 65 ParsedDicomFile(const std::string& content);
69 {
70 if (content.size() == 0)
71 Setup(NULL, 0);
72 else
73 Setup(&content[0], content.size());
74 }
75 66
76 DcmFileFormat& GetDicom() 67 DcmFileFormat& GetDicom()
77 { 68 {
78 return *file_; 69 return *file_;
79 } 70 }