00001 /* 00002 Vocatra, a small and fast vocabulary trainer 00003 Copyright (C) 2006-2008 Oliver Sauder <os@esite.ch> 00004 00005 This program is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU General Public License 00007 as published by the Free Software Foundation; either version 2 00008 of the License, or (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software 00017 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 */ 00019 00020 #ifndef _VOCOPTION_H 00021 #define _VOCOPTION_H 00022 00023 #include "vocstruct.H" 00024 00028 class CVocOptions 00029 { 00030 public: 00034 CVocOptions(); 00035 00036 public: 00041 int Parse(int argc,char *argv[]); 00042 00047 bool DebugMode() const { 00048 return m_bDebug; 00049 }; 00050 00055 bool StackMode() const { 00056 return m_bStack; 00057 }; 00058 00063 bool CaseMode() const { 00064 return m_bCaseMode; 00065 }; 00066 00071 bool SynonymMode() const { 00072 return m_bSynonym; 00073 } 00074 00079 bool BeepMode() const { 00080 return m_bBeep; 00081 } 00082 00088 enVocMode GetMode() const { 00089 return m_enMode; 00090 }; 00091 00097 enVocLang GetLang() const { 00098 return m_enLang; 00099 }; 00100 00104 int GetNumOfPasses() const { 00105 return m_nNumPasses; 00106 }; 00107 00113 char** GetVocFiles() const { 00114 return m_pVocFiles; 00115 }; 00116 00121 int GetNumOfVocFiles() const { 00122 return m_nNumFiles; 00123 }; 00124 00125 private: 00127 bool m_bDebug; 00128 00130 bool m_bStack; 00131 00133 bool m_bCaseMode; 00134 00136 bool m_bSynonym; 00137 00139 bool m_bBeep; 00140 00145 enVocMode m_enMode; 00146 00151 enVocLang m_enLang; 00152 00154 int m_nNumPasses; 00155 00157 char **m_pVocFiles; 00158 00160 int m_nNumFiles; 00161 }; 00162 00163 #endif //_VOCOPTION_H
|
|
Generated for Vocatra by
|
