AxSpeechEventHandler Class Reference
[Basic AxTk UI classes]

An object that handles speech events. More...

#include <ax/ax_speech.h>

Inheritance diagram for AxSpeechEventHandler:

AxStandardSpeechEventHandler

List of all members.

Public Member Functions

 AxSpeechEventHandler ()
virtual bool ProcessSpeechEvent (AxSpeech *speech, AxSpeechEvent &event)=0
AxSpeechEventHandlerGetNextHandler () const
void SetNextHandler (AxSpeechEventHandler *handler)

Static Public Member Functions

static bool IsPunctuation (const wxChar &ch)
 Is this punctuation?
static bool RemoveTrailingPunctuation (wxString &str)
 Remove trailing punctuation.
static bool AddStop (wxString &str, const wxString &punct=wxT("."))
 Add a full stop to the string, unless there's already one there.
static bool AddPause (wxString &str, const wxString &punct=wxT(";"))
 Add a semicolon to the string to create a pause, unless there's already one there.

Protected Attributes

AxSpeechEventHandlerm_nextHandler


Detailed Description

An object that handles speech events.

Constructor & Destructor Documentation

AxSpeechEventHandler::AxSpeechEventHandler (  )  [inline]


Member Function Documentation

bool AxSpeechEventHandler::AddPause ( wxString &  str,
const wxString &  punct = wxT(";") 
) [static]

Add a semicolon to the string to create a pause, unless there's already one there.

Remove extra punctuation.

bool AxSpeechEventHandler::AddStop ( wxString &  str,
const wxString &  punct = wxT(".") 
) [static]

Add a full stop to the string, unless there's already one there.

Remove extra punctuation, e.g. semicolon.

AxSpeechEventHandler* AxSpeechEventHandler::GetNextHandler (  )  const [inline]

bool AxSpeechEventHandler::IsPunctuation ( const wxChar &  ch  )  [static]

Is this punctuation?

virtual bool AxSpeechEventHandler::ProcessSpeechEvent ( AxSpeech speech,
AxSpeechEvent event 
) [pure virtual]

bool AxSpeechEventHandler::RemoveTrailingPunctuation ( wxString &  str  )  [static]

Remove trailing punctuation.

void AxSpeechEventHandler::SetNextHandler ( AxSpeechEventHandler handler  )  [inline]


Member Data Documentation


The documentation for this class was generated from the following files:

Generated on Wed May 6 19:22:08 2009 for AxTk by  doxygen 1.5.8