Prototype
bool __cdecl fnPostExport ( ShapeType type, bool bRetCode );
Return value
This function should return true if exporting should continue, and false otherwise.
Parameters
type [in]
The type of the layer just exported.
bRetCode [in]
The return value from the last call to fnExportShape. If false, the export process has been terminated and if true, this layer was exported successfully.
Remarks
This function is optional, but can if implemented be used as a clean-up point. If bRetCode is false, the export process has been terminated for the current layer and the error message from fnGetLastErrMsg has been shown to the user. No matter the state of bRetCode, the exporting process can be allowed to continue if this function returns true.
If this function returns false, the fnGetLastErrMsg will be called and the user will be presented with the error cause. In this case the exporting process will terminate at this point. Not even fnBatchExportEnd will be called so make sure to clean-up and free allocated data.
If this function is about to returns true, clean-up can be done here, or in fnBatchExportEnd.
Example
bool __cdecl fnPostExportBegin ( ShapeType type, bool bRetCode ) { os << "End of layer." << endl; os.close(); return true; }
See Also
Exporter API, fnGetLastErrMsg, fnExportShape, fnBatchExportBegin, fnBatchExportEnd, fnPreExport