Loading...
Searching...
No Matches
cleanup.hpp
// SPDX-FileCopyrightText: 2006-2025 Knut Reinert & Freie Universität Berlin
// SPDX-FileCopyrightText: 2016-2025 Knut Reinert & MPI für molekulare Genetik
// SPDX-License-Identifier: CC-BY-4.0
#include <filesystem>
namespace seqan3
{
class cleanup
{
public:
cleanup() = delete;
cleanup(cleanup const &) = delete;
cleanup & operator=(cleanup const &) = delete;
cleanup(cleanup &&) = default;
cleanup & operator=(cleanup &&) = default;
cleanup(char const * const str) : file(str) {};
~cleanup()
{
std::filesystem::remove(file);
}
private:
std::string file;
};
} // namespace seqan3
filesystem
seqan3
The main SeqAn3 namespace.
Definition aligned_sequence_concept.hpp:26
std::filesystem::remove
T remove(T... args)
Hide me