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