Conf writer instance handle. More...
#include <writer.hpp>
Public Member Functions | |
Writer (const filesystem::path &filePath) | |
Creates a new Conf file writer instance. | |
~Writer () | |
Destroys Conf writer instance. | |
void | writeComment (const string &comment) |
Writes a comment to the config. | |
void | writeNewLine () |
Writes a new line to the config. ('\n') | |
void | write (const string &key, int64_t value) |
Writes an integer value to the config. (int64) | |
void | write (const string &key, int32_t value) |
Writes an integer value to the config. (int32) | |
void | write (const string &key, uint32_t value) |
Writes an integer value to the config. (uint32) | |
void | write (const string &key, int16_t value) |
Writes an integer value to the config. (int16) | |
void | write (const string &key, uint16_t value) |
Writes an integer value to the config. (uint16) | |
void | write (const string &key, int8_t value) |
Writes an integer value to the config. (int8) | |
void | write (const string &key, uint8_t value) |
Writes an integer value to the config. (uint8) | |
void | write (const string &key, double value, uint8_t precision=0) |
Writes a floating value to the config. (double) | |
void | write (const string &key, float value, uint8_t precision=0) |
Writes a floating value to the config. (float) | |
void | write (const string &key, bool value) |
Writes a boolean value to the config. | |
void | write (const string &key, string_view value) |
Writes a string value to the config. | |
Conf writer instance handle.
See the writer.h
|
inline |
Creates a new Conf file writer instance.
See the createFileConfWriter().
[in] | filePath | target Conf file path string |
Error | with a ConfResult string on failure. |
|
inline |
Destroys Conf writer instance.
See the destroyConfReader().
|
inline |
Writes a comment to the config.
See the writeConfComment().
[in] | comment | target comment string |
Error | on a comment write failure. |
|
inline |
Writes a new line to the config. ('\n')
See the writeConfNewLine().
Error | on a new line write failure. |
Writes an integer value to the config. (int64)
See the writeConfInt().
[in] | key | target item key string |
value | integer item value |
Error | on a write failure. |
Writes an integer value to the config. (int32)
See the writeConfInt().
[in] | key | target item key string |
value | integer item value |
Error | on a write failure. |
Writes an integer value to the config. (uint32)
See the writeConfInt().
[in] | key | target item key string |
value | integer item value |
Error | on a write failure. |
Writes an integer value to the config. (int16)
See the writeConfInt().
[in] | key | target item key string |
value | integer item value |
Error | on a write failure. |
Writes an integer value to the config. (uint16)
See the writeConfInt().
[in] | key | target item key string |
value | integer item value |
Error | on a write failure. |
Writes an integer value to the config. (int8)
See the writeConfInt().
[in] | key | target item key string |
value | integer item value |
Error | on a write failure. |
Writes an integer value to the config. (uint8)
See the writeConfInt().
[in] | key | target item key string |
value | integer item value |
Error | on a write failure. |
Writes a floating value to the config. (double)
See the writeConfFloat().
[in] | key | target item key string |
value | floating item value | |
precision | number of digits after the decimal point, or 0 (auto detect). |
Error | on a write failure. |
Writes a floating value to the config. (float)
See the writeConfFloat().
[in] | key | target item key string |
value | floating item value | |
precision | number of digits after the decimal point, or 0 (auto detect). |
Error | on a write failure. |
|
inline |
Writes a boolean value to the config.
See the writeConfBool().
[in] | key | target item key string |
value | boolean item value |
Error | on a write failure. |
|
inline |
Writes a string value to the config.
See the writeConfString().
[in] | key | target item key string |
[in] | value | string item value |
Error | on a write failure. |