GDCM  2.2.0
gdcmSegmentWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: GDCM (Grassroots DICOM). A DICOM library
4 
5  Copyright (c) 2006-2011 Mathieu Malaterre
6  All rights reserved.
7  See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notice for more information.
12 
13 =========================================================================*/
14 #ifndef GDCMSEGMENTWRITER_H
15 #define GDCMSEGMENTWRITER_H
16 
17 #include <gdcmWriter.h>
18 #include <gdcmSegment.h>
19 
20 namespace gdcm
21 {
22 
30 {
31 public:
32  typedef std::vector< SmartPointer< Segment > > SegmentVector;
33 
34  SegmentWriter();
35 
36  virtual ~SegmentWriter();
37 
39  bool Write(); // Set to protected ?
40 
41  //** Segment getters/setters **//
42  unsigned int GetNumberOfSegments() const;
43  void SetNumberOfSegments(const unsigned int size);
44 
45  const SegmentVector & GetSegments() const;
46  SegmentVector & GetSegments();
47  SmartPointer< Segment > GetSegment(const unsigned int idx = 0) const;
48 
49  void AddSegment(SmartPointer< Segment > segment);
50 
51  void SetSegments(SegmentVector & segments);
52 
53 protected:
54 
55  bool PrepareWrite();
56 
57 
59 };
60 
61 }
62 
63 #endif // GDCMSEGMENTWRITER_H

Generated on Wed Jun 13 2012 20:40:37 for GDCM by doxygen 1.8.1
SourceForge.net Logo