sa2304

InsertText command

May 18th, 2021
476
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class InsertText : public Command {
  2. public:
  3.   InsertText(const string& text) : text_(text) {}
  4.  
  5.   void Execute(Document& document) override {
  6.     document.InsertText(text_);
  7.   }
  8. private:
  9.   const string text_;
  10. }
RAW Paste Data