OXYGENHUB
◆ main openmsx / src / fdc / DiskName.hh
579 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
e8555c89 Andy McCall 1
#ifndef DISKNAME_HH
2
#define DISKNAME_HH
3
4
#include "Filename.hh"
5
6
namespace openmsx {
7
8
class DiskName
9
{
10
public:
11
	explicit DiskName(Filename name);
12
	DiskName(Filename name, std::string extra);
13
14
	[[nodiscard]] std::string getOriginal() const;
15
	[[nodiscard]] std::string getResolved() const;
16
	void updateAfterLoadState();
17
	[[nodiscard]] bool empty() const;
18
	[[nodiscard]] const Filename& getFilename() const { return name; }
19
20
	template<typename Archive>
21
	void serialize(Archive& ar, unsigned version);
22
23
private:
24
	Filename name;
25
	std::string extra;
26
};
27
28
} // namespace openmsx
29
30
#endif