tool/CommandVersion.cpp
author Florian Pose <fp@igh-essen.com>
Tue, 30 Sep 2008 14:02:02 +0000
branchstable-1.4
changeset 1639 d4db7ad736a5
parent 1165 c5d6e28eec91
child 1363 11c0b2caa253
permissions -rw-r--r--
merge -r1464:1467 trunk: Removed forcedeth, e100 and r8169.
/*****************************************************************************
 *
 * $Id$
 *
 ****************************************************************************/

#include <iostream>
using namespace std;

#include "CommandVersion.h"

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

CommandVersion::CommandVersion():
    Command("version", "Show version information.")
{
}

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

string CommandVersion::helpString() const
{
    stringstream str;

	str << getName() << " [OPTIONS]" << endl
    	<< endl
    	<< getBriefDescription() << endl;

	return str.str();
}

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

void CommandVersion::execute(MasterDevice &m, const StringVector &args)
{
    cout << "IgH EtherCAT master " << EC_MASTER_VERSION << endl;
}

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