ot::SpeechSetBase Class Reference

#include <SpeechSet.h>

Collaboration diagram for ot::SpeechSetBase:

Collaboration graph
[legend]
List of all members.

Public Member Functions

DWORD GetId ()
 get the id of this SpeechSet
virtual const char * GetName ()
 get the name of this SpeechSet
virtual bool IsCommandRegistered (const char *p_Command)
 wheter this command is register or not
virtual bool IsCommandIdRegistered (DWORD p_CommandId)
 wheter this command is register or not
virtual long GetCommandId (const char *p_Command)
 get id of the command
virtual bool GetCommand (DWORD p_CommandId, std::string &p_Command)
 get the command from a command id
virtual void AddCommand (const char *p_Command, DWORD p_CommandId=-1, float p_Weight=1.0f)
 Add a new command to this set.
virtual void RemoveCommand (const char *p_Command)
 Remove a command from this set.
virtual void RemoveCommand (DWORD p_CommandId)
 Remove a command from this set.
virtual bool GetReco (std::string &p_Result)
 get the next recognized command, returns true when there is a result
void Activate ()
 Activate this SpeechSet.
void Deactivate ()
 Deactivate this SpeechSet.
bool IsActive ()
 Wether this SpeechSet is active or not.

Protected Member Functions

virtual void Initialize ()
 initializes all class members
virtual void Destroy ()
 destroys (cleanup) all class members
 SpeechSetBase (const char *p_Name, DWORD p_Id, SpeechCoreBase *p_SpeechCore)
virtual ~SpeechSetBase ()

Protected Attributes

bool m_Active
std::string m_Name
 is this speech set active
DWORD m_Id
 Name of this Speech Set.
SpeechCoreBasem_SpeechCore
 Id of this Speech Set.
std::vector< SSpeechCommandm_RegisteredCommands
 Parent Speech Core object (must be always valid).
StringQueue m_RecogizedCommands
 All registered Commands in this SpeechSet.

Friends

class SpeechCoreBase

Constructor & Destructor Documentation

ot::SpeechSetBase::SpeechSetBase const char *  p_Name,
DWORD  p_Id,
SpeechCoreBase p_SpeechCore
[inline, protected]
 

virtual ot::SpeechSetBase::~SpeechSetBase  )  [inline, protected, virtual]
 


Member Function Documentation

void ot::SpeechSetBase::Activate  ) 
 

Activate this SpeechSet.

void ot::SpeechSetBase::AddCommand const char *  p_Command,
DWORD  p_CommandId = -1,
float  p_Weight = 1.0f
[virtual]
 

Add a new command to this set.

void ot::SpeechSetBase::Deactivate  ) 
 

Deactivate this SpeechSet.

virtual void ot::SpeechSetBase::Destroy void   )  [inline, protected, virtual]
 

destroys (cleanup) all class members

bool ot::SpeechSetBase::GetCommand DWORD  p_CommandId,
std::string &  p_Command
[virtual]
 

get the command from a command id

long ot::SpeechSetBase::GetCommandId const char *  p_Command  )  [virtual]
 

get id of the command

DWORD ot::SpeechSetBase::GetId  ) 
 

get the id of this SpeechSet

const char * ot::SpeechSetBase::GetName  )  [virtual]
 

get the name of this SpeechSet

virtual bool ot::SpeechSetBase::GetReco std::string &  p_Result  )  [inline, virtual]
 

get the next recognized command, returns true when there is a result

virtual void ot::SpeechSetBase::Initialize void   )  [inline, protected, virtual]
 

initializes all class members

bool ot::SpeechSetBase::IsActive  ) 
 

Wether this SpeechSet is active or not.

bool ot::SpeechSetBase::IsCommandIdRegistered DWORD  p_CommandId  )  [virtual]
 

wheter this command is register or not

bool ot::SpeechSetBase::IsCommandRegistered const char *  p_Command  )  [virtual]
 

wheter this command is register or not

void ot::SpeechSetBase::RemoveCommand DWORD  p_CommandId  )  [virtual]
 

Remove a command from this set.

void ot::SpeechSetBase::RemoveCommand const char *  p_Command  )  [virtual]
 

Remove a command from this set.


Friends And Related Function Documentation

friend class SpeechCoreBase [friend]
 


Member Data Documentation

bool ot::SpeechSetBase::m_Active [protected]
 

DWORD ot::SpeechSetBase::m_Id [protected]
 

Name of this Speech Set.

std::string ot::SpeechSetBase::m_Name [protected]
 

is this speech set active

StringQueue ot::SpeechSetBase::m_RecogizedCommands [protected]
 

All registered Commands in this SpeechSet.

std::vector<SSpeechCommand> ot::SpeechSetBase::m_RegisteredCommands [protected]
 

Parent Speech Core object (must be always valid).

SpeechCoreBase* ot::SpeechSetBase::m_SpeechCore [protected]
 

Id of this Speech Set.


The documentation for this class was generated from the following files:
Generated on Wed Feb 28 15:33:05 2007 for NaviTrack by  doxygen 1.4.6