1 /* 2 * cHelpAlias.h 3 * Avida 4 * 5 * Called "help_alias.hh" prior to 12/7/05. 6 * Copyright 1999-2011 Michigan State University. All rights reserved. 7 * Copyright 1993-2003 California Institute of Technology. 8 * 9 * 10 * This file is part of Avida. 11 * 12 * Avida is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License 13 * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. 14 * 15 * Avida is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. 17 * 18 * You should have received a copy of the GNU Lesser General Public License along with Avida. 19 * If not, see <http://www.gnu.org/licenses/>. 20 * 21 */ 22 23 #ifndef cHelpAlias_h 24 #define cHelpAlias_h 25 26 #ifndef cHelpEntry_h 27 #include "cHelpEntry.h" 28 #endif 29 30 class cHelpFullEntry; 31 class cHelpType; 32 class cString; 33 34 class cHelpAlias : public cHelpEntry { 35 private: 36 cHelpFullEntry * full_entry; 37 public: cHelpAlias(const cString & _alias,cHelpFullEntry * _full_entry)38 cHelpAlias(const cString & _alias, cHelpFullEntry * _full_entry) 39 : cHelpEntry(_alias), full_entry(_full_entry) { ; } ~cHelpAlias()40 ~cHelpAlias() { ; } 41 42 const cString & GetKeyword() const; 43 const cString & GetDesc() const; 44 cHelpType * GetType() const; 45 IsAlias()46 bool IsAlias() const { return true; } 47 }; 48 49 #endif 50