24 lines
358 B
C++
24 lines
358 B
C++
#pragma once
|
|
#ifndef FSPP_FILE_H_
|
|
#define FSPP_FILE_H_
|
|
|
|
#include "Node.h"
|
|
#include <memory>
|
|
|
|
namespace fspp {
|
|
class Device;
|
|
class OpenFile;
|
|
|
|
class File: public virtual Node {
|
|
public:
|
|
virtual ~File() {}
|
|
|
|
virtual std::unique_ptr<OpenFile> open(int flags) const = 0;
|
|
virtual void truncate(off_t size) const = 0;
|
|
virtual void unlink() = 0;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|