From 0d78cce991438dc1b923c9fa82c9dde9f37fd3dc Mon Sep 17 00:00:00 2001 From: granzuglia Date: Thu, 18 Oct 2007 15:00:51 +0000 Subject: [PATCH] minor changes --- wrap/io_trimesh/export_idtf.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/wrap/io_trimesh/export_idtf.h b/wrap/io_trimesh/export_idtf.h index 9b91dd92..b93316a5 100644 --- a/wrap/io_trimesh/export_idtf.h +++ b/wrap/io_trimesh/export_idtf.h @@ -6,9 +6,7 @@ #include #include -namespace vcg { -namespace tri { -namespace io { + class TextUtility { public: @@ -21,10 +19,10 @@ public: } }; -class IDTF_File +class Output_File { public: - IDTF_File(const std::string& file) + Output_File(const std::string& file) :_file() { _file.open(file.c_str(),std::ios::out); @@ -38,7 +36,7 @@ public: _file << tmp << st << std::endl; } - ~IDTF_File() + ~Output_File() { _file.close(); } @@ -48,13 +46,18 @@ private: std::string _tab; }; + +namespace vcg { +namespace tri { +namespace io { + template class ExporterIDTF { public: static void Save(SaveMeshType& m,const char* file,const int mask) { - IDTF_File idtf(file); + Output_File idtf(file); idtf.write(0,"FILE_FORMAT \"IDTF\""); idtf.write(0,"FORMAT_VERSION 100\n");