OpenTracker

An Open Architecture for Reconfigurable Tracking based on XML | Contact

ot::SpeechSetBase Class Reference

#include <SpeechSet.h>

Inheritance diagram for ot::SpeechSetBase:

Inheritance graph
[legend]
Collaboration diagram for ot::SpeechSetBase:

Collaboration graph
[legend]
List of all members.

Public Member Functions

DWORD GetId ()
virtual const char * GetName ()
virtual bool IsCommandRegistered (const char *p_Command)
virtual bool IsCommandIdRegistered (DWORD p_CommandId)
virtual long GetCommandId (const char *p_Command)
virtual bool GetCommand (DWORD p_CommandId, std::string &p_Command)
virtual void AddCommand (const char *p_Command, DWORD p_CommandId=-1, float p_Weight=1.0f)
virtual void RemoveCommand (const char *p_Command)
virtual void RemoveCommand (DWORD p_CommandId)
virtual bool GetReco (std::string &p_Result)
void Activate ()
void Deactivate ()
bool IsActive ()

Protected Member Functions

virtual void Initialize ()
virtual void Destroy ()
 SpeechSetBase (const char *p_Name, DWORD p_Id, SpeechCoreBase *p_SpeechCore)
virtual ~SpeechSetBase ()

Protected Attributes

bool m_Active
std::string m_Name
DWORD m_Id
SpeechCoreBasem_SpeechCore
std::vector< SSpeechCommandm_RegisteredCommands
StringQueue m_RecogizedCommands

Friends

class SpeechCoreBase

Detailed Description

Definition at line 70 of file SpeechSet.h.


Constructor & Destructor Documentation

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

Definition at line 104 of file SpeechSet.h.

References Initialize(), m_Id, m_Name, and m_SpeechCore.

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

Definition at line 112 of file SpeechSet.h.

References Destroy().


Member Function Documentation

void ot::SpeechSetBase::Activate (  ) 

Activate this SpeechSet.

Reimplemented in ot::CSpeechSet.

Definition at line 166 of file SpeechSet.cxx.

References IsActive(), and m_Active.

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

void ot::SpeechSetBase::Deactivate (  ) 

Deactivate this SpeechSet.

Reimplemented in ot::CSpeechSet.

Definition at line 173 of file SpeechSet.cxx.

References IsActive(), and m_Active.

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

destroys (cleanup) all class members

Reimplemented in ot::CSpeechSet.

Definition at line 95 of file SpeechSet.h.

References m_Active, and m_SpeechCore.

Referenced by ~SpeechSetBase().

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

get the command from a command id

Reimplemented in ot::CSpeechSet.

Definition at line 106 of file SpeechSet.cxx.

References m_RegisteredCommands.

Referenced by ot::SpeechModule::GetCommand().

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

get id of the command

Reimplemented in ot::CSpeechSet.

Definition at line 95 of file SpeechSet.cxx.

References m_RegisteredCommands.

DWORD ot::SpeechSetBase::GetId (  ) 

get the id of this SpeechSet

Reimplemented in ot::CSpeechSet.

Definition at line 57 of file SpeechSet.cxx.

References m_Id, and m_SpeechCore.

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

get the name of this SpeechSet

Reimplemented in ot::CSpeechSet.

Definition at line 65 of file SpeechSet.cxx.

References m_Name, and m_SpeechCore.

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

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

Reimplemented in ot::CSpeechSet.

Definition at line 151 of file SpeechSet.h.

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

initializes all class members

Reimplemented in ot::CSpeechSet.

Definition at line 88 of file SpeechSet.h.

References m_Active, and m_SpeechCore.

Referenced by SpeechSetBase().

bool ot::SpeechSetBase::IsActive (  ) 

Wether this SpeechSet is active or not.

Reimplemented in ot::CSpeechSet.

Definition at line 180 of file SpeechSet.cxx.

References m_Active.

Referenced by Activate(), and Deactivate().

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

wheter this command is register or not

Reimplemented in ot::CSpeechSet.

Definition at line 84 of file SpeechSet.cxx.

References m_RegisteredCommands.

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

wheter this command is register or not

Reimplemented in ot::CSpeechSet.

Definition at line 73 of file SpeechSet.cxx.

References m_RegisteredCommands.

Referenced by AddCommand().

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

Remove a command from this set.

Reimplemented in ot::CSpeechSet.

Definition at line 154 of file SpeechSet.cxx.

References m_RegisteredCommands.

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

Remove a command from this set.

Reimplemented in ot::CSpeechSet.

Definition at line 141 of file SpeechSet.cxx.

References m_RegisteredCommands.


Friends And Related Function Documentation

friend class SpeechCoreBase [friend]

Definition at line 164 of file SpeechSet.h.


Member Data Documentation

bool ot::SpeechSetBase::m_Active [protected]

Reimplemented in ot::CSpeechSet.

Definition at line 74 of file SpeechSet.h.

Referenced by Activate(), Deactivate(), Destroy(), Initialize(), and IsActive().

Name of this Speech Set.

Reimplemented in ot::CSpeechSet.

Definition at line 77 of file SpeechSet.h.

Referenced by GetId(), and SpeechSetBase().

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

is this speech set active

Reimplemented in ot::CSpeechSet.

Definition at line 76 of file SpeechSet.h.

Referenced by GetName(), and SpeechSetBase().

All registered Commands in this SpeechSet.

Reimplemented in ot::CSpeechSet.

Definition at line 82 of file SpeechSet.h.

Parent Speech Core object (must be always valid).

Reimplemented in ot::CSpeechSet.

Definition at line 80 of file SpeechSet.h.

Referenced by AddCommand(), GetCommand(), GetCommandId(), IsCommandIdRegistered(), IsCommandRegistered(), and RemoveCommand().

Id of this Speech Set.

Reimplemented in ot::CSpeechSet.

Definition at line 78 of file SpeechSet.h.

Referenced by AddCommand(), Destroy(), GetId(), GetName(), Initialize(), and SpeechSetBase().


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

copyright (c) 2006 Graz University of Technology