From: David Sarrut Date: Mon, 25 Jul 2011 08:26:02 +0000 (+0200) Subject: Add Write function (still to be defined) X-Git-Tag: v1.3.0~270 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=667413db66459661701ccbb20c6dd89b15aa35bd;p=clitk.git Add Write function (still to be defined) --- diff --git a/common/clitkDicomRT_StructureSet.cxx b/common/clitkDicomRT_StructureSet.cxx index 8543fb7..2d5abd1 100644 --- a/common/clitkDicomRT_StructureSet.cxx +++ b/common/clitkDicomRT_StructureSet.cxx @@ -141,6 +141,18 @@ void clitk::DicomRT_StructureSet::Print(std::ostream & os) const //-------------------------------------------------------------------- +//-------------------------------------------------------------------- +void clitk::DicomRT_StructureSet::Write(const std::string & filename) +{ +#if GDCM_MAJOR_VERSION == 2 + DD("WRITE TODO"); +#else + FATAL("Sorry not compatible with GDCM1, use GDCM2"); +#endif +} +//-------------------------------------------------------------------- + + //-------------------------------------------------------------------- void clitk::DicomRT_StructureSet::Read(const std::string & filename) { diff --git a/common/clitkDicomRT_StructureSet.h b/common/clitkDicomRT_StructureSet.h index 3dbb8a6..0da3a20 100644 --- a/common/clitkDicomRT_StructureSet.h +++ b/common/clitkDicomRT_StructureSet.h @@ -36,6 +36,7 @@ public: void Print(std::ostream & os = std::cout) const; void Read(const std::string & filename); + void Write(const std::string & filename); const std::vector & GetListOfROI() const; clitk::DicomRT_ROI * GetROI(int n);