This is the documentation for Enlighten.

class Enlighten ExporterLineWriter

class Enlighten::ExporterLineWriter

Lazy file writer that only actually updates the file on disk if the contents have changed.

Additionally, the file is written in utf-8.

Functions

Name Description
~ExporterLineWriter()

Destructor.

Close()

Close the file and flush previously written lines to disk.

ExporterLineWriter(Geo::GeoFileString)

Constructs an ExporterLineWriter instance and copies the filename.

Failed()

Returns true if writing the file to disk failed.

WriteLine(const char *)

Write a single line of utf-8 text.


Enlighten::ExporterLineWriter::~ExporterLineWriter


public: ~ExporterLineWriter()


Destructor.


void Enlighten::ExporterLineWriter::Close


public: void Close()


Close the file and flush previously written lines to disk.


Enlighten::ExporterLineWriter::ExporterLineWriter


public: ExporterLineWriter
(
    Geo::GeoFileString filename
)


Constructs an ExporterLineWriter instance and copies the filename.


bool Enlighten::ExporterLineWriter::Failed


public: bool Failed() const


Returns true if writing the file to disk failed.


void Enlighten::ExporterLineWriter::WriteLine


public: void WriteLine
(
    const char * s
)


Write a single line of utf-8 text.