A helper class to write a given value to a specified file.
More...
#include "utils/file/writer/Writer.h"
A helper class to write a given value to a specified file.
This class is the "low level class" that implements IWriter.h
- Note
- Copy contructor, copy-assignment operator, move constructor and move-assignment operator are defined to be compliant with the "Rule of five"
- See also
- https://en.cppreference.com/w/cpp/language/rule_of_three
- Author
- Boubacar DIENE bouba.nosp@m.car..nosp@m.diene.nosp@m.@gma.nosp@m.il.co.nosp@m.m
- Date
- April 2020
◆ Writer() [1/3]
| utils::file::Writer::Writer |
( |
| ) |
|
|
default |
◆ ~Writer()
| utils::file::Writer::~Writer |
( |
| ) |
|
|
overridedefault |
Class destructor
- Note
- The override specifier aims at making the compiler warn if the base class's destructor is not virtual.
◆ Writer() [2/3]
| utils::file::Writer::Writer |
( |
const Writer & |
| ) |
|
|
delete |
◆ Writer() [3/3]
| utils::file::Writer::Writer |
( |
Writer && |
| ) |
|
|
delete |
◆ operator=() [1/2]
Class copy-assignment operator
◆ operator=() [2/2]
Class move-assignment operator
◆ writeToStream()
| void utils::file::Writer::writeToStream |
( |
std::ostream & |
stream, |
|
|
const std::string & |
value |
|
) |
| const |
|
overridevirtual |
Write the given value to the provided output stream and check errors.
- Parameters
-
| stream | The output stream where to write the value |
| value | The new value that will replace the currrent content |
Implements utils::file::IWriter.
The documentation for this class was generated from the following file: