Reads and writes rule bases from and to XML-files. More...
#include <Fuzzy/RuleBase.h>Go to the source code of this file.
Functions | |
| RuleBase | build_rule_base_from_xml (const std::string &descriptionFile) |
| Reads a RuleBase from XML file. | |
| bool | save_rule_base_to_xml (const std::string &descriptionFile, RuleBase &rb) |
| Writes a RuleBase into a XML file. | |
Reads and writes rule bases from and to XML-files.
Definition in file RuleBaseGenerator.h.
| RuleBase build_rule_base_from_xml | ( | const std::string & | descriptionFile | ) |
Reads a RuleBase from XML file.
Definition at line 45 of file RuleBaseGenerator.cpp.
References RuleBase::addRule(), RuleBase::addToInputFormat(), RuleBase::addToOutputFormat(), AND, XMLNode::getAttribute(), XMLNode::getChildNode(), XMLNode::getText(), XMLNode::isAttributeSet(), XMLNode::nChildNode(), XMLNode::openFileHelper(), OR, PROBOR, and PROD.
| bool save_rule_base_to_xml | ( | const std::string & | descriptionFile, | |
| RuleBase & | rb | |||
| ) |
Writes a RuleBase into a XML file.
| descriptionFile | the output file | |
| rb | the RuleBase to write |
Definition at line 181 of file RuleBaseGenerator.cpp.
References RuleBase::getFirstConclIt(), RuleBase::getFirstFormatIterator(), RuleBase::getFirstIterator(), RuleBase::getLastConclIt(), RuleBase::getLastFormatIterator(), and RuleBase::getLastIterator().