Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 1.01 KB

multifile.md

File metadata and controls

20 lines (15 loc) · 1.01 KB

multifile

Up to Documentation.

Purpose File
Include multifile.h
Interface multifile.i.h
Tests / Examples n/a

multifile_streambuf is a specialization of std::filebuf. It is the base class that implements writing to a sequence of files. Each file's name matches the UTC time down to one second. Therefore, a multifile_streambuf must not be reopened more than once within one second.

duration_multifile_streambuf is a specialization of multifile_streambuf where the instance is automatically reopened when a given duration has passed. Reopening is done only on sync(), which happens when flush() is called on overlying stream.

size_multifile_streambuf is a specialization of multifile_streambuf where the instance is automatically reopened when a given size has been exceeded. Reopening is done only on sync(), which happens when flush() is called on overlying stream.