myCallBacks Class Reference

My Custom CallBacks class. More...

List of all members.

Public Member Functions

void categoryLoaded ()
 This is called for each AIML category that is loaded into memory.
void filePostLoad (const char *const fileName)
 After each AIML file is parsed, this method is called.
void filePreLoad (const char *const fileName)
 Before each AIML file is parsed this method is called.
void infiniteSymbolicReduction ()
 A infinite symbolic reduction has occured and has been terminated.
virtual void inputTagNumericConversionError (const char *const message)
 A AIML "Input" tag has a non number in its index attribute.
virtual void inputTagSizeExceeded ()
 During runtime, the "input" AIML tag's size is exceeded.
virtual void starTagNumericConversionError (const char *const message)
 A AIML "Star" tag has a non number in its index attribute.
virtual void starTagSizeExceeded ()
 During runtime, the "star" AIML tag's size is exceeded.
void storeGossip (const char *const gossip)
 This is called for each AIML "Gossip" tag.
void symbolicReduction (const char *const symbol)
 When the "srai" AIML tag is called, the text is sent to this method.
virtual void thatStarTagNumericConversionError (const char *const message)
 A AIML "thatStar" tag has a non number in its index attribute.
virtual void thatStarTagSizeExceeded ()
 During runtime, the "thatStar" AIML tag's size is exceeded.
virtual void thatTagNumericConversionError (const char *const message)
 A AIML "That" tag has a non number in its index attribute.
virtual void thatTagSizeExceeded ()
 During runtime, the "that" AIML tag's size is exceeded.
virtual void topicStarTagNumericConversionError (const char *const message)
 A AIML "TopicStar" tag has a non number in its index attribute.
virtual void topicStarTagSizeExceeded ()
 During runtime, the "topicStar" AIML tag's size is exceeded.
virtual void XMLParseError (const char *const message)
 Sends you a message about a XMLParseError.
virtual void XMLParseFatalError (const char *const message)
 Sends you a message about a XMLParseFatalError.
virtual void XMLParseWarning (const char *const message)
 Sends you a message about a XMLParseWarning.


Detailed Description

My Custom CallBacks class.

This class inherits from Rebecca's CallBacks class and implements the callbacks for error reporting and informational reporting purposes.

Although, I pain stakenly reimplemnt every single method, you don't have to. Just pick and choose which ones you want to implement, and ignore the rest. All of the methods of CallBacks has a default do nothing implementation.


Member Function Documentation

void categoryLoaded  )  [inline]
 

This is called for each AIML category that is loaded into memory.

Loadtime occurs whenver the call GraphBuilder::createGraph() is made. For every 5000 categories loaded into Rebecca's internal data structure this prints a output message about it.

void filePostLoad const char *const   fileName  )  [inline]
 

After each AIML file is parsed, this method is called.

Parameters:
fileName The name of the file just parsed.

void filePreLoad const char *const   fileName  )  [inline]
 

Before each AIML file is parsed this method is called.

Parameters:
fileName The name of the file about to be parsed.

void infiniteSymbolicReduction  )  [inline]
 

A infinite symbolic reduction has occured and has been terminated.

This method is called when symbolic reduction ends up in a infinite loop and has been terminated. This is just to alert you to the fact.

virtual void inputTagNumericConversionError const char *const   message  )  [inline, virtual]
 

A AIML "Input" tag has a non number in its index attribute.

This method will only be called during loadtime, GraphBuilder::createGraph().

Parameters:
message The human readable message.

virtual void inputTagSizeExceeded  )  [inline, virtual]
 

During runtime, the "input" AIML tag's size is exceeded.

Runtime is during a call to GraphBuilder::getResponse()

virtual void starTagNumericConversionError const char *const   message  )  [inline, virtual]
 

A AIML "Star" tag has a non number in its index attribute.

This method will only be called during loadtime, GraphBuilder::createGraph().

Parameters:
message The human readable message.

virtual void starTagSizeExceeded  )  [inline, virtual]
 

During runtime, the "star" AIML tag's size is exceeded.

Runtime is during a call to GraphBuilder::getResponse()

void storeGossip const char *const   gossip  )  [inline]
 

This is called for each AIML "Gossip" tag.

I am just printing out the gossip. You can do other things like store it in a file and then reload the file at startup as a type of persistance.

Parameters:
gossip The gossip sent to be stored as you see fit

void symbolicReduction const char *const   symbol  )  [inline]
 

When the "srai" AIML tag is called, the text is sent to this method.

Usually refered to as symbolic reduction, you can see what text is being re-fed back into the AIML GraphBuilder::getResponse() by AIML its self.

Parameters:
symbol The text which is being sent back into GraphBuilder::getResponse().

virtual void thatStarTagNumericConversionError const char *const   message  )  [inline, virtual]
 

A AIML "thatStar" tag has a non number in its index attribute.

This method will only be called during loadtime, GraphBuilder::createGraph().

Parameters:
message The human readable message.

virtual void thatStarTagSizeExceeded  )  [inline, virtual]
 

During runtime, the "thatStar" AIML tag's size is exceeded.

Runtime is during a call to GraphBuilder::getResponse()

virtual void thatTagNumericConversionError const char *const   message  )  [inline, virtual]
 

A AIML "That" tag has a non number in its index attribute.

This method will only be called during loadtime, GraphBuilder::createGraph().

Parameters:
message The human readable message.

virtual void thatTagSizeExceeded  )  [inline, virtual]
 

During runtime, the "that" AIML tag's size is exceeded.

Runtime is during a call to GraphBuilder::getResponse()

virtual void topicStarTagNumericConversionError const char *const   message  )  [inline, virtual]
 

A AIML "TopicStar" tag has a non number in its index attribute.

This method will only be called during loadtime, GraphBuilder::createGraph().

Parameters:
message The human readable message.

virtual void topicStarTagSizeExceeded  )  [inline, virtual]
 

During runtime, the "topicStar" AIML tag's size is exceeded.

Runtime is during a call to GraphBuilder::getResponse()

virtual void XMLParseError const char *const   message  )  [inline, virtual]
 

Sends you a message about a XMLParseError.

Either with AIML files or RebeccaAIML configuration files.

Parameters:
message The human readable message.

virtual void XMLParseFatalError const char *const   message  )  [inline, virtual]
 

Sends you a message about a XMLParseFatalError.

Either with AIML files or RebeccaAIML configuration files.

Parameters:
message The human readable message.

virtual void XMLParseWarning const char *const   message  )  [inline, virtual]
 

Sends you a message about a XMLParseWarning.

Either with AIML files or RebeccaAIML configuration files.

Parameters:
message The human readable message.


The documentation for this class was generated from the following file:
Generated on Fri Sep 1 17:35:42 2006 for RebeccaAIML by  doxygen 1.4.5