My Project
|
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 #pragma once 00029 #include "Define.h" 00030 #include "Window.h" 00031 #include "Speech.h" 00032 #include "Thread.h" 00033 00034 namespace SallyAPI 00035 { 00036 namespace Speech 00037 { 00046 00047 class DLL_API_SALLY CSpeechThread : 00048 public SallyAPI::System::CThread 00049 { 00050 private: 00051 CRITICAL_SECTION m_critSectLockSpeech; 00052 SallyAPI::GUI::CWindow* m_pMainWindow; 00053 SallyAPI::Speech::CSpeech** m_ppSpeech; 00054 std::vector<std::string> m_vSeechList; 00055 std::map<std::string, bool> m_vSeechListImportand; 00056 00057 virtual void RunEx(); 00058 public: 00059 CSpeechThread(); 00060 virtual ~CSpeechThread(); 00061 00062 void SetValue(SallyAPI::Speech::CSpeech** speech, SallyAPI::GUI::CWindow* mainWindow); 00063 void Speak(const std::string& text, bool isImportand); 00064 }; 00065 } 00066 }