openMSX
DiskName.hh
Go to the documentation of this file.
1#ifndef DISKNAME_HH
2#define DISKNAME_HH
3
4#include "Filename.hh"
5
6namespace openmsx {
7
9{
10public:
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;
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
23private:
24 Filename name;
25 std::string extra;
26};
27
28} // namespace openmsx
29
30#endif
std::string getResolved() const
Definition DiskName.cc:22
void serialize(Archive &ar, unsigned version)
Definition DiskName.cc:38
const Filename & getFilename() const
Definition DiskName.hh:18
void updateAfterLoadState()
Definition DiskName.cc:27
bool empty() const
Definition DiskName.cc:32
std::string getOriginal() const
Definition DiskName.cc:17
This class represents a filename.
Definition Filename.hh:20
This file implemented 3 utility functions:
Definition Autofire.cc:11