tool/CommandVersion.cpp
changeset 1165 c5d6e28eec91
child 1363 11c0b2caa253
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tool/CommandVersion.cpp	Mon Jul 28 14:06:03 2008 +0000
@@ -0,0 +1,39 @@
+/*****************************************************************************
+ *
+ * $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;
+}
+
+/*****************************************************************************/