mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
24 lines
377 B
C++
24 lines
377 B
C++
#ifndef FILE_BASED_USER_H
|
|
#define FILE_BASED_USER_H
|
|
|
|
#include "user.h"
|
|
|
|
class FileBasedUser : public User {
|
|
public:
|
|
static std::string get_path();
|
|
static void set_path(const std::string &path);
|
|
|
|
void save();
|
|
void load(const std::string &p_name);
|
|
void load();
|
|
|
|
FileBasedUser();
|
|
~FileBasedUser();
|
|
|
|
protected:
|
|
std::string _file_path;
|
|
|
|
static std::string _path;
|
|
};
|
|
|
|
#endif |