1142
|
1 |
/*****************************************************************************
|
|
2 |
*
|
|
3 |
* $Id$
|
|
4 |
*
|
|
5 |
****************************************************************************/
|
|
6 |
|
|
7 |
#ifndef __COMMANDSLAVES_H__
|
|
8 |
#define __COMMANDSLAVES_H__
|
|
9 |
|
|
10 |
#include "Command.h"
|
|
11 |
|
|
12 |
/****************************************************************************/
|
|
13 |
|
|
14 |
class CommandSlaves:
|
|
15 |
public Command
|
|
16 |
{
|
|
17 |
public:
|
|
18 |
CommandSlaves();
|
|
19 |
|
|
20 |
string helpString() const;
|
|
21 |
void execute(MasterDevice &, const StringVector &);
|
|
22 |
|
|
23 |
protected:
|
|
24 |
struct Info {
|
|
25 |
string pos;
|
|
26 |
string alias;
|
|
27 |
string relPos;
|
|
28 |
string state;
|
|
29 |
string flag;
|
|
30 |
string name;
|
|
31 |
};
|
|
32 |
|
1151
|
33 |
void listSlaves(MasterDevice &, const SlaveList &);
|
|
34 |
void showSlaves(MasterDevice &, const SlaveList &);
|
|
35 |
|
|
36 |
static bool slaveInList( const ec_ioctl_slave_t &, const SlaveList &);
|
1142
|
37 |
};
|
|
38 |
|
|
39 |
/****************************************************************************/
|
|
40 |
|
|
41 |
#endif
|