8 |
|
class BaseLatticeCreator{ |
9 |
|
public: |
10 |
|
virtual BaseLattice* createLattice() = 0; |
11 |
< |
const string& getType() {return latticeType;} |
11 |
> |
const std::string& getType() {return latticeType;} |
12 |
|
|
13 |
|
protected: |
14 |
< |
BaseLatticeCreator(const string& latType); |
14 |
> |
BaseLatticeCreator(const std::string& latType); |
15 |
|
private: |
16 |
|
std::string latticeType; |
17 |
|
}; |
20 |
|
class LatticeCreator : public BaseLatticeCreator |
21 |
|
{ |
22 |
|
public: |
23 |
< |
LatticeCreator(const string& latticeType): BaseLatticeCreator(latticeType) {} |
23 |
> |
LatticeCreator(const std::string& latticeType): BaseLatticeCreator(latticeType) {} |
24 |
|
virtual BaseLattice* createLattice() { return new LatticeClass();} |
25 |
|
}; |
26 |
|
|