![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
#include <writer.hpp>
Public Member Functions | |
| Writer & | operator= (const Writer &writer)=delete |
| Writer & | operator= (Writer &&writer) noexcept |
| void | WriteToFile (std::filesystem::path path) |
Protected Member Functions | |
| Writer () | |
| Writer (const Writer &writer)=delete | |
| Writer (Writer &&writer) noexcept | |
| ~Writer () | |
| const std::filesystem::path & | GetPath () const noexcept |
| void | WriteCharacter (char c) |
| void | WriteString (NotNull< const_zstring > str) |
| void | WriteStringLine (NotNull< const_zstring > str) |
Private Member Functions | |
| virtual void | Write ()=0 |
Private Attributes | |
| UniqueFileStream | m_file_stream |
| std::filesystem::path | m_path |
A class of writers for writing (non-binary) text files.
|
protected |
Constructs a writer.
|
protecteddelete |
Constructs a writer from the given writer.
| [in] | writer | A reference to the writer to copy. |
|
protecteddefaultnoexcept |
Constructs a writer by moving the given writer.
| [in] | writer | A reference to the writer to move. |
|
protecteddefault |
Destructs this writer.
|
protectednoexcept |
Returns the current path of this writer.
Copies the given writer to this writer.
| [in] | writer | A reference to a writer to copy. |
Moves the given writer to this writer.
| [in] | writer | A reference to a writer to move. |
|
privatepure virtual |
Starts writing.
| Exception | Failed to write. |
Implemented in mage::rendering::loader::MDLWriter< VertexT, IndexT >, and mage::loader::VARWriter.
|
protected |
Writes the given character.
| [in] | c | The character to write. |
| Exception | Failed to write the given character. |
|
protected |
Writes the given string.
| [in] | str | A pointer to the null-terminated string to write. |
| Exception | Failed to write the given string. |
|
protected |
Writes the given string and ends the current line.
| [in] | str | A pointer to the null-terminated string to write. |
| Exception | Failed to write the given string. |
| void mage::Writer::WriteToFile | ( | std::filesystem::path | path | ) |
Writes to the file associated with the given path.
| [in] | path | The path. |
| Exception | Failed to write to the file. |
|
private |
A pointer to the file stream of this writer.
|
private |
The current path of this writer.