Play-/Source/saves/Save.h

50 lines
1,005 B
C
Raw Permalink Normal View History

#ifndef _SAVE_H_
#define _SAVE_H_
2019-10-16 20:51:11 -04:00
#include "filesystem_def.h"
#include <string>
#include <ctime>
#include "Types.h"
#include "Stream.h"
class CSave
{
public:
enum ICONTYPE
{
ICON_NORMAL,
ICON_DELETING,
ICON_COPYING,
};
2019-10-16 20:51:11 -04:00
CSave(const fs::path&);
virtual ~CSave() = default;
2018-04-30 21:01:23 +01:00
const wchar_t* GetName() const;
const char* GetId() const;
unsigned int GetSize() const;
2019-10-16 20:51:11 -04:00
fs::path GetPath() const;
fs::path GetIconPath(const ICONTYPE&) const;
fs::path GetNormalIconPath() const;
fs::path GetDeletingIconPath() const;
fs::path GetCopyingIconPath() const;
2018-04-30 21:01:23 +01:00
size_t GetSecondLineStartPosition() const;
time_t GetLastModificationTime() const;
private:
2018-04-30 21:01:23 +01:00
void ReadName(Framework::CStream&);
2019-10-16 20:51:11 -04:00
fs::path m_basePath;
2018-04-30 21:01:23 +01:00
std::wstring m_sName;
std::string m_sId;
std::string m_sNormalIconFileName;
std::string m_sDeletingIconFileName;
std::string m_sCopyingIconFileName;
uint16 m_nSecondLineStartPosition;
time_t m_nLastModificationTime;
};
#endif