fp@1142: /***************************************************************************** fp@1142: * fp@1142: * $Id$ fp@1142: * fp@1142: ****************************************************************************/ fp@1142: fp@1142: #ifndef __COMMANDSLAVES_H__ fp@1142: #define __COMMANDSLAVES_H__ fp@1142: fp@1142: #include "Command.h" fp@1142: fp@1142: /****************************************************************************/ fp@1142: fp@1142: class CommandSlaves: fp@1142: public Command fp@1142: { fp@1142: public: fp@1142: CommandSlaves(); fp@1142: fp@1142: string helpString() const; fp@1142: void execute(MasterDevice &, const StringVector &); fp@1142: fp@1142: protected: fp@1142: struct Info { fp@1142: string pos; fp@1142: string alias; fp@1142: string relPos; fp@1142: string state; fp@1142: string flag; fp@1142: string name; fp@1142: }; fp@1142: fp@1142: void listSlaves(MasterDevice &, int); fp@1142: void showSlave(MasterDevice &, uint16_t); fp@1142: }; fp@1142: fp@1142: /****************************************************************************/ fp@1142: fp@1142: #endif