mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53:36 +00:00
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
26 lines
453 B
C++
26 lines
453 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
class TemporaryFile
|
|
{
|
|
public:
|
|
TemporaryFile();
|
|
TemporaryFile(std::string const & namePrefix, std::string const & nameSuffix);
|
|
|
|
TemporaryFile(TemporaryFile const &) = delete;
|
|
TemporaryFile & operator=(TemporaryFile const &) = delete;
|
|
|
|
~TemporaryFile();
|
|
|
|
std::string const & GetFilePath() const
|
|
{
|
|
return m_filePath;
|
|
}
|
|
|
|
void WriteData(std::string const & data);
|
|
|
|
private:
|
|
std::string m_filePath;
|
|
};
|