AxSpeechEventHandler Class Reference

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

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

Implemented in AxStandardSpeechEventHandler.

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

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

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

Is this punctuation?

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

Remove trailing 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.

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.


Member Data Documentation

AxSpeechEventHandler* AxSpeechEventHandler::m_nextHandler [protected]


The documentation for this class was generated from the following files:
Generated on Wed May 6 19:20:22 2009 for AxTk by  doxygen 1.5.1