IFEM  90A354
SIMconfigure.h
Go to the documentation of this file.
1 // $Id$
2 //==============================================================================
12 //==============================================================================
13 
14 #ifndef _SIM_CONFIGURE_H_
15 #define _SIM_CONFIGURE_H_
16 
17 
23 template<class T> struct SolverConfigurator
24 {
29  int setup(T& sim, const typename T::SetupProps& props, char* infile);
30 };
31 
32 
37 template<class T>
38 int ConfigureSIM(T& sim, char* infile,
39  const typename T::SetupProps& props = typename T::SetupProps())
40 {
42  return setup.setup(sim,props,infile);
43 }
44 
45 #endif
int ConfigureSIM(T &sim, char *infile, const typename T::SetupProps &props=typename T::SetupProps())
Configuration template.
Definition: SIMconfigure.h:38
Struct for configuring a given simulator.
Definition: SIMconfigure.h:24
int setup(T &sim, const typename T::SetupProps &props, char *infile)
Configures a simulator.