⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 structfiles.c

📁 the interface method bettwen matlab and c++:MWStruct 结构体阵列操作
💻 C
字号:
/*
 * MATLAB Compiler: 3.0
 * Date: Fri Sep 26 08:59:13 2003
 * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on"
 * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O"
 * "array_indexing:on" "-O" "optimize_conditionals:on" "-M" "-silentsetup" "-d"
 * "C:/TEMP/structdemo/structfiles/src" "-v" "-B"
 * "ccom:structfiles,structutils,1.0" "-t" "-W"
 * "com:structfiles,structutils,1.0" "-T" "link:lib" "-h" "libmmfile.mlib" "-i"
 * "-i" "C:/TEMP/structdemo/displaystruct.m" "C:/TEMP/structdemo/getstruct.m" 
 */

#ifndef MLF_V2
#define MLF_V2 1
#endif

#include "libmatlb.h"
#include "structfiles.h"
#include "displaystruct.h"
#include "getstruct.h"
#include "libmmfile.h"

extern _mex_information _lib_info;

static mexFunctionTableEntry function_table[2]
  = { { "displaystruct", mlxDisplaystruct, 1, 0,
        &_local_function_table_displaystruct },
      { "getstruct", mlxGetstruct, 2, 1, &_local_function_table_getstruct } };

static _mexInitTermTableEntry init_term_table[3]
  = { { libmmfileInitialize, libmmfileTerminate },
      { InitializeModule_displaystruct, TerminateModule_displaystruct },
      { InitializeModule_getstruct, TerminateModule_getstruct } };

static int _reference_count = 0;

_mex_information _lib_info
  = { 1, 2, function_table, 0, NULL, 0, NULL, 3, init_term_table };

/*
 * The function "structfilesInitialize" is a Compiler-generated initialization
 * wrapper. It is used to initialize the state of Compiler-generated functions
 * so that those functions can be called from code not generated by the
 * Compiler. The function(s) initialized can be found in the function_table
 * variable, appearing above.
 */
void structfilesInitialize(void) {
    mclLibInit("structfiles", &_reference_count, &_lib_info);
}

/*
 * The function "structfilesTerminate" is a Compiler-generated termination
 * wrapper. It is used to clean up the state that was set up by the
 * initialization wrapper function, also found in this file. Call this function
 * after having called the initialization wrapper function and after having
 * finished making all calls to the Compiler-generated function(s) found in the
 * function_table variable, appearing above.
 */
void structfilesTerminate(void) {
    mclLibTerm("structfiles", &_reference_count, &_lib_info);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -