37 lines
552 B
C++
37 lines
552 B
C++
/*!
|
|
*
|
|
* @file ScoreManager.h
|
|
* @author RUBINI Thomas
|
|
* @date January 2022
|
|
* @version 1.0
|
|
* @brief Score file manager
|
|
*
|
|
*/
|
|
|
|
#ifndef GUARD_SCORESMANAGER_H
|
|
#define GUARD_SCORESMANAGER_H
|
|
|
|
#include<utility>
|
|
#include<vector>
|
|
#include<string>
|
|
#include "utils.h"
|
|
|
|
using namespace std;
|
|
|
|
struct ScoreLink{
|
|
string name;
|
|
unsigned score;
|
|
ScoreLink(string&& name, unsigned score);
|
|
};
|
|
|
|
class ScoresManager {
|
|
public:
|
|
vector<ScoreLink> scores;
|
|
void inputScore(string&& name, unsigned score);
|
|
void readFile();
|
|
void writeFile() const;
|
|
};
|
|
|
|
|
|
#endif
|