00001 /* 00002 This file is part of hugin. 00003 00004 hugin is free software: you can redistribute it and/or modify 00005 it under the terms of the GNU General Public License as published by 00006 the Free Software Foundation, either version 2 of the License, or 00007 (at your option) any later version. 00008 00009 hugin is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 GNU General Public License for more details. 00013 00014 You should have received a copy of the GNU General Public License 00015 along with hugin. If not, see <http://www.gnu.org/licenses/>. 00016 */ 00017 00025 #ifndef NEWLINE_H_ 00026 #define NEWLINE_H_ 00027 00031 #include "MakefileItem.h" 00032 00033 namespace makefile 00034 { 00038 class MAKEIMPEX Newline: public PrimaryMakefileItem 00039 { 00040 int newlines; 00041 public: 00042 Newline(int newlines_ =1) 00043 :newlines(newlines_) 00044 {} 00045 virtual ~Newline() 00046 {} 00047 00048 virtual string toString() 00049 { 00050 string n; 00051 for(int i=0; i<newlines; i++) 00052 n.append(cstr("\n")); 00053 return n; 00054 } 00055 }; 00056 00057 } 00058 00059 #endif /* NEWLINE_H_ */
1.3.9.1