14 |
#ifndef escript_EscriptParams_H |
#ifndef escript_EscriptParams_H |
15 |
#define escript_EscriptParams_H |
#define escript_EscriptParams_H |
16 |
#include "system_dep.h" |
#include "system_dep.h" |
17 |
|
#include <boost/python/list.hpp> |
18 |
|
|
19 |
namespace escript |
namespace escript |
20 |
{ |
{ |
39 |
|
|
40 |
extern EscriptParams escriptParams; |
extern EscriptParams escriptParams; |
41 |
|
|
42 |
|
/** |
43 |
|
\brief Set the value of a named parameter. |
44 |
|
See listEscriptParams() (showEscriptParams() in python) for available parameters. |
45 |
|
*/ |
46 |
ESCRIPT_DLL_API |
ESCRIPT_DLL_API |
47 |
void setEscriptParamInt(const char* name, int value); |
void setEscriptParamInt(const char* name, int value); |
48 |
|
|
49 |
|
/** |
50 |
|
\brief get the value of a named parameter. |
51 |
|
See listEscriptParams() (showEscriptParams() in python) for available parameters. |
52 |
|
*/ |
53 |
ESCRIPT_DLL_API |
ESCRIPT_DLL_API |
54 |
int getEscriptParamInt(const char* name, int sentinel=0); |
int getEscriptParamInt(const char* name, int sentinel=0); |
55 |
|
|
56 |
|
/** |
57 |
|
\brief describe available paramters. |
58 |
|
\return a list of tuples (parameter name, description) |
59 |
|
*/ |
60 |
|
ESCRIPT_DLL_API |
61 |
|
boost::python::list listEscriptParams(); |
62 |
|
|
63 |
} |
} |
64 |
#endif |
#endif |