GDCM
2.2.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
Source
MediaStorageAndFileFormat
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
29
class
GDCM_EXPORT
SegmentWriter
:
public
Writer
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
58
SegmentVector
Segments
;
59
};
60
61
}
62
63
#endif // GDCMSEGMENTWRITER_H
Generated on Wed Jun 13 2012 20:40:37 for GDCM by
1.8.1