#include <bsapi.h>
Public Types | |
| mtError | |
| Error message. | |
| mtWarning | |
| Warning. | |
| mtLog | |
| Log message. | |
| enum | message_type { mtError, mtWarning, mtLog } |
| Message type. More... | |
Public Member Functions | |
| virtual void BSAPI_METHOD | OnTextMessage (unsigned int iId, message_type type, unsigned int messageId, char *pMessage)=0 |
| This function receives error, warning or log message. | |
In BSAPI, the information about error passed from each function is rather simple - true if the function finished correctly, false in case of error (or 0 in case of error if a pointer should be returned). The detailed information about error is sent to an error handler or printed to standard output if no error handler was set for an instance. Almost all classes allows to set an error handler by the SetErrorHandler function. The error handler can also receive warning and log messages.
error_handler.cpp, gender_identification.cpp, keyword_spotting.cpp, language_identification.cpp, and speaker_identification.cpp.
| virtual void BSAPI_METHOD SErrorCallbackI::OnTextMessage | ( | unsigned int | iId, | |
| message_type | type, | |||
| unsigned int | messageId, | |||
| char * | pMessage | |||
| ) | [pure virtual] |
This function receives error, warning or log message.
| iId | interface identification number of caller | |
| type | message type - mtError, mtWarning or mtLog | |
| messageId | unique message identification number | |
| pMessage | message string |
1.4.7