1 /* 2 * AiksaurusApp - A Win32 interface to the AikSaurus library 3 * Copyright (C) 2001 by Jared Davis, Michael D. Pritchett 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU General Public License 7 * as published by the Free Software Foundation; either version 2 8 * of the License, or (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 * 02110-1301 USA. 19 */ 20 21 #ifndef AIKAPP 22 #define AIKAPP 23 24 #ifdef _MSC_VER 25 #pragma warning(disable: 4786) 26 #endif 27 28 #include <windows.h> 29 #include <string> 30 using namespace std; 31 32 class AiksaurusApp 33 { 34 public: 35 AiksaurusApp(); 36 virtual ~AiksaurusApp(); 37 38 void setTitle( char * title ); 39 void setInitialMessage( char * msg ); 40 const char* runThesaurus( char * word ); 41 42 void initialize(); getInstance()43 HINSTANCE getInstance() { return m_hInstance; } setInstance(HINSTANCE hI)44 void setInstance(HINSTANCE hI) { m_hInstance = hI; } 45 void setLookup( char * word ); 46 47 private: 48 HINSTANCE m_hInstance; 49 string lookup; 50 string replace; 51 }; 52 53 #endif 54