00001 /* -*- Mode: C++ -*- 00002 * $Id: ClangVersionCommand.cc,v 1.1 2006/09/06 18:03:21 frehe Exp $ 00003 * 00004 * 00005 * COPYRIGHT INFORMATION 00006 * 00007 * This file is part of RoboSoc created by Fredrik Heintz <frehe@ida.liu.se> 00008 * Copyright (C) 1999, 2000 Fredrik Heintz, Linköping University, Sweden 00009 * 00010 * You are allowed to modify and use this code as long as you retain this 00011 * notice. If you make any changes or have any comments I would appreciate 00012 * it if you send me a message. For more information, please see 00013 * http://www.ida.liu.se/~frehe/RoboCup/RoboSoc/ 00014 * 00015 * 00016 * IDENTIFICATION 00017 * 00018 * Filename: ClangVersionCommand.cc 00019 * Unitname: Library 00020 * $Revision: 1.1 $ 00021 * Created by: David Rosen 2003-06-30 00022 * Last modified by $Author: frehe $ $Date: 2006/09/06 18:03:21 $ 00023 * 00024 * 00025 * HISTORY 00026 * 00027 * $Log: ClangVersionCommand.cc,v $ 00028 * Revision 1.1 2006/09/06 18:03:21 frehe 00029 * Moved files from Library to BasicSystem. 00030 * 00031 * Revision 1.2 2003/08/20 12:21:47 s02davro 00032 * Corrected Command type 00033 * 00034 * Revision 1.1 2003/07/21 08:29:13 s02davro 00035 * Added new commands (v9, trainer, coach, new command hierarchy) 00036 * 00037 * Revision 1.1 2001/11/15 16:48:31 frehe 00038 * Added a clangVersion command. 00039 * 00040 */ 00041 00053 #include "ClangVersionCommand.h" 00054 #include "string_utils.h" 00055 00056 RS_BEGIN_NAMESPACE 00057 00058 ClangVersionCommand::ClangVersionCommand(UInt def_minver, UInt def_maxver) 00059 : ImmediateCommand(CMD_ClangVersion), 00060 minver(def_minver), 00061 maxver(def_maxver) {} 00062 00063 ClangVersionCommand::~ClangVersionCommand() {} 00064 00065 const std::string ClangVersionCommand::serverString() const { 00066 return "(clang (ver " + toString(minver) + " " + toString(maxver) + "))"; 00067 } 00068 00069 ClangVersionCommand* ClangVersionCommand::clone() const { 00070 return new ClangVersionCommand(*this); 00071 } 00072 00073 UInt ClangVersionCommand::getMinVersion() const { 00074 return minver; 00075 } 00076 00077 UInt ClangVersionCommand::getMaxVersion() const { 00078 return maxver; 00079 } 00080 00081 RS_END_NAMESPACE
1.3-rc3