tool/CommandSlaves.h
author Florian Pose <fp@igh-essen.com>
Fri, 25 Jul 2008 14:10:04 +0000
changeset 1149 f1fce286d53b
parent 1146 f18d124d7fbc
child 1151 1fc1535dec29
permissions -rw-r--r--
Minor change.
/*****************************************************************************
 *
 * $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