Concrete class specializing WriteStrategy to directly write strings to a file.
More...
#include <DirectStringWriteStrategy.h>
|
| DirectStringWriteStrategy (std::ofstream &ofs) |
| Default constructor for direct string write strategy. More...
|
|
void | write (std::string const &str) override |
| Write string to file. More...
|
|
| WriteStrategy ()=default |
| Default constructor for write strategy.
|
|
virtual void | write (WriteArgs ... writeArgs)=0 |
| Abstract write function. Must be overridden by children classes.
|
|
|
std::ofstream & | ofs |
| The output file stream to do the writing.
|
|
Concrete class specializing WriteStrategy to directly write strings to a file.
- Author
- Alberto M. Esmoris Pena
- Version
- 1.0
- See also
- filems::WriteStrategy
-
filems::SimpleSyncFileStringWriter
◆ DirectStringWriteStrategy()
helios::filems::DirectStringWriteStrategy::DirectStringWriteStrategy |
( |
std::ofstream & |
ofs | ) |
|
|
inline |
◆ write()
void helios::filems::DirectStringWriteStrategy::write |
( |
std::string const & |
str | ) |
|
|
inlineoverride |
Write string to file.
- Parameters
-
The documentation for this class was generated from the following file: