gdcmSegmentWriter.h
Go to the documentation of this file.
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef GDCMSEGMENTWRITER_H
#define GDCMSEGMENTWRITER_H
#include <gdcmWriter.h>
#include <gdcmSegment.h>
namespace gdcm
{
class GDCM_EXPORT SegmentWriter : public Writer
{
public:
typedef std::vector< SmartPointer< Segment > > SegmentVector;
SegmentWriter();
~SegmentWriter() override;
bool Write() override; // Set to protected ?
//** Segment getters/setters **//
unsigned int GetNumberOfSegments() const;
void SetNumberOfSegments(const unsigned int size);
const SegmentVector & GetSegments() const;
SegmentVector & GetSegments();
SmartPointer< Segment > GetSegment(const unsigned int idx = 0) const;
void AddSegment(SmartPointer< Segment > segment);
void SetSegments(SegmentVector & segments);
protected:
bool PrepareWrite();
SegmentVector Segments;
};
}
#endif // GDCMSEGMENTWRITER_H
gdcm::SegmentWriter::AddSegment
void AddSegment(SmartPointer< Segment > segment)
gdcm::SegmentWriter::Write
bool Write() override
Write.
gdcm::SegmentWriter::SetSegments
void SetSegments(SegmentVector &segments)
gdcm::SegmentWriter::GetSegment
SmartPointer< Segment > GetSegment(const unsigned int idx=0) const
gdcm::SegmentWriter::PrepareWrite
bool PrepareWrite()
gdcm::SegmentWriter::GetSegments
const SegmentVector & GetSegments() const
gdcm::SegmentWriter::SegmentWriter
SegmentWriter()
gdcm::SegmentWriter::SegmentVector
std::vector< SmartPointer< Segment > > SegmentVector
Definition gdcmSegmentWriter.h:32
gdcm::SegmentWriter::~SegmentWriter
~SegmentWriter() override
gdcm::SegmentWriter::Segments
SegmentVector Segments
Definition gdcmSegmentWriter.h:58
gdcm::SegmentWriter::GetNumberOfSegments
unsigned int GetNumberOfSegments() const
gdcm::SegmentWriter::GetSegments
SegmentVector & GetSegments()
gdcm::SegmentWriter::SetNumberOfSegments
void SetNumberOfSegments(const unsigned int size)
gdcm::SmartPointer
Class for Smart Pointer.
Definition gdcmSmartPointer.h:40
gdcm::Writer::Writer
Writer()
gdcmSegment.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcmWriter.h
gdcm
Definition gdcmASN1.h:21