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
ActionOption.h
1 /*
2  * $Id$
3  * ActionOption class interface
4  *
5  * This file is part of OTAWA
6  * Copyright (c) 2005-07, 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_ACTION_OPTION_H
23 #define ELM_OPTION_ACTION_OPTION_H
24 
25 #include <elm/option/StandardOption.h>
26 
27 namespace elm { namespace option {
28 
29 // ActionOption class
31 public:
32  ActionOption(Manager& manager, char short_name, CString description);
33  ActionOption(Manager& manager, CString long_name, CString description);
34  ActionOption(Manager& manager, char short_name, CString long_name,
35  CString description);
36  virtual void perform(void) = 0;
37 
38  // Option overload
39  virtual usage_t usage(void);
40  virtual CString argDescription(void);
41  virtual void process(String arg);
42 };
43 
44 } } // elm::option
45 
46 #endif // ELM_OPTION_ACTION_OPTION_H
virtual void perform(void)=0
Definition: CString.h:17
ActionOption(Manager &manager, char short_name, CString description)
Definition: option_ActionOption.cpp:43
virtual CString argDescription(void)
Definition: option_ActionOption.cpp:79
Definition: Manager.h:59
usage_t
Definition: Option.h:35
Definition: StandardOption.h:31
virtual void process(String arg)
Definition: option_ActionOption.cpp:85
Definition: ActionOption.h:30
Definition: String.h:31
virtual cstring description(void)
Definition: option_StandardOption.cpp:85
virtual usage_t usage(void)
Definition: option_ActionOption.cpp:73