mirror of
https://github.com/TomHarte/CLK.git
synced 2024-09-29 16:55:59 +00:00
35 lines
473 B
C++
35 lines
473 B
C++
//
|
|
// FileHolder.hpp
|
|
// Clock Signal
|
|
//
|
|
// Created by Thomas Harte on 21/11/2016.
|
|
// Copyright © 2016 Thomas Harte. All rights reserved.
|
|
//
|
|
|
|
#ifndef FileHolder_hpp
|
|
#define FileHolder_hpp
|
|
|
|
#include <sys/stat.h>
|
|
#include <cstdio>
|
|
|
|
namespace Storage {
|
|
|
|
class FileHolder {
|
|
public:
|
|
enum {
|
|
ErrorCantOpen = -1
|
|
};
|
|
|
|
virtual ~FileHolder();
|
|
|
|
protected:
|
|
FileHolder(const char *file_name);
|
|
|
|
FILE *file_;
|
|
struct stat file_stats_;
|
|
};
|
|
|
|
}
|
|
|
|
#endif /* FileHolder_hpp */
|