/[escript]/trunk/escript/src/EscriptParams.h
ViewVC logotype

Diff of /trunk/escript/src/EscriptParams.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2141 by jfenwick, Mon Oct 20 00:32:30 2008 UTC revision 2142 by jfenwick, Tue Dec 9 06:22:57 2008 UTC
# Line 14  Line 14 
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  {  {
# Line 38  private: Line 39  private:
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

Legend:
Removed from v.2141  
changed lines
  Added in v.2142

  ViewVC Help
Powered by ViewVC 1.1.26