openMSX
|
#include <MSXtar.hh>
Classes | |
struct | FreeSpaceResult |
Public Types | |
enum class | Add { PRESERVE , OVERWRITE } |
Public Member Functions | |
MSXtar (SectorAccessibleDisk &disk, const MsxChar2Unicode &msxChars_) | |
MSXtar (MSXtar &&other) noexcept | |
~MSXtar () | |
void | chdir (std::string_view newRootDir) |
void | mkdir (std::string_view newRootDir) |
std::string | dir () |
TclObject | dirRaw () |
std::string | addItem (const std::string &hostItemName, Add add) |
std::string | addFile (const std::string &filename, Add add) |
std::string | addDir (std::string_view rootDirName, Add add) |
std::string | getItemFromDir (std::string_view rootDirName, std::string_view itemName) |
void | getDir (std::string_view rootDirName) |
std::string | deleteItem (std::string_view itemName) |
std::string | renameItem (std::string_view currentName, std::string_view newName) |
std::string | convertToMsxName (std::string_view name) const |
FreeSpaceResult | getFreeSpace () const |
|
strong |
|
explicit |
Definition at line 194 of file MSXtar.cc.
References openmsx::SectorBuffer::bootSector, openmsx::SectorAccessibleDisk::getNbSectors(), openmsx::SectorAccessibleDisk::readSector(), and openmsx::SectorAccessibleDisk::readSectors().
openmsx::MSXtar::~MSXtar | ( | ) |
Definition at line 234 of file MSXtar.cc.
References openmsx::SectorAccessibleDisk::writeSector(), and xrange().
string openmsx::MSXtar::addDir | ( | std::string_view | rootDirName, |
Add | add | ||
) |
string openmsx::MSXtar::addFile | ( | const std::string & | filename, |
Add | add | ||
) |
std::string openmsx::MSXtar::addItem | ( | const std::string & | hostItemName, |
Add | add | ||
) |
void openmsx::MSXtar::chdir | ( | std::string_view | newRootDir | ) |
std::string openmsx::MSXtar::convertToMsxName | ( | std::string_view | name | ) | const |
std::string openmsx::MSXtar::deleteItem | ( | std::string_view | itemName | ) |
std::string openmsx::MSXtar::dir | ( | ) |
Definition at line 952 of file MSXtar.cc.
References strAppend().
TclObject openmsx::MSXtar::dirRaw | ( | ) |
Definition at line 930 of file MSXtar.cc.
References openmsx::TclObject::addListElement(), openmsx::SectorBuffer::dirEntry, openmsx::makeTclList(), zstring_view::size(), and openmsx::DiskImageUtils::FatTimeDate::time.
void openmsx::MSXtar::getDir | ( | std::string_view | rootDirName | ) |
MSXtar::FreeSpaceResult openmsx::MSXtar::getFreeSpace | ( | ) | const |
string openmsx::MSXtar::getItemFromDir | ( | std::string_view | rootDirName, |
std::string_view | itemName | ||
) |
void openmsx::MSXtar::mkdir | ( | std::string_view | newRootDir | ) |
std::string openmsx::MSXtar::renameItem | ( | std::string_view | currentName, |
std::string_view | newName | ||
) |
Definition at line 754 of file MSXtar.cc.
References openmsx::SectorBuffer::dirEntry.