Main Page   Namespace List   Class Hierarchy   Data Structures   File List   Namespace Members   Data Fields   Globals   Related Pages  

bogotel::CPlayOp Class Reference

#include <PlayOp.h>

Inheritance diagram for bogotel::CPlayOp:

Inheritance graph
[legend]
Collaboration diagram for bogotel::CPlayOp:

Collaboration graph
[legend]

Public Types

enum  timerType { singleWav = 2000 }

Public Member Functions

 CPlayOp (CVoiceDev *, const DX_IOTT *pIOTT, const DV_TPT *pTPT)
virtual ~CPlayOp ()
virtual void start ()
virtual long terminationEvent ()
virtual std::string toString ()

Protected Member Functions

virtual void _timerExpired (int timerType, int stateId)

Private Member Functions

void processIottEntry () throw (std::invalid_argument)
int getWavDuration (int hFile, long *plDuration)

Private Attributes

CTermParmsm_pTermParms
const DX_IOTT * m_pIott
bool m_bWasWavPlayed

Static Private Attributes

const char * s_szName = "CPlayOp"

Member Enumeration Documentation

enum bogotel::CPlayOp::timerType
 

Enumeration values:
singleWav 

Definition at line 28 of file PlayOp.h.


Constructor & Destructor Documentation

bogotel::CPlayOp::CPlayOp CVoiceDev ,
const DX_IOTT *  pIOTT,
const DV_TPT *  pTPT
 

Definition at line 23 of file PlayOp.cpp.

bogotel::CPlayOp::~CPlayOp  )  [virtual]
 

Definition at line 41 of file PlayOp.cpp.

References m_pTermParms.


Member Function Documentation

void bogotel::CPlayOp::start  )  [virtual]
 

Reimplemented from bogotel::CIOOp.

Definition at line 47 of file PlayOp.cpp.

References m_pTermParms, and bogotel::CTermParms::start().

long bogotel::CPlayOp::terminationEvent  )  [virtual]
 

Implements bogotel::CIOOp.

Definition at line 59 of file PlayOp.cpp.

std::string bogotel::CPlayOp::toString  )  [virtual]
 

Implements bogotel::CTimerTarget.

Definition at line 54 of file PlayOp.cpp.

References s_szName.

void bogotel::CPlayOp::_timerExpired int  timerType,
int  stateId
[protected, virtual]
 

Implements bogotel::CTimerTarget.

Definition at line 66 of file PlayOp.cpp.

References bogotel::CIOOp::log(), m_pTermParms, processIottEntry(), and bogotel::CTermParms::timerExpired().

void bogotel::CPlayOp::processIottEntry  )  throw (std::invalid_argument) [private]
 

Definition at line 84 of file PlayOp.cpp.

References bogotel::resultSUCCESS.

Referenced by _timerExpired().

int bogotel::CPlayOp::getWavDuration int  hFile,
long *  plDuration
[private]
 

Parameters:
hFile - handle to wav file
plDuration - returns length of wav file in milliseconds
Todo:
analyse wav header to get actual duration

Definition at line 141 of file PlayOp.cpp.

References bogotel::CIOOp::log(), bogotel::resultIOERROR, and bogotel::resultSUCCESS.


Field Documentation

const char * bogotel::CPlayOp::s_szName = "CPlayOp" [static, private]
 

Definition at line 21 of file PlayOp.cpp.

Referenced by toString().

CTermParms* bogotel::CPlayOp::m_pTermParms [private]
 

Definition at line 46 of file PlayOp.h.

Referenced by _timerExpired(), start(), and ~CPlayOp().

const DX_IOTT* bogotel::CPlayOp::m_pIott [private]
 

Definition at line 47 of file PlayOp.h.

bool bogotel::CPlayOp::m_bWasWavPlayed [private]
 

Definition at line 48 of file PlayOp.h.


The documentation for this class was generated from the following files:
Generated on Tue Aug 12 12:42:25 2003 for bogotel by doxygen 1.3. Hosted by SourceForge.net Logo