| 1 |
|
#ifndef __SIMSETUP_H__ |
| 2 |
|
#define __SIMSETUP_H__ |
| 3 |
< |
|
| 3 |
> |
#include <string> |
| 4 |
|
#include "MakeStamps.hpp" |
| 5 |
|
#include "Globals.hpp" |
| 6 |
|
#include "ForceFields.hpp" |
| 8 |
|
#include "ReadWrite.hpp" |
| 9 |
|
#include "AllIntegrator.hpp" |
| 10 |
|
|
| 11 |
+ |
using namespace std; |
| 12 |
|
// this routine is defined in BASS_interface.cpp |
| 13 |
|
extern void set_interface_stamps( MakeStamps* ms, Globals* g ); |
| 14 |
|
|
| 15 |
+ |
string getPrefix(const string& str ){ |
| 16 |
+ |
string prefix = str; |
| 17 |
+ |
int pos; |
| 18 |
+ |
|
| 19 |
+ |
pos = prefix.rfind("."); |
| 20 |
+ |
return prefix.substr(0, pos); |
| 21 |
+ |
}; |
| 22 |
+ |
|
| 23 |
|
class SimSetup{ |
| 24 |
|
|
| 25 |
|
public: |