ISIS Core Library 0.7.2 (api 3.0.0)
|
00001 /* 00002 Copyright (C) 2010 reimer@cbs.mpg.de 00003 00004 This program is free software: you can redistribute it and/or modify 00005 it under the terms of the GNU General Public License as published by 00006 the Free Software Foundation, either version 3 of the License, or 00007 (at your option) any later version. 00008 00009 This program is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 GNU General Public License for more details. 00013 00014 You should have received a copy of the GNU General Public License 00015 along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 00017 */ 00018 00019 #ifndef TMPFILE_H 00020 #define TMPFILE_H 00021 #include <string> 00022 #define BOOST_FILESYSTEM_VERSION 2 //@todo switch to 3 as soon as we drop support for boost < 1.44 00023 #include <boost/filesystem/path.hpp> 00024 00025 namespace isis 00026 { 00027 namespace util 00028 { 00035 class TmpFile: public boost::filesystem::path, boost::noncopyable 00036 { 00037 private: 00038 // dont do this 00039 TmpFile( TmpFile & ); 00040 TmpFile &operator=( TmpFile & ); 00041 public: 00048 TmpFile( std::string prefix = "", std::string suffix = "" ); 00050 ~TmpFile(); 00051 }; 00052 } 00053 } 00054 #endif // TMPFILE_H