Logo  0.95.0-final
Finite Element Embedded Library and Language in C++
Feel++ Feel++ on Github Feel++ community
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
crbwrapper.hpp File Reference

Go to the source code of this file.

Macros

#define CRB_FUNC_EXEC_BODY_IN_TEMPDIR(classname, dirname)
 

Detailed Description

Macro Definition Documentation

#define CRB_FUNC_EXEC_BODY_IN_TEMPDIR (   classname,
  dirname 
)
Value:
{ \
char* currentWorkingDirectory = getCurrentWorkingDirectory (0) ; \
char* temporaryDirectory=createTemporaryDirectory(#dirname,p_exchangedData,0); \
\
int rc = 0; \
try \
{ \
CAST(classname*,p_state)->run( INPOINT_ARRAY, INPOINT_SIZE, OUTPOINT_ARRAY, OUTPOINT_SIZE ); \
} \
catch( ... ) \
{ \
rc = 1; \
} \
if (rc) { \
PRINT( "Error in class "#classname ); \
return WRAPPER_EXECUTION_ERROR; \
} \
deleteTemporaryDirectory ( temporaryDirectory , rc, 0 ) ; \
free ( currentWorkingDirectory ) ; \
}

Generated on Sun Oct 20 2013 08:25:06 for Feel++ by doxygen 1.8.4