diff -r 7ffbca63fc72 -r 59be91dfcbe1 tool/CommandSlaves.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool/CommandSlaves.h Thu Jul 24 13:27:06 2008 +0000 @@ -0,0 +1,41 @@ +/***************************************************************************** + * + * $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 &, int); + void showSlave(MasterDevice &, uint16_t); + + static string slaveState(uint8_t); +}; + +/****************************************************************************/ + +#endif