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
void ClipsTemplate(char *name)
Construct a new template.
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).
ClipsTemplateSlot * SlotExists(char *slot_name)
Returns a template slot if it exists.
void Write(ostream& stream)
Write the template to the given stream.