openMSX
Public Member Functions | List of all members
openmsx::FileContext Class Referencefinal

#include <FileContext.hh>

Public Member Functions

 FileContext ()=default
 
 FileContext (std::vector< std::string > &&paths, std::vector< std::string > &&savePaths)
 
std::string resolve (std::string_view filename) const
 
std::string resolveCreate (std::string_view filename) const
 
std::span< const std::string > getPaths () const
 
bool isUserContext () const
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 

Detailed Description

Definition at line 11 of file FileContext.hh.

Constructor & Destructor Documentation

◆ FileContext() [1/2]

openmsx::FileContext::FileContext ( )
default

◆ FileContext() [2/2]

openmsx::FileContext::FileContext ( std::vector< std::string > &&  paths,
std::vector< std::string > &&  savePaths 
)

Definition at line 74 of file FileContext.cc.

Member Function Documentation

◆ getPaths()

std::span< const string > openmsx::FileContext::getPaths ( ) const

◆ isUserContext()

bool openmsx::FileContext::isUserContext ( ) const

Definition at line 116 of file FileContext.cc.

References contains(), and openmsx::USER_DIRS.

◆ resolve()

string openmsx::FileContext::resolve ( std::string_view  filename) const

◆ resolveCreate()

string openmsx::FileContext::resolveCreate ( std::string_view  filename) const

◆ serialize()

template<typename Archive >
void openmsx::FileContext::serialize ( Archive &  ar,
unsigned  version 
)

Definition at line 122 of file FileContext.cc.


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