1 #ifndef TEXT_H 2 #define TEXT_H 3 4 #include <string> 5 6 using namespace std; 7 8 class Text 9 { 10 public: Text()11 Text():change(false),text(" "){} ~Text()12 virtual ~Text(){} 13 14 bool isChange(); 15 getText()16 string getText()const{return text;} 17 void setText(string t=" "){text=t;change=true;} 18 19 protected: 20 bool change; 21 string text; 22 }; 23 24 #endif 25