17#ifndef vtkBufferedArchiver_h 
   18#define vtkBufferedArchiver_h 
   20#include "vtkCommonArchiveModule.h"  
   24VTK_ABI_NAMESPACE_BEGIN
 
   51    const std::string& relativePath, 
const char* data, std::size_t size) 
override;
 
   58  bool Contains(
const std::string& relativePath) 
override;
 
Writes an archive to a buffer for vtk-js datasets.
 
void SetAllocatedSize(std::size_t)
Set/Get the allocated buffer size.
 
const char * GetBuffer()
Access the buffer.
 
const void * GetBufferAddress()
Access the address of the buffer.
 
~vtkBufferedArchiver() override
 
void OpenArchive() override
Open the archive for writing.
 
void InsertIntoArchive(const std::string &relativePath, const char *data, std::size_t size) override
Insert data of size size into the archive at relativePath.
 
std::size_t GetAllocatedSize()
Set/Get the allocated buffer size.
 
static vtkBufferedArchiver * New()
 
std::size_t GetBufferSize()
Get the buffer used size.
 
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
 
void CloseArchive() override
Close the archive.
 
bool Contains(const std::string &relativePath) override
Checks if relativePath represents an entry in the archive.
 
a simple class to control print indentation