0
|
1 /**
|
50
|
2 * Palanthir - A Lightweight, RESTful DICOM Store
|
0
|
3 * Copyright (C) 2012 Medical Physics Department, CHU of Liege,
|
|
4 * Belgium
|
|
5 *
|
|
6 * This program is free software: you can redistribute it and/or
|
|
7 * modify it under the terms of the GNU General Public License as
|
|
8 * published by the Free Software Foundation, either version 3 of the
|
|
9 * License, or (at your option) any later version.
|
|
10 *
|
|
11 * This program is distributed in the hope that it will be useful, but
|
|
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
14 * General Public License for more details.
|
|
15 *
|
|
16 * You should have received a copy of the GNU General Public License
|
|
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
18 **/
|
|
19
|
|
20
|
|
21 #pragma once
|
|
22
|
|
23 #include "DicomElement.h"
|
|
24 #include "DicomMap.h"
|
|
25
|
|
26 #include <vector>
|
|
27
|
50
|
28 namespace Palanthir
|
0
|
29 {
|
|
30 class DicomArray : public boost::noncopyable
|
|
31 {
|
|
32 private:
|
|
33 typedef std::vector<DicomElement*> Elements;
|
|
34
|
|
35 Elements elements_;
|
|
36
|
|
37 public:
|
|
38 DicomArray(const DicomMap& map);
|
|
39
|
|
40 ~DicomArray();
|
|
41
|
|
42 size_t GetSize() const
|
|
43 {
|
|
44 return elements_.size();
|
|
45 }
|
|
46
|
|
47 const DicomElement& GetElement(size_t i) const
|
|
48 {
|
|
49 return *elements_[i];
|
|
50 }
|
|
51
|
|
52 void Print(FILE* fp) const;
|
|
53 };
|
|
54 }
|