E57 Foundation API v1.1.312  Aug. 10, 2011
void close ( )

End the write operation.

This function must be called to safely and gracefully end a transfer to a CompressedVectorNode. This is required because errors cannot be communicated from the CompressedVectorNode destructor (in C++ destructors can't throw exceptions). It is not an error to call this function if the CompressedVectorWriter is already closed. This function will cause the CompressedVectorWriter to enter the closed state, and any further transfers requests will fail.

Warning: If this function is not called before the CompressedVectorWriter destructor is invoked, all writes to the CompressedVectorNode will be lost (it will have zero children).

Precondition:
The associated ImageFile must be open.
Postcondition:
This CompressedVectorWriter is closed (i.e !isOpen())
Exceptions:
E57_ERROR_IMAGEFILE_NOT_OPEN
E57_ERROR_LSEEK_FAILEDThis CompressedVectorWriter, associated ImageFile in undocumented state
E57_ERROR_READ_FAILEDThis CompressedVectorWriter, associated ImageFile in undocumented state
E57_ERROR_WRITE_FAILEDThis CompressedVectorWriter, associated ImageFile in undocumented state
E57_ERROR_BAD_CHECKSUMThis CompressedVectorWriter, associated ImageFile in undocumented state
E57_ERROR_INTERNALAll objects in undocumented state
See also:
SourceDestBufferNumericCreate.cpp example, CompressedVectorWriter::isOpen
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines