ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-3.0/src/visitors/BaseVisitor.hpp
(Generate patch)

Comparing branches/new_design/OOPSE-3.0/src/visitors/BaseVisitor.hpp (file contents):
Revision 1817 by tim, Wed Nov 3 18:00:36 2004 UTC vs.
Revision 1818 by tim, Wed Dec 1 20:05:49 2004 UTC

# Line 2 | Line 2 | using namespace std;
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:
# Line 22 | Line 19 | class BaseVisitor{
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");
# Line 40 | Line 37 | class BaseVisitor{
37      }
38  
39    protected:
40 +    
41      BaseVisitor() {}
42 <    string visitorName;
42 >
43 >    std::string visitorName;
44   };
45  
46   }//end namespace oopse

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines