wowlib 0.0.0
Read & write World of Warcraft client files — a C++26 core
Loading...
Searching...
No Matches
wowlib::fs::NullListfile Struct Reference

The no-database provider for clients that need none (MPQ-era). More...

#include <wowlib/fs/listfile.hpp>

Public Member Functions

std::optional< FileDataID > pathToFdid (std::string_view) const
 Always misses.
std::optional< std::string > fdidToPath (FileDataID) const
 Always misses.
Result< FileDataID > registerPath (std::string_view)
 Never supported.
bool contains (std::string_view) const
 Never contained.

Detailed Description

The no-database provider for clients that need none (MPQ-era).

Every lookup misses; registration is NotSupported. Satisfies ListfileProvider.

Definition at line 33 of file listfile.hpp.

Member Function Documentation

◆ contains()

bool wowlib::fs::NullListfile::contains ( std::string_view ) const
inline

Never contained.

Returns
false.

Definition at line 51 of file listfile.hpp.

◆ fdidToPath()

std::optional< std::string > wowlib::fs::NullListfile::fdidToPath ( FileDataID ) const
inline

Always misses.

Returns
nullopt.

Definition at line 40 of file listfile.hpp.

◆ pathToFdid()

std::optional< FileDataID > wowlib::fs::NullListfile::pathToFdid ( std::string_view ) const
inline

Always misses.

Returns
nullopt.

Definition at line 35 of file listfile.hpp.

◆ registerPath()

Result< FileDataID > wowlib::fs::NullListfile::registerPath ( std::string_view )
inline

Never supported.

Returns
NotSupported.

Definition at line 45 of file listfile.hpp.

References wowlib::makeError(), and wowlib::NotSupported.


The documentation for this struct was generated from the following file: