Classes | Public Types | Public Member Functions | List of all members
openmsx::MSXtar Class Reference

#include <MSXtar.hh>


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

Detailed Description

Definition at line 44 of file MSXtar.hh.

Member Enumeration Documentation

◆ Add

enum class openmsx::MSXtar::Add

Definition at line 47 of file MSXtar.hh.

Constructor & Destructor Documentation

◆ MSXtar() [1/2]

openmsx::MSXtar::MSXtar ( SectorAccessibleDisk disk,
const MsxChar2Unicode msxChars_ 

◆ MSXtar() [2/2]

openmsx::MSXtar::MSXtar ( MSXtar &&  other)

Definition at line 216 of file

◆ ~MSXtar()

openmsx::MSXtar::~MSXtar ( )

Definition at line 234 of file

References openmsx::SectorAccessibleDisk::writeSector(), and xrange().

Member Function Documentation

◆ addDir()

string openmsx::MSXtar::addDir ( std::string_view  rootDirName,
Add  add 

Definition at line 1123 of file

◆ addFile()

string openmsx::MSXtar::addFile ( const std::string &  filename,
Add  add 

Definition at line 1128 of file

◆ addItem()

std::string openmsx::MSXtar::addItem ( const std::string &  hostItemName,
Add  add 

Definition at line 1111 of file

◆ chdir()

void openmsx::MSXtar::chdir ( std::string_view  newRootDir)

Definition at line 971 of file

◆ convertToMsxName()

std::string openmsx::MSXtar::convertToMsxName ( std::string_view  name) const

Definition at line 1149 of file

◆ deleteItem()

std::string openmsx::MSXtar::deleteItem ( std::string_view  itemName)

Definition at line 1143 of file

◆ dir()

std::string openmsx::MSXtar::dir ( )

Definition at line 952 of file

References strAppend().

◆ dirRaw()

TclObject openmsx::MSXtar::dirRaw ( )

◆ getDir()

void openmsx::MSXtar::getDir ( std::string_view  rootDirName)

Definition at line 1138 of file

◆ getFreeSpace()

MSXtar::FreeSpaceResult openmsx::MSXtar::getFreeSpace ( ) const

Definition at line 1155 of file

◆ getItemFromDir()

string openmsx::MSXtar::getItemFromDir ( std::string_view  rootDirName,
std::string_view  itemName 

Definition at line 1133 of file

◆ mkdir()

void openmsx::MSXtar::mkdir ( std::string_view  newRootDir)

Definition at line 976 of file

◆ renameItem()

std::string openmsx::MSXtar::renameItem ( std::string_view  currentName,
std::string_view  newName 

Definition at line 754 of file

References openmsx::SectorBuffer::dirEntry.

The documentation for this class was generated from the following files: