source: issm/trunk-jpl/src/wrappers/StringToEnum/StringToEnum.cpp@ 20879

Last change on this file since 20879 was 20879, checked in by Mathieu Morlighem, 9 years ago

CHG: minor

File size: 622 bytes
Line 
1/*\file StringToEnum.c
2 *\brief:convert enum (int) to string
3 */
4
5#include "./StringToEnum.h"
6
7void StringToEnumUsage(void){/*{{{*/
8 _printf0_("\n");
9 _printf0_(" usage: " << __FUNCT__ << "enum = StringToEnum(string);\n");
10 _printf0_("\n");
11}/*}}}*/
12WRAPPER(StringToEnum_python){
13
14 char *name = NULL;
15
16 /*Boot module: */
17 MODULEBOOT();
18
19 /*checks on arguments: */
20 CHECKARGUMENTS(NLHS,NRHS,&StringToEnumUsage);
21
22 /*Fetch inputs: */
23 FetchData(&name,NAME);
24
25 /*Run core function: */
26 int enum_out=StringToEnumx(name);
27
28 /* output: */
29 WriteData(ENUMOUT,enum_out);
30
31 /*end module: */
32 xDelete<char>(name);
33 MODULEEND();
34}
Note: See TracBrowser for help on using the repository browser.