1 /* 2 Copyright (C) 2009 Andrew Caudwell (acaudwell@gmail.com) 3 4 This program is free software; you can redistribute it and/or 5 modify it under the terms of the GNU General Public License 6 as published by the Free Software Foundation; either version 7 3 of the License, or (at your option) any later version. 8 9 This program is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 GNU General Public License for more details. 13 14 You should have received a copy of the GNU General Public License 15 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 */ 17 18 #ifndef CUSTOMLOG_H 19 #define CUSTOMLOG_H 20 21 #include "commitlog.h" 22 23 class CustomLog : public RCommitLog { 24 protected: 25 bool parseCommit(RCommit& commit); 26 bool parseCommitEntry(RCommit& commit); 27 vec3 parseColour(const std::string& cstr); 28 public: 29 CustomLog(const std::string& logfile); 30 }; 31 32 #endif 33