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

#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
 

Detailed Description

Definition at line 44 of file MSXtar.hh.

Member Enumeration Documentation

◆ Add

enum class openmsx::MSXtar::Add
strong
Enumerator
PRESERVE 
OVERWRITE 

Definition at line 47 of file MSXtar.hh.

Constructor & Destructor Documentation

◆ MSXtar() [1/2]

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

◆ MSXtar() [2/2]

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

Definition at line 216 of file MSXtar.cc.

◆ ~MSXtar()

openmsx::MSXtar::~MSXtar ( )

Definition at line 234 of file MSXtar.cc.

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 MSXtar.cc.

◆ addFile()

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

Definition at line 1128 of file MSXtar.cc.

◆ addItem()

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

Definition at line 1111 of file MSXtar.cc.

◆ chdir()

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

Definition at line 971 of file MSXtar.cc.

◆ convertToMsxName()

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

Definition at line 1149 of file MSXtar.cc.

◆ deleteItem()

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

Definition at line 1143 of file MSXtar.cc.

◆ dir()

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

Definition at line 952 of file MSXtar.cc.

References strAppend().

◆ dirRaw()

TclObject openmsx::MSXtar::dirRaw ( )

◆ getDir()

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

Definition at line 1138 of file MSXtar.cc.

◆ getFreeSpace()

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

Definition at line 1155 of file MSXtar.cc.

◆ getItemFromDir()

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

Definition at line 1133 of file MSXtar.cc.

◆ mkdir()

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

Definition at line 976 of file MSXtar.cc.

◆ renameItem()

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.


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