Function SetOperationResult

Synopsis

#include <include/streamextractcallback.hpp>

STDMETHOD() SetOperationResult(Int32 resultEOperationResult)

Description

No description yet.

Source

Lines 68-98 in src/streamextractcallback.cpp. Line 45 in include/streamextractcallback.hpp.

STDMETHODIMP StreamExtractCallback::SetOperationResult( Int32 operationResult ) {
    switch ( operationResult ) {
        case NArchive::NExtract::NOperationResult::kOK:
            break;

        default: {
            mNumErrors++;

            switch ( operationResult ) {
                case NArchive::NExtract::NOperationResult::kUnsupportedMethod:
                    mErrorMessage = kUnsupportedMethod;
                    break;

                case NArchive::NExtract::NOperationResult::kCRCError:
                    mErrorMessage = kCRCFailed;
                    break;

                case NArchive::NExtract::NOperationResult::kDataError:
                    mErrorMessage = kDataError;
                    break;

                default:
                    mErrorMessage = kUnknownError;
            }
        }
    }

    mStdOutStream.Release();

    return mNumErrors > 0 ? E_FAIL : S_OK;
}





Add Discussion as Guest

Log in