i am looking for a good c++ rule engine. can you please let me know if there there any XML based rule engine for C++
The Rules Engine is a . NET C# project that validates business logic by defining a multiple rules for your data classes.
A rules engine is a flexible piece of software that manages business rules. Think of business rules as “if-then” statements. So, a basic example of a rule would be, “If A, then B, else if X, then do Y.”
Rules engines or inference engines serve as pluggable software components which execute business rules that a business rules approach has externalized or separated from application code. This externalization or separation allows business users to modify the rules without the need for IT intervention.
Check CLIPS (developed originally by NASA) Its a rules engine written in C. It is under continuous development for many years. However, the rules are defined in LISP like rule defintion language.
Its hosted on sourceforge http://clipsrules.sourceforge.net/
I guess the answer to "what is a rule engine" is there : What can Rules Engines accomplish?
But that's a too broad definition. In fact a "rule engine" should be totally dependant on your domain. The engine will provide settings (XML based or anything else suitable for the task) and then apply the rules.
So look for domain-specific engines and you'll certainly find something useful.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With