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@1151: void listSlaves(MasterDevice &, const SlaveList &); fp@1151: void showSlaves(MasterDevice &, const SlaveList &); fp@1151: fp@1151: static bool slaveInList( const ec_ioctl_slave_t &, const SlaveList &); fp@1142: }; fp@1142: fp@1142: /****************************************************************************/ fp@1142: fp@1142: #endif