Contents Up Previous Next

ClipsTemplate: wxObject

A ClipsTemplate object represents a simplified representation of a CLIPS deftemplate. ClipsTemplates can be added to a list stored with the PrologDatabase to be written out along with the deffacts contained in the database. They may optionally be used to filter out unwanted slots when the facts are being written out.

ClipsTemplate::ClipsTemplate
ClipsTemplate::AddSlot
ClipsTemplate::SlotExists
ClipsTemplate::Write


ClipsTemplate::ClipsTemplate

void ClipsTemplate(char *name)

Construct a new template.


ClipsTemplate::AddSlot

void AddSlot(char *slot_name, char *default = NULL, Bool multi=FALSE)

Add a slot to a CLIPS template definition, with optional default and multislot flag (currently only one multislot allowed per template).


ClipsTemplate::SlotExists

ClipsTemplateSlot * SlotExists(char *slot_name)

Returns a template slot if it exists.


ClipsTemplate::Write

void Write(ostream& stream)

Write the template to the given stream.