|
resonance 1.0.1
|
Host tools that the build runs. More...
Namespaces | |
| namespace | BuildImage |
| Writer of a FreQuency disc image with the built executable and module in place. | |
| namespace | CreditsAvatar |
| Generator of the credits avatar header. | |
| namespace | NameIrx |
| Writer of the module name into the .iopmod header of an IRX. | |
Classes | |
| struct | Error |
| Failure returned through std::expected. More... | |
Enumerations | |
| enum class | ErrorCode { InvalidInput , Io , Network , Process } |
| Kind of failure a tool reports. More... | |
Functions | |
| std::expected< std::vector< std::uint8_t >, Error > | readFile (const std::filesystem::path &path) |
| Read a whole file. | |
| std::expected< void, Error > | writeFile (const std::filesystem::path &path, std::span< const std::uint8_t > data) |
| Replace a file with the given bytes. | |
| std::expected< void, Error > | writeFile (const std::filesystem::path &path, std::string_view text) |
| Replace a file with the given text, written as is. | |
| void | setupLogging (bool debug) |
| Send log messages to standard error as LEVEL: message, the format of Python's logging.basicConfig(format='%(levelname)s: %(message)s'). | |
Host tools that the build runs.
|
strong |
| std::expected< std::vector< std::uint8_t >, Error > Tools::readFile | ( | const std::filesystem::path & | path | ) |
Read a whole file.
| path | File to read. |
| std::expected< void, Error > Tools::writeFile | ( | const std::filesystem::path & | path, |
| std::span< const std::uint8_t > | data ) |
Replace a file with the given bytes.
| path | File to write. |
| data | New contents. |
| std::expected< void, Error > Tools::writeFile | ( | const std::filesystem::path & | path, |
| std::string_view | text ) |
Replace a file with the given text, written as is.
| path | File to write. |
| text | New contents. |
| void Tools::setupLogging | ( | bool | debug | ) |
Send log messages to standard error as LEVEL: message, the format of Python's logging.basicConfig(format='%(levelname)s: %(message)s').
| debug | Whether debug messages are shown. Information and higher levels are always shown. |