author | Florian Pose <fp@igh-essen.com> |
Wed, 24 Sep 2008 08:37:35 +0000 | |
changeset 1220 | 15e8768b304f |
parent 1156 | ecaf2a896ea3 |
child 1363 | 11c0b2caa253 |
permissions | -rw-r--r-- |
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; |
|
1147
0eac1ee8512a
Show attached slave position and state in 'ethercat config'.
Florian Pose <fp@igh-essen.com>
parents:
1142
diff
changeset
|
31 |
string slavePos; |
0eac1ee8512a
Show attached slave position and state in 'ethercat config'.
Florian Pose <fp@igh-essen.com>
parents:
1142
diff
changeset
|
32 |
string state; |
1142 | 33 |
}; |
34 |
||
35 |
void showDetailedConfigs(MasterDevice &, const ConfigList &); |
|
1147
0eac1ee8512a
Show attached slave position and state in 'ethercat config'.
Florian Pose <fp@igh-essen.com>
parents:
1142
diff
changeset
|
36 |
void listConfigs(MasterDevice &m, const ConfigList &); |
1142 | 37 |
}; |
38 |
||
39 |
/****************************************************************************/ |
|
40 |
||
41 |
#endif |