LIB_LeadingEigenVecForSparseMatrix_C_API 
bool MW_CALL_CONV LeadingEigenVecForSparseMatrixInitializeWithHandlers(
    mclOutputHandlerFcn error_handler,
    mclOutputHandlerFcn print_handler)
{
    int bResult = 0;
  if (_mcr_inst != NULL)
    return true;
  if (!mclmcrInitialize())
    return false;
  if (!GetModuleFileName(GetModuleHandle("LeadingEigenVecForSparseMatrix"), path_to_dll, _MAX_PATH))
    return false;
    {
        mclCtfStream ctfStream = 
            mclGetEmbeddedCtfStream(path_to_dll);
        if (ctfStream) {
            bResult = mclInitializeComponentInstanceEmbedded(   &_mcr_inst,
                                                                error_handler, 
                                                                print_handler,
                                                                ctfStream);
            mclDestroyStream(ctfStream);
        } else {
            bResult = 0;
        }
    }  
    if (!bResult)
    return false;
  return true;
}
Example #2
0
LIB_libhsmatlab_C_API 
bool MW_CALL_CONV libhsmatlabInitializeWithHandlers(
    mclOutputHandlerFcn error_handler,
    mclOutputHandlerFcn print_handler)
{
    int bResult = 0;
  if (_mcr_inst != NULL)
    return true;
  if (!mclmcrInitialize())
    return false;
    {
        mclCtfStream ctfStream = 
            mclGetEmbeddedCtfStream((void *)(libhsmatlabInitializeWithHandlers));
        if (ctfStream) {
            bResult = mclInitializeComponentInstanceEmbedded(   &_mcr_inst,
                                                                error_handler, 
                                                                print_handler,
                                                                ctfStream);
            mclDestroyStream(ctfStream);
        } else {
            bResult = 0;
        }
    }  
    if (!bResult)
    return false;
  return true;
}
Example #3
0
LIB_trapper1105_C_API 
bool trapper1105InitializeWithHandlers(
    mclOutputHandlerFcn error_handler,
    mclOutputHandlerFcn print_handler
)
{
    if (_mcr_inst != NULL)
        return true;
    if (!mclmcrInitialize())
        return false;
    if (!mclInitializeComponentInstance(&_mcr_inst,
                                        __MCC_trapper1105_public_data,
                                        __MCC_trapper1105_name_data,
                                        __MCC_trapper1105_root_data,
                                        __MCC_trapper1105_session_data,
                                        __MCC_trapper1105_matlabpath_data,
                                        __MCC_trapper1105_matlabpath_data_count,
                                        __MCC_trapper1105_classpath_data,
                                        __MCC_trapper1105_classpath_data_count,
                                        __MCC_trapper1105_lib_path_data,
                                        __MCC_trapper1105_lib_path_data_count,
                                        __MCC_trapper1105_mcr_runtime_options,
                                        __MCC_trapper1105_mcr_runtime_option_count,
                                        true, NoObjectType, LibTarget,
                                        path_to_dll, error_handler,
                                        print_handler))
        return false;
    return true;
}
Example #4
0
LIB_lightTest_C_API 
bool MW_CALL_CONV lightTestInitializeWithHandlers(
    mclOutputHandlerFcn error_handler,
    mclOutputHandlerFcn print_handler)
{
    int bResult = 0;
  if (_mcr_inst != NULL)
    return true;
  if (!mclmcrInitialize())
    return false;
    {
        mclCtfStream ctfStream = 
            mclGetEmbeddedCtfStream((void *)(lightTestInitializeWithHandlers), 
                                    1105898);
        if (ctfStream) {
            bResult = mclInitializeComponentInstanceEmbedded(   &_mcr_inst,
                                                                
                                                     &__MCC_lightTest_component_data,
                                                                true, 
                                                                NoObjectType, 
                                                                ExeTarget,
                                                                error_handler, 
                                                                print_handler,
                                                                ctfStream, 
                                                                1105898);
            mclDestroyStream(ctfStream);
        } else {
            bResult = 0;
        }
    }  
    if (!bResult)
    return false;
  return true;
}
Example #5
0
/* Each function wrapper should call this function first */
int isMCRrunning(){
    
    int result;
    
    if(MCRrunning){
        /*We have already initialized the MCR and initialized the MATLAB library DLL in a previous call */
        return true;
    }
    else{
        /* Start the MCR */
        mclmcrInitialize();
        result = mclInitializeApplication(NULL, 0);
        
        if (!result){
            printf("Failed to initialize MCR\n");
            return result;
        }
        
        /* Initialize the MATLAB generated DLL */
        result = lib_summInitialize();
        if(!result){
            printf("Failed to initialize Library\n");
            return result;
        }
        else{
            MCRrunning=1;
            return result;
        }
    }
    
}
LIB_gj_main_C_API 
bool MW_CALL_CONV gj_mainInitializeWithHandlers(
    mclOutputHandlerFcn error_handler,
    mclOutputHandlerFcn print_handler
)
{
  if (_mcr_inst != NULL)
    return true;
  if (!mclmcrInitialize())
    return false;
  if (!mclInitializeComponentInstance(&_mcr_inst, &__MCC_gj_main_component_data,
                                      true, NoObjectType, ExeTarget,
                                      error_handler, print_handler))
    return false;
  return true;
}
Example #7
0
LIB_libMethod_4_C_API 
bool libMethod_4InitializeWithHandlers(
    mclOutputHandlerFcn error_handler,
    mclOutputHandlerFcn print_handler
)
{
    if (_mcr_inst != NULL)
        return true;
    if (!mclmcrInitialize())
        return false;
    if (!mclInitializeComponentInstance(&_mcr_inst,
                                        &__MCC_libMethod_4_component_data,
                                        true, NoObjectType, LibTarget,
                                        error_handler, print_handler))
        return false;
    return true;
}
LIB_TKHistogramNormalization1_C_API 
bool TKHistogramNormalization1InitializeWithHandlers(
    mclOutputHandlerFcn error_handler,
    mclOutputHandlerFcn print_handler
)
{
    if (_mcr_inst != NULL)
        return true;
    if (!mclmcrInitialize())
        return false;
    if (!mclInitializeComponentInstance(&_mcr_inst,
                                        &__MCC_TKHistogramNormalization1_component_data,
                                        true, NoObjectType, LibTarget,
                                        error_handler, print_handler))
        return false;
    return true;
}
LIB_FT_BrokersView_C_API 
bool MW_CALL_CONV FT_BrokersViewInitializeWithHandlers(
    mclOutputHandlerFcn error_handler,
    mclOutputHandlerFcn print_handler
)
{
  if (_mcr_inst != NULL)
    return true;
  if (!mclmcrInitialize())
    return false;
  if (!mclInitializeComponentInstanceWithEmbeddedCTF(&_mcr_inst,
                                                     &__MCC_FT_BrokersView_component_data,
                                                     true, NoObjectType,
                                                     ExeTarget, error_handler,
                                                     print_handler, 4503001, NULL))
    return false;
  return true;
}
LIB_DayReport_C_API 
bool MW_CALL_CONV DayReportInitializeWithHandlers(
    mclOutputHandlerFcn error_handler,
    mclOutputHandlerFcn print_handler
)
{
  if (_mcr_inst != NULL)
    return true;
  if (!mclmcrInitialize())
    return false;
  if (!mclInitializeComponentInstanceWithEmbeddedCTF(&_mcr_inst,
                                                     &__MCC_DayReport_component_data,
                                                     true, NoObjectType,
                                                     ExeTarget, error_handler,
                                                     print_handler, 15362620, NULL))
    return false;
  return true;
}
LIB_levystabledistribution_C_API 
bool MW_CALL_CONV levystabledistributionInitializeWithHandlers(
    mclOutputHandlerFcn error_handler,
    mclOutputHandlerFcn print_handler
)
{
  if (_mcr_inst != NULL)
    return true;
  if (!mclmcrInitialize())
    return false;
  if (!mclInitializeComponentInstanceWithEmbeddedCTF(&_mcr_inst,
                                                     &__MCC_levystabledistribution_component_data,
                                                     true, NoObjectType,
                                                     ExeTarget, error_handler,
                                                     print_handler, 126861, NULL))
    return false;
  return true;
}
LIB_num_lanes_to_max_N_C_API 
bool MW_CALL_CONV num_lanes_to_max_NInitializeWithHandlers(
    mclOutputHandlerFcn error_handler,
    mclOutputHandlerFcn print_handler)
{
  if (_mcr_inst != NULL)
    return true;
  if (!mclmcrInitialize())
    return false;
  if (!mclInitializeComponentInstanceWithEmbeddedCTF(&_mcr_inst, 
                                                     &__MCC_num_lanes_to_max_N_component_data, 
                                                     true, NoObjectType, ExeTarget, 
                                                     error_handler, print_handler, 
                                                     4181427, (void 
                                                     *)(num_lanes_to_max_NInitializeWithHandlers)))
    return false;
  return true;
}
LIB_merge_analysis_output_C_API 
bool MW_CALL_CONV merge_analysis_outputInitializeWithHandlers(
    mclOutputHandlerFcn error_handler,
    mclOutputHandlerFcn print_handler
)
{
  if (_mcr_inst != NULL)
    return true;
  if (!mclmcrInitialize())
    return false;
  if (!mclInitializeComponentInstanceWithEmbeddedCTF(&_mcr_inst,
                                                     &__MCC_merge_analysis_output_component_data,
                                                     true, NoObjectType,
                                                     ExeTarget, error_handler,
                                                     print_handler, 27774, (void *)(merge_analysis_outputInitializeWithHandlers)))
    return false;
  return true;
}
Example #14
0
LIB_fo_trak_C_API 
bool MW_CALL_CONV fo_trakInitializeWithHandlers(
    mclOutputHandlerFcn error_handler,
    mclOutputHandlerFcn print_handler
)
{
  if (_mcr_inst != NULL)
    return true;
  if (!mclmcrInitialize())
    return false;
  if (!mclInitializeComponentInstanceWithEmbeddedCTF(&_mcr_inst,
                                                     &__MCC_fo_trak_component_data,
                                                     true, NoObjectType,
                                                     ExeTarget, error_handler,
                                                     print_handler, 1288243, (void *)(fo_trakInitializeWithHandlers)))
    return false;
  return true;
}
Example #15
0
LIB_mxace32_2008b_C_API 
bool MW_CALL_CONV mxace32_2008bInitializeWithHandlers(
    mclOutputHandlerFcn error_handler,
    mclOutputHandlerFcn print_handler
)
{
  if (_mcr_inst != NULL)
    return true;
  if (!mclmcrInitialize())
    return false;
  if (!GetModuleFileName(GetModuleHandle("mxace32_2008b"), path_to_dll, _MAX_PATH))
    return false;
  if (!mclInitializeComponentInstanceWithEmbeddedCTF(&_mcr_inst,
                                                     &__MCC_mxace32_2008b_component_data,
                                                     true, NoObjectType,
                                                     LibTarget, error_handler,
                                                     print_handler, 261349, path_to_dll))
    return false;
  return true;
}
Example #16
0
LIB_MyMatlabFunc_C_API 
bool MW_CALL_CONV MyMatlabFuncInitializeWithHandlers(
    mclOutputHandlerFcn error_handler,
    mclOutputHandlerFcn print_handler)
{
    int bResult = 0;
  if (_mcr_inst != NULL)
    return true;
  if (!mclmcrInitialize())
    return false;
  if (!GetModuleFileName(GetModuleHandle("MyMatlabFunc"), path_to_dll, _MAX_PATH))
    return false;
    bResult = mclInitializeComponentInstanceNonEmbeddedStandalone(  &_mcr_inst,
                                                                    path_to_dll,
                                                                    "MyMatlabFunc",
                                                                    LibTarget,
                                                                    error_handler, 
                                                                    print_handler);
    if (!bResult)
    return false;
  return true;
}
bool APIT_random_nonoiseInitializeWithHandlers(
    mclOutputHandlerFcn error_handler,
    mclOutputHandlerFcn print_handler
)
{
    if (_mcr_inst != NULL)
        return true;
    if (!mclmcrInitialize())
        return false;
    if (!mclInitializeComponentInstance(&_mcr_inst,
                                        __MCC_APIT_random_nonoise_public_data,
                                        __MCC_APIT_random_nonoise_name_data,
                                        __MCC_APIT_random_nonoise_root_data,
                                        __MCC_APIT_random_nonoise_session_data,
                                        __MCC_APIT_random_nonoise_matlabpath_data,
                                        __MCC_APIT_random_nonoise_matlabpath_data_count,
                                        __MCC_APIT_random_nonoise_mcr_runtime_options,
                                        __MCC_APIT_random_nonoise_mcr_runtime_option_count,
                                        true, NoObjectType, ExeTarget, NULL,
                                        error_handler, print_handler))
        return false;
    return true;
}
Example #18
0
LIB_AnalizePulses_C_API 
bool MW_CALL_CONV AnalizePulsesInitializeWithHandlers(
    mclOutputHandlerFcn error_handler,
    mclOutputHandlerFcn print_handler)
{
    int bResult = 0;
  if (_mcr_inst != NULL)
    return true;
  if (!mclmcrInitialize())
    return false;
  if (!GetModuleFileName(GetModuleHandle(L"AnalizePulses"), path_to_dll, _MAX_PATH))
    return false;
    {
        mclCtfStream ctfStream = 
            mclGetEmbeddedCtfStream(path_to_dll, 
                                    50170);
        if (ctfStream) {
            bResult = mclInitializeComponentInstanceEmbedded(   &_mcr_inst,
                                                                
                                                     &__MCC_AnalizePulses_component_data,
                                                                true, 
                                                                NoObjectType, 
                                                                LibTarget,
                                                                error_handler, 
                                                                print_handler,
                                                                ctfStream, 
                                                                50170);
            mclDestroyStream(ctfStream);
        } else {
            bResult = 0;
        }
    }  
    if (!bResult)
    return false;
  return true;
}
Example #19
0
int main(int argc, const char **argv) {
	mclmcrInitialize();
	return mclRunMain((mclMainFcnType)run_main, argc, argv);
}