SDX::Helpers::FileWriter< T > Class Template Reference
A class that inherits from
StreamWriter subclass T and writes data fed to it to a file.
More...
#include <SDXFileWriter.h>
List of all members.
|
Public Member Functions |
|
| FileWriter (std::string filePath) |
| | Constructor.
|
|
void | setFilePath (std::string filePath) |
| | Set the path of the file to write.
|
|
void | openStream () |
| | Open file stream.
|
|
void | closeStream () |
| | Close file stream.
|
Detailed Description
template<class T>
class SDX::Helpers::FileWriter< T >
A class that inherits from
StreamWriter subclass T and writes data fed to it to a file.
You can either:
- Use the StreamWriter::write() method to write a document to a file.
or - Manually open and close the stream, using StreamWriter::isReady to check whether the stream is successfuly opened and manually write nodes and attributes to the file using the corresponding ContentHandler methods.
Definition at line 18 of file SDXFileWriter.h.
The documentation for this class was generated from the following file: