Java

C++ code posted by ssk
created at 02 May 11:32, updated at 23 Jun 07:46

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
HRESULT CmrCaAnalysisComponent::CheckOstiaOutput(
) {
    RET_IF_FALSE(m_output_full_auto_left_ostia_model_proxy.IsValid())
    RET_IF_FALSE(m_output_full_auto_right_ostia_model_proxy.IsValid())
    RET_IF_FALSE(m_engine_error_code_model_proxy.IsValid())

    int left_ostia_array_size = 0;
    RET_IF_FAILED(m_output_full_auto_left_ostia_model_proxy->GetSize(&left_ostia_array_size))
    int right_ostia_array_size = 0;
    RET_IF_FAILED(m_output_full_auto_right_ostia_model_proxy->GetSize(&right_ostia_array_size))
    
    if(left_ostia_array_size <=0 && right_ostia_array_size <= 0) {
        RET_IF_FAILED(ShutDownEngine())
        RET_IF_FAILED(m_engine_error_code_model_proxy->SetValue(FULL_AUTO_FIND_OSTIA_FAILED))
        RET_IF_FAILED(SetStateForAnalysisComponentBatchJobModel(e_batch_job_aborted))

        return E_FAIL;
    }

    return S_OK;
}
880 Bytes in 6 ms with coderay