Refactored #7 out into class files like I should have to begin with.

This commit is contained in:
2022-12-08 23:17:56 -05:00
parent 7ef32aafcb
commit 2139a01252
7 changed files with 155 additions and 106 deletions

22
2022/7/Folder.h Normal file
View File

@@ -0,0 +1,22 @@
#ifndef ADVENT_DVEREB_FOLDER_H
#define ADVENT_DVEREB_FOLDER_H
#include "File.h"
#include <string>
#include <vector>
class Folder : public File {
public:
Folder(const std::string &filename);
unsigned long Size() const override;
void AddFile(const std::string &filename, unsigned long size);
void AddFolder(const std::string &name);
const std::vector<File*>& Files() const;
private:
std::vector<File*> files;
};
#endif