BSAPI
Public Member Functions
STranscriptionSplitterI Class Reference

Allows to call multiple transcription callback functions as one callback call. More...

#include <bsapi.h>

Inheritance diagram for STranscriptionSplitterI:
SUnknownI STransCallbackI

List of all members.

Public Member Functions

virtual bool BSAPI_METHOD SetTarget (int index, STransCallbackI *pTarget)=0
 Set target handlers.
virtual bool BSAPI_METHOD AddTarget (STransCallbackI *pTarget)=0
 Add target handler.
virtual bool BSAPI_METHOD SetMode (const char *pMode)=0

Detailed Description

Allows to call multiple transcription callback functions as one callback call.

This class maintains an array of transcription target handlers (instances of classes that implement the STransCallbacksI interface) and when the OnTranscription function is called, the call is routed to all handlers. This allows to connect multiple targets to all classes that send transcription.


Member Function Documentation

virtual bool BSAPI_METHOD STranscriptionSplitterI::AddTarget ( STransCallbackI pTarget) [pure virtual]

Add target handler.

Add a new target handler at the end of the target array.

Parameters:
pTargetpointer to transcription handler.
Returns:
true if there is no memory allocation error
See also:
SetTarget()
virtual bool BSAPI_METHOD STranscriptionSplitterI::SetTarget ( int  index,
STransCallbackI pTarget 
) [pure virtual]

Set target handlers.

Set target handlers. Each handler is characterized by its own index. Each handler can be disabled by calling this function with corresponding index and zero pointer.

Parameters:
indexindex that the programmer assigns to the handler. It is not necessary to use full series, but it is recommended to start with 0 and not to skip many values. It can slow down the run.
pTargetpointer to transcription handler.
Returns:
true if there is no memory allocation error
See also:
AddTarget()

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