tool/CommandVersion.cpp
author Florian Pose <fp@igh-essen.com>
Mon, 19 Jan 2009 10:18:41 +0000
branch1.4-foe
changeset 1707 11ec009e145d
parent 1165 c5d6e28eec91
child 1363 11c0b2caa253
permissions -rw-r--r--
Included FoE patch from Olav Zarges.
/*****************************************************************************
 *
 * $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;
}

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