libcryfs/fs_interface/File.h

24 lines
398 B
C
Raw Normal View History

2014-11-15 23:47:38 +01:00
#pragma once
2014-11-16 00:05:28 +01:00
#ifndef FSPP_FILE_H_
#define FSPP_FILE_H_
2014-11-15 23:47:38 +01:00
2014-11-16 00:10:29 +01:00
#include "Node.h"
2014-11-15 23:47:38 +01:00
#include <memory>
2014-11-16 00:05:28 +01:00
namespace fspp {
2014-11-15 23:47:38 +01:00
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;
};
2014-11-16 00:05:28 +01:00
} /* namespace fspp */
2014-11-15 23:47:38 +01:00
2014-11-16 00:05:28 +01:00
#endif /* FSPP_FILE_H_ */