2 |
|
#define _BASEVISITOR_H_ |
3 |
|
#include <iostream> |
4 |
|
#include <string> |
5 |
– |
using namespace std; |
5 |
|
|
7 |
– |
|
8 |
– |
class SimInfo; |
9 |
– |
|
6 |
|
namespace oopse { |
7 |
|
|
8 |
|
class Atom; |
9 |
|
class DirectionalAtom; |
10 |
|
class RigidBody; |
11 |
+ |
class SimInfo; |
12 |
|
|
13 |
|
class BaseVisitor{ |
14 |
|
public: |
19 |
|
|
20 |
|
virtual void update() {} |
21 |
|
|
22 |
< |
const string& getVisitorName() {return visitorName;} |
23 |
< |
virtual const string toString() { |
24 |
< |
string result; |
22 |
> |
const std::string& getVisitorName() {return visitorName;} |
23 |
> |
virtual const std::string toString() { |
24 |
> |
std::string result; |
25 |
|
char buffer[65535]; |
26 |
|
|
27 |
|
sprintf(buffer,"------------------------------------------------------------------\n"); |
37 |
|
} |
38 |
|
|
39 |
|
protected: |
40 |
+ |
|
41 |
|
BaseVisitor() {} |
42 |
< |
string visitorName; |
42 |
> |
|
43 |
> |
std::string visitorName; |
44 |
|
}; |
45 |
|
|
46 |
|
}//end namespace oopse |