tool/CommandCrc.h
author Edouard Tisserant <edouard.tisserant@gmail.com>
Wed, 12 Sep 2018 21:22:46 +0200
branchstable-1.5
changeset 2708 742c70a97622
parent 2666 d9e14a0ddbd6
permissions -rw-r--r--
Fix C/C++ linking problem in tool/ethercat
2666
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     1
/*****************************************************************************
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     2
 *
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     3
 *  Copyright (C) 2006-2017  Florian Pose, Ingenieurgemeinschaft IgH
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     4
 *
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     5
 *  This file is part of the IgH EtherCAT Master.
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     6
 *
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     7
 *  The IgH EtherCAT Master is free software; you can redistribute it and/or
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     8
 *  modify it under the terms of the GNU General Public License version 2, as
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     9
 *  published by the Free Software Foundation.
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    10
 *
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    11
 *  The IgH EtherCAT Master is distributed in the hope that it will be useful,
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    12
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    13
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    14
 *  Public License for more details.
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    15
 *
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    16
 *  You should have received a copy of the GNU General Public License along
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    17
 *  with the IgH EtherCAT Master; if not, write to the Free Software
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    19
 *
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    20
 *  ---
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    21
 *
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    22
 *  The license mentioned above concerns the source code only. Using the
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    23
 *  EtherCAT technology and brand is only permitted in compliance with the
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    24
 *  industrial property and similar rights of Beckhoff Automation GmbH.
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    25
 *
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    26
 ****************************************************************************/
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    27
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    28
#ifndef __COMMANDCRC_H__
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    29
#define __COMMANDCRC_H__
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    30
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    31
#include "Command.h"
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    32
#include "DataTypeHandler.h"
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    33
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    34
/****************************************************************************/
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    35
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    36
class CommandCrc:
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    37
    public Command,
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    38
    public DataTypeHandler
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    39
{
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    40
    public:
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    41
        CommandCrc();
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    42
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    43
        string helpString(const string &) const;
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    44
        void execute(const StringVector &);
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    45
};
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    46
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    47
/****************************************************************************/
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    48
d9e14a0ddbd6 New tool command 'ethercat crc'.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    49
#endif