]> Creatis software - clitk.git/commitdiff
Add Write function (still to be defined)
authorDavid Sarrut <david.sarrut@creatis.insa-lyon.fr>
Mon, 25 Jul 2011 08:26:02 +0000 (10:26 +0200)
committerDavid Sarrut <david.sarrut@creatis.insa-lyon.fr>
Mon, 25 Jul 2011 08:26:02 +0000 (10:26 +0200)
common/clitkDicomRT_StructureSet.cxx
common/clitkDicomRT_StructureSet.h

index 8543fb7ddfefac3bbd5392b8a0e3a1f6bbdc18b8..2d5abd15ead731c71c343249dec98dd385c1ceb6 100644 (file)
@@ -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)
 {
index 3dbb8a6bbb02103c4efed5dc81933b2619aa9f6e..0da3a20c964d2dfb4b9c0dac78ece1d6b4eacbc3 100644 (file)
@@ -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<DicomRT_ROI::Pointer> & GetListOfROI() const;
   clitk::DicomRT_ROI * GetROI(int n);