parent
d099adf73f
commit
bdcb6e4415
@ -0,0 +1,20 @@
|
||||
#ifndef FILEMANAGE_H
|
||||
#define FILEMANAGE_H
|
||||
|
||||
#include"case.h"
|
||||
#include<string>
|
||||
#include<set>
|
||||
#include<vector>
|
||||
|
||||
class Filemanage{
|
||||
private:
|
||||
std::string baseDir;
|
||||
std::string getUserFolder(const std::string& username);
|
||||
void createDir(const std::string& path);
|
||||
public:
|
||||
Filemanage(const std::string& dir = "examquestions");
|
||||
std::set<std::string>getQuestions(const std::string&username);
|
||||
std::string saveQuestions(const std::string& username,const std::vector<Question> questions);
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Reference in new issue