tool/CommandSlaves.h
author Florian Pose <fp@igh-essen.com>
Fri, 25 Jul 2008 09:08:12 +0000
changeset 1148 1762296870bd
parent 1146 f18d124d7fbc
child 1151 1fc1535dec29
permissions -rw-r--r--
Renamed state field to al_state.
/*****************************************************************************
 *
 * $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);
};

/****************************************************************************/

#endif