1  #ifndef MESSAGE_H
  2  #define MESSAGE_H
  3  
  4  using namespace std;
  5  
  6  #include <string>
  7  
  8  /**
  9     A message left by a caller
 10  */
 11  class Message 
 12  {
 13  public:
 14     /**
 15        Construct a message object
 16        @param message_text the message text
 17     */
 18     Message(string message_text);
 19  
 20     /**
 21        Get the message text
 22        @ return message text
 23     */
 24     string get_text() const;
 25  private:
 26     string text;
 27  };
 28  
 29  inline Message::Message(string message_text) 
 30     : text(message_text) { }
 31  
 32  inline string Message::get_text() const
 33  {
 34     return text;
 35  }
 36  
 37  #endif