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

Stop I/O operations and delete a partially written ImageFile on the disk.

If the ImageFile is write mode, the associated file on the disk is closed and deleted, and the ImageFile goes to the closed state. If the ImageFile is read mode, the behavior is same as calling ImageFile::close, but no exceptions are thrown. It is not an error if ImageFile is already closed.

Postcondition:
ImageFile is in closed state.
Exceptions:
NoE57Exceptions.
See also:
Cancel.cpp example, ImageFile::ImageFile, ImageFile::close, ImageFile::isOpen
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines