《Big C++ 》Third Edition电子书和代码全集-Part1
源代码在线查看: message.h
#ifndef MESSAGE_H
#define MESSAGE_H
using namespace std;
#include
/**
A message left by a caller
*/
class Message
{
public:
/**
Construct a message object
@param message_text the message text
*/
Message(string message_text);
/**
Get the message text
@ return message text
*/
string get_text() const;
private:
string text;
};
inline Message::Message(string message_text)
: text(message_text) { }
inline string Message::get_text() const
{
return text;
}
#endif