Loading...
Searching...
No Matches
ruleProcessor.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: ruleProcessor.h,v 1.17 2005/12/23 17:01:52 amoll Exp $
//
// Molecular Mechanics: rule-based assignment of properties (typenames, charges, radii, etc.)
#ifndef BALL_MOLMEC_COMMON_RULEPROCESSOR_H
#define BALL_MOLMEC_COMMON_RULEPROCESSOR_H
#ifndef BALL_MOLMEC_COMMON_RULEEVALUATOR_H
# include <BALL/MOLMEC/COMMON/ruleEvaluator.h>
#endif
#ifndef BALL_CONCEPT_PROCESSOR_H
# include <BALL/CONCEPT/processor.h>
#endif
namespace BALL
{
class BALL_EXPORT RuleProcessor
: public UnaryProcessor<Atom>
{
public:
BALL_CREATE(RuleProcessor)
RuleProcessor();
RuleProcessor(INIFile& file, const String& prefix);
RuleProcessor(const RuleProcessor& rule_processor);
~RuleProcessor();
void clear();
void destroy();
bool initialize(INIFile& file, const String& prefix);
const RuleProcessor& operator = (const RuleProcessor& rule_processor);
void set(const RuleProcessor& rule_processor);
virtual bool start();
virtual bool finish();
String evaluate(const Atom& atom);
bool isValid() const;
void dump(std::ostream& s = std::cout) const;
protected:
//_
RuleEvaluator evaluator_;
//_
bool valid_;
};
} // namespace BALL
#endif // BALL_MOLMEC_COMMON_RULEPROCESSOR_H
BALL_EXPORT
#define BALL_EXPORT
Definition COMMON/global.h:50
BALL::Atom
Definition atom.h:90
BALL::INIFile
Definition INIFile.h:29
BALL::RuleEvaluator
Definition ruleEvaluator.h:38
BALL::RuleProcessor::valid_
bool valid_
Definition ruleProcessor.h:119
BALL::RuleProcessor::clear
void clear()
BALL::RuleProcessor::evaluator_
RuleEvaluator evaluator_
Definition ruleProcessor.h:116
BALL::RuleProcessor::dump
void dump(std::ostream &s=std::cout) const
BALL::RuleProcessor::finish
virtual bool finish()
BALL::RuleProcessor::initialize
bool initialize(INIFile &file, const String &prefix)
BALL::RuleProcessor::RuleProcessor
RuleProcessor()
BALL::RuleProcessor::destroy
void destroy()
BALL::RuleProcessor::start
virtual bool start()
BALL::RuleProcessor::evaluate
String evaluate(const Atom &atom)
BALL::RuleProcessor::set
void set(const RuleProcessor &rule_processor)
BALL::RuleProcessor::isValid
bool isValid() const
BALL::String
Definition string.h:57
BALL::UnaryProcessor< Atom >::UnaryProcessor
UnaryProcessor()
Definition processor.h:69
BALL_CREATE
#define BALL_CREATE(name)
Definition create.h:62
BALL
Definition constants.h:13
std
STL namespace.
processor.h
ruleEvaluator.h