|
virtual P6R::P6ERR P6R::p6IRuleEngine::initialize |
( |
P6RULEFLAGS |
flags, |
|
|
p6IDataStream * |
pErrorResult | |
|
) |
| | [pure virtual] |
Sets up the component to run properly.
- Parameters:
-
| flags | [IN] Set perferences for the new object. These preferences are fixed during the lifetime of the object. Note that using the P6RULE_USEJSON flag will make the Rule Engine expect that the stated fact tree input is encoded in JSON rather than XML (which is the default). |
| pErrorResult | [IN] Stream to output parsing errors to during the life time of the component (e.g., during calls to startFacts(), continueFacts()). |
- Returns:
Success | P6R::eOk | |
Failure | P6R::eNoMemory | Insuffficient memory to properly initialize the component |
P6R::eAlreadyInitialized | Can only be called once successfully. |
|