25 |
|
|
26 |
|
#ifndef IO_BENDTYPESSECTIONPARSER_HPP |
27 |
|
#define IO_BENDTYPESSECTIONPARSER_HPP |
28 |
< |
|
28 |
> |
#include <map> |
29 |
|
#include "io/SectionParser.hpp" |
30 |
|
namespace oopse { |
31 |
|
|
33 |
|
* @class BendTypesSectionParser BendTypesSectionParser.hpp "io/BendTypesSectionParser.hpp" |
34 |
|
*/ |
35 |
|
class BendTypesSectionParser : public SectionParser { |
36 |
+ |
public: |
37 |
+ |
BendTypesSectionParser(); |
38 |
+ |
|
39 |
|
private: |
40 |
< |
void parseLine(ForceFiled& ff, const std::string& line, int lineNo); |
40 |
> |
|
41 |
> |
enum BendTypeEnum{ |
42 |
> |
btHarmonic, |
43 |
> |
btGhostBend, |
44 |
> |
btUreyBradley, |
45 |
> |
btCubic, |
46 |
> |
btQuartic, |
47 |
> |
btPolynomial, |
48 |
> |
btUnknown |
49 |
> |
}; |
50 |
|
|
51 |
+ |
void parseLine(ForceField& ff, const std::string& line, int lineNo); |
52 |
+ |
|
53 |
+ |
BendTypeEnum getBendTypeEnum(const std::string& str); |
54 |
+ |
|
55 |
+ |
std::map<std::string, BendTypeEnum> stringToEnumMap_; |
56 |
|
}; |
57 |
|
|
58 |
|
|