tool/CommandGraph.h
author Florian Pose <fp@igh-essen.com>
Tue, 19 Jan 2010 17:57:46 +0100
changeset 1774 a9143f82c7c5
parent 1422 d41e4537b75f
child 1826 ec6223c3b7ec
permissions -rw-r--r--
Fixed name of byte transmission time define; changed coding style.
1422
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     1
/*****************************************************************************
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     2
 *
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     3
 *  $Id$
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     4
 *
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     5
 *  Copyright (C) 2006-2009  Florian Pose, Ingenieurgemeinschaft IgH
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     6
 *
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     7
 *  This file is part of the IgH EtherCAT Master.
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     8
 *
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     9
 *  The IgH EtherCAT Master is free software; you can redistribute it and/or
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    10
 *  modify it under the terms of the GNU General Public License version 2, as
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    11
 *  published by the Free Software Foundation.
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    12
 *
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    13
 *  The IgH EtherCAT Master is distributed in the hope that it will be useful,
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    14
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    15
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    16
 *  Public License for more details.
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    17
 *
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    18
 *  You should have received a copy of the GNU General Public License along
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    19
 *  with the IgH EtherCAT Master; if not, write to the Free Software
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    20
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    21
 *
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    22
 *  ---
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    23
 *
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    24
 *  The license mentioned above concerns the source code only. Using the
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    25
 *  EtherCAT technology and brand is only permitted in compliance with the
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    26
 *  industrial property and similar rights of Beckhoff Automation GmbH.
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    27
 *
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    28
 ****************************************************************************/
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    29
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    30
#ifndef __COMMANDGRAPH_H__
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    31
#define __COMMANDGRAPH_H__
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    32
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    33
#include "Command.h"
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    34
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    35
/****************************************************************************/
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    36
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    37
class CommandGraph:
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    38
    public Command
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    39
{
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    40
    public:
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    41
        CommandGraph();
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    42
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    43
        string helpString() const;
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    44
        void execute(MasterDevice &, const StringVector &);
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    45
};
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    46
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    47
/****************************************************************************/
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    48
d41e4537b75f Added 'ethercat graph' command.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    49
#endif