virtual P6R::P6ERR P6R::p6IRuleEngine::modifyRules ( const P6CHAR *  pRuleDef  )  [pure virtual]

Add, modify, and/or delete rules to the rule base stored in the component.

This method can be called repeatedly even after the evaluate() function has been called. So in other words the Rule Engine component allows the rules to be changed during phases of rule evaluation. When new rules are added or modified this method "compiles" those rules so that they can be interpreted via the evaluate() call.

Parameters:
pRuleDef [IN] P6R's XML rule language, see language definition document.
Returns:
SuccessP6R::eOk 
FailureP6R::eNotInitializedA successful call to intialize() must be made before calling this funciton.
P6R::eInvalidArgpRuleDef is NULL.
P6R::eFormatErrorOne or more compiler error detected and written to the error stream defined in intialize().
P6R::eAcessCannot delete the "#default" rule set with a 'delete-ruleset' element.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
Copyright © 2004 - 2010 P6R Inc. - All Rights Reserved.