44 |
|
* |
45 |
|
* Created by Charles F. Vardeman II on 11/15/05. |
46 |
|
* @author Charles F. Vardeman II |
47 |
< |
* @version $Id: OptionSectionParser.hpp,v 1.1 2005-11-16 21:37:41 chuckv Exp $ |
47 |
> |
* @version $Id: OptionSectionParser.hpp,v 1.2 2005-11-16 23:10:02 tim Exp $ |
48 |
|
* |
49 |
|
*/ |
50 |
|
|
51 |
|
#ifndef IO_OPTIONSECTIONPARSER_HPP |
52 |
|
#define IO_OPTIONSECTIONPARSER_HPP |
53 |
|
|
54 |
+ |
#include "io/ForceFieldOptions.hpp" |
55 |
|
#include "io/SectionParser.hpp" |
56 |
|
#include "types/AtomType.hpp" |
57 |
|
|
58 |
|
namespace oopse { |
59 |
+ |
|
60 |
|
|
61 |
|
/** |
62 |
|
* @class OptionSectionParser OptionSectionParser.hpp "io/OptionSectionParser.hpp" |
63 |
|
*/ |
64 |
|
class OptionSectionParser : public SectionParser { |
65 |
|
public: |
66 |
< |
OptionSectionParser(); |
67 |
< |
|
68 |
< |
DeclareParameter(MixingRule, std::string); |
67 |
< |
|
66 |
> |
OptionSectionParser(ForceFieldOptions& options); |
67 |
> |
virtual void validateSection(); |
68 |
> |
|
69 |
|
private: |
70 |
|
virtual void parseLine(ForceField& ff, const std::string& line, int lineNo); |
71 |
+ |
ForceFieldOptions& options_; |
72 |
|
|
71 |
– |
typedef std::map<std::string, ParameterBase*> ParamMap; |
72 |
– |
ParamMap parameters_; |
73 |
– |
|
74 |
– |
|
75 |
– |
|
73 |
|
}; |
74 |
|
|
75 |
|
|