58 |
|
virtual ~HydrodynamicsModelCreator() {} |
59 |
|
const std::string& getIdent() const { return ident_; } |
60 |
|
|
61 |
< |
virtual HydrodynamicsModel* create(StuntDouble* sd, const DynamicProperty& param ) const = 0; |
61 |
> |
virtual HydrodynamicsModel* create(StuntDouble* sd, SimInfo* info) const = 0; |
62 |
|
|
63 |
|
private: |
64 |
|
std::string ident_; |
72 |
|
class HydrodynamicsModelBuilder : public HydrodynamicsModelCreator { |
73 |
|
public: |
74 |
|
HydrodynamicsModelBuilder(const std::string& ident) : HydrodynamicsModelCreator(ident) {} |
75 |
< |
virtual HydrodynamicsModel* create(StuntDouble* sd, const DynamicProperty& param ) const {return new ConcreteHydrodynamicsModel(sd, param);} |
75 |
> |
virtual HydrodynamicsModel* create(StuntDouble* sd, SimInfo* info) const {return new ConcreteHydrodynamicsModel(sd, info);} |
76 |
|
}; |
77 |
|
|
78 |
|
} |