Elm  1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StringOption.h
1 /*
2  * $Id$
3  * StringOption class interface
4  *
5  * This file is part of OTAWA
6  * Copyright (c) 2004-09, IRIT UPS.
7  *
8  * OTAWA is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * OTAWA is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with OTAWA; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21  */
22 #ifndef ELM_OPTION_STRING_OPTION_H
23 #define ELM_OPTION_STRING_OPTION_H
24 
25 #include <elm/option/ValueOption.h>
26 
27 namespace elm { namespace option {
28 
29 // StringOption class
30 class StringOption: public ValueOption<string> {
31 public:
32  StringOption(Manager& manager, char short_name, cstring description,
33  cstring arg_description, string value = "");
34  StringOption(Manager& manager, cstring long_name, cstring description,
35  CString arg_description, string value = "");
36  StringOption(Manager& manager, char short_name, cstring long_name,
37  cstring description, cstring arg_description, string value = "");
38 
39  // Option overload
40  //virtual void process(String arg);
41 };
42 
43 } } // elm::option
44 
45 #endif // ELM_OPTION_STRING_OPTION_H
Definition: CString.h:17
const string & value(void) const
Definition: ValueOption.h:124
Definition: Manager.h:59
virtual cstring description(void)
Definition: option_ValueOption.cpp:182
Definition: StringOption.h:30
Definition: ValueOption.h:73
StringOption(Manager &manager, char short_name, cstring description, cstring arg_description, string value="")
Definition: option_StringOption.cpp:41