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 |
|
|
33 |
void listSlaves(MasterDevice &, int);
|
|
34 |
void showSlave(MasterDevice &, uint16_t);
|
|
35 |
|
|
36 |
static string slaveState(uint8_t);
|
|
37 |
};
|
|
38 |
|
|
39 |
/****************************************************************************/
|
|
40 |
|
|
41 |
#endif
|