source: issm/trunk-jpl/src/wrappers/StringToEnum/StringToEnum.h@ 19768

Last change on this file since 19768 was 19768, checked in by Eric.Larour, 9 years ago

CHG: new EnumToString and StringToEnum javascript modules. New array operations.
Finished translating setflowequation javascript routine. Finished parameterization file
SquareShelfConstrained.js. Starting solve.js routine.

File size: 1.2 KB
Line 
1/*!\file: StringToEnum.h
2 * \brief header file for StringToEnum module.
3 */
4
5#ifndef _STRINGTOENUM_H
6#define _STRINGTOENUM_H
7
8#ifdef HAVE_CONFIG_H
9 #include <config.h>
10#else
11 #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
12#endif
13
14/*For python modules: needs to come before header files inclusion*/
15#ifdef _HAVE_PYTHON_
16#define PY_ARRAY_UNIQUE_SYMBOL PythonIOSymbol
17#endif
18
19/*Header files: */
20#include "../bindings.h"
21#include "../../c/main/globals.h"
22#include "../../c/shared/Enum/Enum.h"
23#include "../../c/shared/shared.h"
24
25#undef __FUNCT__
26#define __FUNCT__ "StringToEnum"
27
28#ifdef _HAVE_MATLAB_MODULES_
29/* serial input macros: */
30#define NAME (mxArray*)prhs[0]
31/* serial output macros: */
32#define ENUMOUT (mxArray**)&plhs[0]
33#endif
34
35#ifdef _HAVE_PYTHON_MODULES_
36/* serial input macros: */
37#define NAME PyTuple_GetItem(args,0)
38/* serial output macros: */
39#define ENUMOUT output,0
40#endif
41
42#ifdef _HAVE_JAVASCRIPT_MODULES_
43/* serial input macros: */
44#define NAME string
45/* serial output macros: */
46#define ENUMOUT penum
47#define WRAPPER(modulename) extern "C" { int StringToEnumModule(double* penum, char* string)
48#endif
49
50/* serial arg counts: */
51#undef NLHS
52#define NLHS 1
53#undef NRHS
54#define NRHS 1
55
56#endif /* _TEST_H */
Note: See TracBrowser for help on using the repository browser.