![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
#include <var_writer.hpp>
Public Member Functions | |
VARWriter (const ValueMap &variable_buffer) | |
VARWriter (const VARWriter &writer)=delete | |
VARWriter (VARWriter &&writer) noexcept | |
~VARWriter () | |
VARWriter & | operator= (const VARWriter &writer)=delete |
VARWriter & | operator= (VARWriter &&writer)=delete |
void | WriteToFile (std::filesystem::path path) |
const std::filesystem::path & | GetPath () const noexcept |
Private Member Functions | |
virtual void | Write () override |
![]() | |
Writer & | operator= (const Writer &writer)=delete |
Writer & | operator= (Writer &&writer) noexcept |
void | WriteToFile (std::filesystem::path path) |
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 Attributes | |
const ValueMap & | m_variable_buffer |
A class of VAR file writers for writing variable scripts.
|
explicit |
Constructs a writer.
[in] | variable_buffer | A reference to a map containing the variables to write to file. |
|
delete |
Constructs a VAR writer from the given VAR writer.
[in] | writer | A reference to the VAR writer to copy. |
|
defaultnoexcept |
Constructs a VAR writer by moving the given VAR writer.
[in] | writer | A reference to the VAR writer to move. |
|
default |
Destructs this VAR writer.
|
noexcept |
Returns the current path of this writer.
Copies the given VAR writer to this VAR writer.
[in] | writer | A reference to a VAR writer to copy. |
Moves the given VAR writer to this VAR writer.
[in] | writer | A reference to a VAR writer to move. |
|
overrideprivatevirtual |
void mage::Writer::WriteToFile |
Writes to the file associated with the given path.
[in] | path | The path. |
Exception | Failed to write to the file. |
|
private |
A reference to a map containing the variables to write by this VAR writer.