Debian Codegraph @

include/BALL/MOLMEC/COMMON/ruleProcessor.h

raw symbols SCIP
1 // -*- Mode: C++; tab-width: 2; -*-
2 // vi: set ts=2:
3 //
4 // $Id: ruleProcessor.h,v 1.17 2005/12/23 17:01:52 amoll Exp $
5 //
6
7 // Molecular Mechanics: rule-based assignment of properties (typenames, charges, radii, etc.)
8
9 #ifndef BALL_MOLMEC_COMMON_RULEPROCESSOR_H
10 #define BALL_MOLMEC_COMMON_RULEPROCESSOR_H
11
12 #ifndef BALL_MOLMEC_COMMON_RULEEVALUATOR_H
13 # include <BALL/MOLMEC/COMMON/ruleEvaluator.h>
14 #endif
15
16 #ifndef BALL_CONCEPT_PROCESSOR_H
17 # include <BALL/CONCEPT/processor.h>
18 #endif
19
20 namespace BALL
21 {
22 /** Rule Processor class.
23
24 \ingroup MolmecAssignment
25 */
26 class BALL_EXPORT RuleProcessor
27 : public UnaryProcessor<Atom>
28 {
29 public:
30
31 BALL_CREATE(RuleProcessor)
32
33 /** Constructors and Destructors
34 */
35 //@{
36
37 /** Default constructor
38 */
39 RuleProcessor();
40
41 /** Detailed constructor
42 */
43 RuleProcessor(INIFile& file, const String& prefix);
44
45 /** Copy constructor
46 */
47 RuleProcessor(const RuleProcessor& rule_processor);
48
49 /** Destructor
50 */
51 ~RuleProcessor();
52
53 /**
54 */
55 void clear();
56
57 /**
58 */
59 void destroy();
60
61 //@}
62 /** @name Accessors
63 */
64 //@{
65
66 /**
67 */
68 bool initialize(INIFile& file, const String& prefix);
69
70 //@}
71 /** @name Assignment
72 */
73 //@{
74
75 /**
76 */
77 const RuleProcessor& operator = (const RuleProcessor& rule_processor);
78
79 /**
80 */
81 void set(const RuleProcessor& rule_processor);
82
83 //@}
84 /** @name Processor related methods
85 */
86 //@{
87
88 /**
89 */
90 virtual bool start();
91
92 /**
93 */
94 virtual bool finish();
95
96 /**
97 */
98 String evaluate(const Atom& atom);
99
100 //@}
101 /** @name Debugging and Diagnostics
102 */
103 //@{
104
105 ///
106 bool isValid() const;
107
108 ///
109 void dump(std::ostream& s = std::cout) const;
110
111 //@}
112
113 protected:
114
115 //_
116 RuleEvaluator evaluator_;
117
118 //_
119 bool valid_;
120 };
121 } // namespace BALL
122
123
124 #endif // BALL_MOLMEC_COMMON_RULEPROCESSOR_H