fp@1165: /***************************************************************************** fp@1165: * fp@1165: * $Id$ fp@1165: * fp@1165: ****************************************************************************/ fp@1165: fp@1165: #include fp@1165: using namespace std; fp@1165: fp@1165: #include "CommandVersion.h" fp@1165: fp@1165: /*****************************************************************************/ fp@1165: fp@1165: CommandVersion::CommandVersion(): fp@1165: Command("version", "Show version information.") fp@1165: { fp@1165: } fp@1165: fp@1165: /****************************************************************************/ fp@1165: fp@1165: string CommandVersion::helpString() const fp@1165: { fp@1165: stringstream str; fp@1165: fp@1165: str << getName() << " [OPTIONS]" << endl fp@1165: << endl fp@1165: << getBriefDescription() << endl; fp@1165: fp@1165: return str.str(); fp@1165: } fp@1165: fp@1165: /****************************************************************************/ fp@1165: fp@1165: void CommandVersion::execute(MasterDevice &m, const StringVector &args) fp@1165: { fp@1165: cout << "IgH EtherCAT master " << EC_MASTER_VERSION << endl; fp@1165: } fp@1165: fp@1165: /*****************************************************************************/