openMSX
DiskName.hh
Go to the documentation of this file.
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  /*implicit*/ DiskName(Filename name);
12  DiskName(Filename name, std::string extra);
13 
14  std::string getOriginal() const;
15  std::string getResolved() const;
16  void updateAfterLoadState();
17  bool empty() const;
18  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
const Filename & getFilename() const
Definition: DiskName.hh:18
bool empty() const
Definition: DiskName.cc:34
DiskName(Filename name)
Definition: DiskName.cc:8
This class represents a filename.
Definition: Filename.hh:17
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
void serialize(Archive &ar, unsigned version)
Definition: DiskName.cc:40
std::string getResolved() const
Definition: DiskName.cc:24
void updateAfterLoadState()
Definition: DiskName.cc:29
std::string getOriginal() const
Definition: DiskName.cc:19