vocoptions.H
1 /*
2  Vocatra, a small and fast vocabulary trainer
3  Copyright (C) 2006-2008 Oliver Sauder <os@esite.ch>
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 */
19 
20 #ifndef _VOCOPTION_H
21 #define _VOCOPTION_H
22 
23 #include "vocstruct.H"
24 
29 {
30 public:
34  CVocOptions();
35 
36 public:
41  int Parse(int argc,char *argv[]);
42 
47  bool DebugMode() const {
48  return m_bDebug;
49  };
50 
55  bool StackMode() const {
56  return m_bStack;
57  };
58 
63  bool CaseMode() const {
64  return m_bCaseMode;
65  };
66 
71  bool SynonymMode() const {
72  return m_bSynonym;
73  }
74 
79  bool BeepMode() const {
80  return m_bBeep;
81  }
82 
88  enVocMode GetMode() const {
89  return m_enMode;
90  };
91 
97  enVocLang GetLang() const {
98  return m_enLang;
99  };
100 
104  int GetNumOfPasses() const {
105  return m_nNumPasses;
106  };
107 
113  char** GetVocFiles() const {
114  return m_pVocFiles;
115  };
116 
121  int GetNumOfVocFiles() const {
122  return m_nNumFiles;
123  };
124 
125 private:
127  bool m_bDebug;
128 
130  bool m_bStack;
131 
134 
137 
139  bool m_bBeep;
140 
145  enVocMode m_enMode;
146 
151  enVocLang m_enLang;
152 
155 
157  char **m_pVocFiles;
158 
161 };
162 
163 #endif //_VOCOPTION_H

Get Vocatra at SourceForge.net. Fast, secure and Free Open Source software downloads Generated for Vocatra by doxygen