http://svn.greenstone.org/other-projects/trunk/gsinstaller/configurable.h
|
Revision 11664, 0.5 kB
(checked in by mdewsnip, 3 years ago)
|
Fixed the line endings... for real this time, I hope.
|
- Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 |
#ifndef _CONFIGURE_H_ |
|---|
| 2 |
|
|---|
| 3 |
#include <map> // just here to include "bool" for extremely |
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
class configurable |
|---|
| 7 |
{ |
|---|
| 8 |
private: |
|---|
| 9 |
protected: |
|---|
| 10 |
public: |
|---|
| 11 |
configurable(); |
|---|
| 12 |
configurable(char *prompt); |
|---|
| 13 |
configurable(char *prompt, char *optPrompt); |
|---|
| 14 |
|
|---|
| 15 |
void setFinal(bool isFinal); |
|---|
| 16 |
bool isFinal(); |
|---|
| 17 |
void setFirst(bool isFirst); |
|---|
| 18 |
bool isFirst(); |
|---|
| 19 |
|
|---|
| 20 |
void setOption(bool to); |
|---|
| 21 |
bool getOption(); |
|---|
| 22 |
|
|---|
| 23 |
char *prompt; |
|---|
| 24 |
bool option; |
|---|
| 25 |
bool final; |
|---|
| 26 |
bool first; |
|---|
| 27 |
char *optPrompt; |
|---|
| 28 |
}; |
|---|
| 29 |
#define _CONFIGURE_H_ 1 |
|---|
| 30 |
#endif |
|---|