| 
    VRS
    
   A file format for sensor data. 
   | 
 
Helper to make new chunks notifications simpler and safer. More...
#include <NewChunkHandler.h>
Public Member Functions | |
| NewChunkNotifier (WriteFileHandler &file, const std::unique_ptr< NewChunkHandler > &chunkHandler) | |
| void | notify (size_t indexOffset=0, bool isLastChunk=false) | 
Helper to make new chunks notifications simpler and safer.
New chunks notifications must come after the chunk has been closed, which leads to ugly/unsafe code. This helper class gathers the details about the current chunk, so that the notification, if any, can be sent at the right time.