Comment.h

Go to the documentation of this file.
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 COMMENT_H_
00026 #define COMMENT_H_
00027 
00028 #include "MakefileItem.h"
00029 
00030 namespace makefile
00031 {
00037 class MAKEIMPEX Comment : public PrimaryMakefileItem
00038 {
00039         string text;
00040 
00041 public:
00042         Comment() {}
00043 
00044         Comment(string s) : text(s) {}
00045 
00046         virtual ~Comment() { }
00047 
00048         string& getText()
00049         {
00050                 return text;
00051         }
00052 
00053         void setText(const string& s)
00054         {
00055                 text = s;
00056         }
00057 
00058         void appendLine(const string& line)
00059         {
00060                 text.append(cstr("\n"));
00061                 text.append(line);
00062         }
00063 
00064         virtual string toString();
00065 };
00066 
00067 }
00068 
00069 #endif /* COMMENT_H_ */

Generated on Wed Sep 17 01:25:38 2014 for Hugintrunk by  doxygen 1.3.9.1