tool/CommandVersion.cpp
author Florian Pose <fp@igh-essen.com>
Fri, 17 Oct 2008 13:37:29 +0000
changeset 1280 dc1327c2ef5b
parent 1165 c5d6e28eec91
child 1363 11c0b2caa253
permissions -rw-r--r--
merge -c1524 branches/stable-1.4: Moved globals.h to noinst_HEADERS.
/*****************************************************************************
 *
 * $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;
}

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