Mercurial > hg > orthanc-wsi
comparison Resources/Orthanc/Plugins/Samples/Common/DicomDatasetReader.h @ 87:3d83d34cd4db
sync, optimizations
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 16 Dec 2016 16:44:14 +0100 |
parents | a59fdb848a7b |
children | 61e629ce7c94 |
comparison
equal
deleted
inserted
replaced
86:319b8c45c231 | 87:3d83d34cd4db |
---|---|
33 #pragma once | 33 #pragma once |
34 | 34 |
35 #include "IDicomDataset.h" | 35 #include "IDicomDataset.h" |
36 | 36 |
37 #include <memory> | 37 #include <memory> |
38 #include <vector> | |
38 | 39 |
39 namespace OrthancPlugins | 40 namespace OrthancPlugins |
40 { | 41 { |
41 class DicomDatasetReader : public boost::noncopyable | 42 class DicomDatasetReader : public boost::noncopyable |
42 { | 43 { |
43 private: | 44 private: |
44 std::auto_ptr<IDicomDataset> dataset_; | 45 const IDicomDataset& dataset_; |
45 | 46 |
46 public: | 47 public: |
47 DicomDatasetReader(IDicomDataset* dataset); // takes ownership | 48 DicomDatasetReader(const IDicomDataset& dataset); |
48 | 49 |
49 IDicomDataset& GetDataset() const | 50 const IDicomDataset& GetDataset() const |
50 { | 51 { |
51 return *dataset_; | 52 return dataset_; |
52 } | 53 } |
54 | |
55 std::string GetStringValue(const DicomPath& path, | |
56 const std::string& defaultValue) const; | |
53 | 57 |
54 std::string GetMandatoryStringValue(const DicomPath& path) const; | 58 std::string GetMandatoryStringValue(const DicomPath& path) const; |
55 | 59 |
56 int GetIntegerValue(const DicomPath& path); | 60 int GetIntegerValue(const DicomPath& path) const; |
57 | 61 |
58 unsigned int GetUnsignedIntegerValue(const DicomPath& path); | 62 unsigned int GetUnsignedIntegerValue(const DicomPath& path) const; |
63 | |
64 float GetFloatValue(const DicomPath& path) const; | |
65 | |
66 double GetDoubleValue(const DicomPath& path) const; | |
59 }; | 67 }; |
60 } | 68 } |