RuleBaseGenerator.h File Reference

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.

Detailed Description

Reads and writes rule bases from and to XML-files.

Authors:
Marc Nunkesser

Definition in file RuleBaseGenerator.h.


Function Documentation

RuleBase build_rule_base_from_xml ( const std::string &  descriptionFile  ) 
bool save_rule_base_to_xml ( const std::string &  descriptionFile,
RuleBase rb 
)

Writes a RuleBase into a XML file.

Parameters:
descriptionFile the output file
rb the RuleBase to write
Returns:
true, in case of success

Definition at line 181 of file RuleBaseGenerator.cpp.

References RuleBase::getFirstConclIt(), RuleBase::getFirstFormatIterator(), RuleBase::getFirstIterator(), RuleBase::getLastConclIt(), RuleBase::getLastFormatIterator(), and RuleBase::getLastIterator().