1142
|
1 |
/*****************************************************************************
|
|
2 |
*
|
|
3 |
* $Id$
|
|
4 |
*
|
|
5 |
****************************************************************************/
|
|
6 |
|
|
7 |
#ifndef __COMMANDCONFIG_H__
|
|
8 |
#define __COMMANDCONFIG_H__
|
|
9 |
|
|
10 |
#include <list>
|
|
11 |
using namespace std;
|
|
12 |
|
|
13 |
#include "Command.h"
|
|
14 |
|
|
15 |
/****************************************************************************/
|
|
16 |
|
|
17 |
class CommandConfig:
|
|
18 |
public Command
|
|
19 |
{
|
|
20 |
public:
|
|
21 |
CommandConfig();
|
|
22 |
|
|
23 |
string helpString() const;
|
|
24 |
void execute(MasterDevice &, const StringVector &);
|
|
25 |
|
|
26 |
protected:
|
|
27 |
struct Info {
|
|
28 |
string alias;
|
|
29 |
string pos;
|
|
30 |
string ident;
|
|
31 |
string att;
|
|
32 |
string op;
|
|
33 |
};
|
|
34 |
|
|
35 |
typedef list<ec_ioctl_config_t> ConfigList;
|
|
36 |
|
|
37 |
void showDetailedConfigs(MasterDevice &, const ConfigList &);
|
|
38 |
void listConfigs(const ConfigList &);
|
|
39 |
};
|
|
40 |
|
|
41 |
/****************************************************************************/
|
|
42 |
|
|
43 |
#endif
|