You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
604 B
22 lines
604 B
#ifndef FILEHANDLER_H
|
|
#define FILEHANDLER_H
|
|
|
|
#include <string>
|
|
|
|
class FileHandler {
|
|
public:
|
|
void removeSpaces(std::string& str);
|
|
void saveQuestionsToFile(const std::string& userType, int count,
|
|
const std::string& username, const std::string& questions);
|
|
std::string getCurrentTimeString();
|
|
bool createUserDirectory(const std::string& username);
|
|
void clearInputBuffer();
|
|
void trimString(std::string& str);
|
|
bool isNumber(const std::string& str);
|
|
|
|
private:
|
|
std::string getBaseDirectory();
|
|
void initializeBaseDirectory();
|
|
};
|
|
|
|
#endif |