00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
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