The Sword Project: osisvariants.h Source File |
00001 /****************************************************************************** 00002 * 00003 * $Id: osisvariants.h 1688 2005-01-01 04:42:26Z scribe $ 00004 * 00005 * Copyright 2001 CrossWire Bible Society (http://www.crosswire.org) 00006 * CrossWire Bible Society 00007 * P. O. Box 2528 00008 * Tempe, AZ 85280-2528 00009 * 00010 * This program is free software; you can redistribute it and/or modify it 00011 * under the terms of the GNU General Public License as published by the 00012 * Free Software Foundation version 2. 00013 * 00014 * This program is distributed in the hope that it will be useful, but 00015 * WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 * General Public License for more details. 00018 * 00019 */ 00020 00021 #ifndef OSISVARIANTS_H 00022 #define OSISVARIANTS_H 00023 00024 #include <swoptfilter.h> 00025 #include <swmodule.h> 00026 00027 SWORD_NAMESPACE_START 00028 00031 class SWDLLEXPORT OSISVariants : public SWOptionFilter { 00032 char option; 00033 00034 static const char primary[]; 00035 static const char secondary[]; 00036 static const char all[]; 00037 00038 static const char optName[]; 00039 static const char optTip[]; 00040 StringList options; 00041 00042 public: 00043 OSISVariants(); 00044 virtual ~OSISVariants(); 00045 virtual char processText(SWBuf &text, const SWKey *key = 0, const SWModule *module = 0); 00046 virtual const char *getOptionName() { return optName; } 00047 virtual const char *getOptionTip() { return optTip; } 00048 virtual void setOptionValue(const char *ival); 00049 virtual const char *getOptionValue(); 00050 virtual StringList getOptionValues() { return options; } 00051 }; 00052 00053 SWORD_NAMESPACE_END 00054 #endif
The SWORD Project; P. O. Box 2528; Tempe, AZ 85280-2528 USA |