AWS SDK for C++  1.9.130
AWS SDK for C++
StartMedicalStreamTranscriptionHandler.h
Go to the documentation of this file.
1 
6 #pragma once
12 
14 
15 namespace Aws
16 {
17 namespace TranscribeStreamingService
18 {
19 namespace Model
20 {
22  {
23  TRANSCRIPTEVENT,
24  UNKNOWN
25  };
26 
28  {
29  typedef std::function<void(const MedicalTranscriptEvent&)> MedicalTranscriptEventCallback;
30  typedef std::function<void(const Aws::Client::AWSError<TranscribeStreamingServiceErrors>& error)> ErrorCallback;
31 
32  public:
35 
36  virtual void OnEvent() override;
37 
38  inline void SetMedicalTranscriptEventCallback(const MedicalTranscriptEventCallback& callback) { m_onMedicalTranscriptEvent = callback; }
39  inline void SetOnErrorCallback(const ErrorCallback& callback) { m_onError = callback; }
40 
41  private:
42  void HandleEventInMessage();
43  void HandleErrorInMessage();
44  void MarshallError(const Aws::String& errorCode, const Aws::String& errorMessage);
45 
46  MedicalTranscriptEventCallback m_onMedicalTranscriptEvent;
47  ErrorCallback m_onError;
48  };
49 
50 namespace StartMedicalStreamTranscriptionEventMapper
51 {
53 
55 } // namespace StartMedicalStreamTranscriptionEventMapper
56 } // namespace Model
57 } // namespace TranscribeStreamingService
58 } // namespace Aws
AWS_TRANSCRIBESTREAMINGSERVICE_API
#define AWS_TRANSCRIBESTREAMINGSERVICE_API
Definition: TranscribeStreamingService_EXPORTS.h:28
Aws::TranscribeStreamingService::Model::MedicalTranscriptEvent
Definition: MedicalTranscriptEvent.h:34
MedicalTranscriptEvent.h
AWSError.h
Aws::TranscribeStreamingService::Model::StartMedicalStreamTranscriptionHandler::OnEvent
virtual void OnEvent() override
HashingUtils.h
Aws::TranscribeStreamingService::Model::StartMedicalStreamTranscriptionHandler::StartMedicalStreamTranscriptionHandler
StartMedicalStreamTranscriptionHandler()
Aws::TranscribeStreamingService::Model::StartMedicalStreamTranscriptionHandler::operator=
StartMedicalStreamTranscriptionHandler & operator=(const StartMedicalStreamTranscriptionHandler &)=default
Aws::TranscribeStreamingService::Model::StartMedicalStreamTranscriptionEventType
StartMedicalStreamTranscriptionEventType
Definition: StartMedicalStreamTranscriptionHandler.h:22
Aws::Utils::Event::EventStreamHandler
Definition: EventStreamHandler.h:29
Aws::TranscribeStreamingService::Model::StartMedicalStreamTranscriptionEventMapper::GetStartMedicalStreamTranscriptionEventTypeForName
AWS_TRANSCRIBESTREAMINGSERVICE_API StartMedicalStreamTranscriptionEventType GetStartMedicalStreamTranscriptionEventTypeForName(const Aws::String &name)
Aws::TranscribeStreamingService::Model::StartMedicalStreamTranscriptionHandler::SetMedicalTranscriptEventCallback
void SetMedicalTranscriptEventCallback(const MedicalTranscriptEventCallback &callback)
Definition: StartMedicalStreamTranscriptionHandler.h:38
TranscribeStreamingService_EXPORTS.h
Aws::Client::AWSError< TranscribeStreamingServiceErrors >
Aws::TranscribeStreamingService::Model::StartMedicalStreamTranscriptionHandler
Definition: StartMedicalStreamTranscriptionHandler.h:28
Aws::TranscribeStreamingService::Model::StartMedicalStreamTranscriptionHandler::SetOnErrorCallback
void SetOnErrorCallback(const ErrorCallback &callback)
Definition: StartMedicalStreamTranscriptionHandler.h:39
Aws
Definition: AccessManagementClient.h:15
Aws::Transfer::ErrorCallback
std::function< void(const TransferManager *, const std::shared_ptr< const TransferHandle > &, const Aws::Client::AWSError< Aws::S3::S3Errors > &)> ErrorCallback
Definition: TransferManager.h:30
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::TranscribeStreamingService::Model::StartMedicalStreamTranscriptionEventType::UNKNOWN
@ UNKNOWN
EventStreamHandler.h
TranscribeStreamingServiceErrors.h
Aws::TranscribeStreamingService::Model::StartMedicalStreamTranscriptionEventMapper::GetNameForStartMedicalStreamTranscriptionEventType
AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::String GetNameForStartMedicalStreamTranscriptionEventType(StartMedicalStreamTranscriptionEventType value)