2014-12-07 17:57:47 +00:00
|
|
|
|
|
|
|
#include "messages.hpp"
|
|
|
|
|
2015-06-20 14:55:34 +00:00
|
|
|
CSMDoc::Message::Message (const CSMWorld::UniversalId& id, const std::string& message,
|
|
|
|
const std::string& hint)
|
|
|
|
: mId (id), mMessage (message), mHint (hint)
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
2014-12-07 17:57:47 +00:00
|
|
|
void CSMDoc::Messages::add (const CSMWorld::UniversalId& id, const std::string& message,
|
|
|
|
const std::string& hint)
|
|
|
|
{
|
2015-06-20 14:55:34 +00:00
|
|
|
mMessages.push_back (Message (id, message, hint));
|
2014-12-07 17:57:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void CSMDoc::Messages::push_back (const std::pair<CSMWorld::UniversalId, std::string>& data)
|
|
|
|
{
|
|
|
|
add (data.first, data.second);
|
|
|
|
}
|
|
|
|
|
|
|
|
CSMDoc::Messages::Iterator CSMDoc::Messages::begin() const
|
|
|
|
{
|
|
|
|
return mMessages.begin();
|
|
|
|
}
|
|
|
|
|
|
|
|
CSMDoc::Messages::Iterator CSMDoc::Messages::end() const
|
|
|
|
{
|
|
|
|
return mMessages.end();
|
2015-03-11 14:54:45 +00:00
|
|
|
}
|