mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
26 lines
398 B
C++
26 lines
398 B
C++
#pragma once
|
|
|
|
#include "AKString.h"
|
|
#include <stdio.h>
|
|
|
|
namespace AK {
|
|
|
|
class TemporaryFile {
|
|
public:
|
|
TemporaryFile();
|
|
~TemporaryFile();
|
|
|
|
bool isValid() const { return m_stream; }
|
|
FILE* stream() { return m_stream; }
|
|
String fileName() const { return m_fileName; }
|
|
void sync();
|
|
|
|
private:
|
|
FILE* m_stream { nullptr };
|
|
String m_fileName;
|
|
};
|
|
|
|
}
|
|
|
|
using AK::TemporaryFile;
|
|
|