Refactored #7 out into class files like I should have to begin with.
This commit is contained in:
19
2022/7/File.h
Normal file
19
2022/7/File.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#ifndef ADVENT_DVEREB_FILE_H
|
||||
#define ADVENT_DVEREB_FILE_H
|
||||
|
||||
#include <string>
|
||||
|
||||
class File {
|
||||
public:
|
||||
File(const std::string &set_filename, unsigned long set_size);
|
||||
virtual ~File();
|
||||
|
||||
const std::string& Filename() const;
|
||||
virtual unsigned long Size() const;
|
||||
|
||||
protected:
|
||||
unsigned long size;
|
||||
std::string filename;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user