mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-02-07 04:11:50 +08:00
42 lines
1009 B
C++
42 lines
1009 B
C++
/*****************************************************************************
|
|
*
|
|
* $Id$
|
|
*
|
|
****************************************************************************/
|
|
|
|
#ifndef __COMMANDSLAVES_H__
|
|
#define __COMMANDSLAVES_H__
|
|
|
|
#include "Command.h"
|
|
|
|
/****************************************************************************/
|
|
|
|
class CommandSlaves:
|
|
public Command
|
|
{
|
|
public:
|
|
CommandSlaves();
|
|
|
|
string helpString() const;
|
|
void execute(MasterDevice &, const StringVector &);
|
|
|
|
protected:
|
|
struct Info {
|
|
string pos;
|
|
string alias;
|
|
string relPos;
|
|
string state;
|
|
string flag;
|
|
string name;
|
|
};
|
|
|
|
void listSlaves(MasterDevice &, const SlaveList &);
|
|
void showSlaves(MasterDevice &, const SlaveList &);
|
|
|
|
static bool slaveInList( const ec_ioctl_slave_t &, const SlaveList &);
|
|
};
|
|
|
|
/****************************************************************************/
|
|
|
|
#endif
|