|
EnigmaMachineCore 0.1.0
A modular Enigma Machine simulation in C++20
|
Implementation of IAssetProvider that reads from the local filesystem. This is the standard provider for CLI and Desktop applications. More...
#include <FileAssetProvider.hpp>
Inheritance diagram for FileAssetProvider:
Collaboration diagram for FileAssetProvider:Public Member Functions | |
| ~FileAssetProvider () override | |
| std::string | loadAsset (std::string_view assetName) const override |
| Loads the content of a file from the disk. | |
Public Member Functions inherited from IAssetProvider | |
| virtual | ~IAssetProvider () |
Implementation of IAssetProvider that reads from the local filesystem. This is the standard provider for CLI and Desktop applications.
Definition at line 9 of file FileAssetProvider.hpp.
|
overridedefault |
|
overridevirtual |
Loads the content of a file from the disk.
| assetName | The path to the file. |
| std::runtime_error | If the file cannot be opened. |
Implements IAssetProvider.
Definition at line 8 of file FileAssetProvider.cpp.