2014-11-15 16:33:24 +01:00
|
|
|
#pragma once
|
|
|
|
#ifndef CRYFS_LIB_CRYNODE_H_
|
|
|
|
#define CRYFS_LIB_CRYNODE_H_
|
|
|
|
|
2015-02-17 01:02:15 +01:00
|
|
|
#include <messmer/fspp/fs_interface/Node.h>
|
|
|
|
#include "messmer/cpp-utils/macros.h"
|
2014-11-15 16:33:24 +01:00
|
|
|
|
|
|
|
#include "CryDevice.h"
|
|
|
|
|
|
|
|
namespace cryfs {
|
|
|
|
|
2014-11-16 00:05:28 +01:00
|
|
|
class CryNode: public virtual fspp::Node {
|
2014-11-15 16:33:24 +01:00
|
|
|
public:
|
2014-12-07 08:57:23 +01:00
|
|
|
CryNode();
|
2014-11-15 16:33:24 +01:00
|
|
|
virtual ~CryNode();
|
|
|
|
|
|
|
|
void stat(struct ::stat *result) const override;
|
|
|
|
void access(int mask) const override;
|
|
|
|
void rename(const boost::filesystem::path &to) override;
|
|
|
|
void utimens(const timespec times[2]) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(CryNode);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|