mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
22 lines
488 B
C
22 lines
488 B
C
|
#pragma once
|
||
|
|
||
|
#include <LibCore/CIODevice.h>
|
||
|
#include <AK/AKString.h>
|
||
|
|
||
|
class CFile final : public CIODevice {
|
||
|
public:
|
||
|
CFile() { }
|
||
|
explicit CFile(const String&);
|
||
|
virtual ~CFile() override;
|
||
|
|
||
|
String filename() const { return m_filename; }
|
||
|
void set_filename(const String& filename) { m_filename = filename; }
|
||
|
|
||
|
virtual bool open(CIODevice::OpenMode) override;
|
||
|
|
||
|
virtual const char* class_name() const override { return "CFile"; }
|
||
|
|
||
|
private:
|
||
|
String m_filename;
|
||
|
};
|