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
openmsx::DiskName::getOriginal
std::string getOriginal() const
Definition: DiskName.cc:19
openmsx::DiskName::getFilename
const Filename & getFilename() const
Definition: DiskName.hh:18
openmsx::DiskName::empty
bool empty() const
Definition: DiskName.cc:34
Filename.hh
openmsx::DiskName::getResolved
std::string getResolved() const
Definition: DiskName.cc:24
openmsx::DiskName::DiskName
DiskName(Filename name)
Definition: DiskName.cc:8
openmsx::DiskName
Definition: DiskName.hh:9
openmsx::DiskName::serialize
void serialize(Archive &ar, unsigned version)
Definition: DiskName.cc:40
openmsx::DiskName::updateAfterLoadState
void updateAfterLoadState()
Definition: DiskName.cc:29
openmsx::Filename
This class represents a filename.
Definition: Filename.hh:18
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5