Solved! Thanks a lot, Gary!
Hi there, I'm looking for a way to check if a substring is contained in a string using CLIPS in C++, but at the moment i can't find a solution for it. I was reading the advanced documentation guide and i found a reference to str-index, which gives me an INTEGER of the position if the substring matches inside the string or FALSE otherwise. However this function is present only in CLIPS command line and it hasn't a corresponding construct to be used in C++. The only function present in strngfun.c/.h...
Thanks a lot Gary! I solved it.
Hi there, i have a question for you. Am I able to combine the commands Load(env, ...) and Eval(env, "an assertion")? I need it because I want to load a deftemplate and a defrule from a map loaded at the start of my app and after execute some evaluations built at runtime on those definitions. Here is my method, if you need to see it: void rules_engine::analyze(QString assertion) { Environment *env; env = CreateEnvironment(); Load(env, this->map.value("example.clp").c_str()); Reset(env); Eval(env,"(watch...
Hi there, i have a question for you. Am I able to combine the commands Load(env, ...) and Eval(env, "an assertion")? I need it because I want to load a deftemplate and a defrule from a map loaded at the start of my app and after execute some evaluations built at runtime on those definitions. Here is my method, if you need to see it: void rules_engine::analyze(QString assertion) { Environment *env; env = CreateEnvironment(); Load(env, this->map.value("example.clp").c_str()); Reset(env); Eval(env,"(watch...