mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 12:56:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			44 lines
		
	
	
	
		
			898 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
	
		
			898 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef CSM_DOC_MESSAGES_H
 | 
						|
#define CSM_DOC_MESSAGES_H
 | 
						|
 | 
						|
#include <string>
 | 
						|
#include <vector>
 | 
						|
 | 
						|
#include "../world/universalid.hpp"
 | 
						|
 | 
						|
namespace CSMDoc
 | 
						|
{
 | 
						|
    class Messages
 | 
						|
    {
 | 
						|
        public:
 | 
						|
 | 
						|
            struct Message
 | 
						|
            {
 | 
						|
                CSMWorld::UniversalId mId;
 | 
						|
                std::string mMessage;
 | 
						|
                std::string mHint;
 | 
						|
            };
 | 
						|
 | 
						|
            typedef std::vector<Message> Collection;
 | 
						|
 | 
						|
            typedef Collection::const_iterator Iterator;
 | 
						|
 | 
						|
        private:
 | 
						|
 | 
						|
            Collection mMessages;
 | 
						|
 | 
						|
        public:
 | 
						|
 | 
						|
            void add (const CSMWorld::UniversalId& id, const std::string& message,
 | 
						|
                const std::string& hint = "");
 | 
						|
 | 
						|
            /// \deprecated Use add instead.
 | 
						|
            void push_back (const std::pair<CSMWorld::UniversalId, std::string>& data);
 | 
						|
 | 
						|
            Iterator begin() const;
 | 
						|
 | 
						|
            Iterator end() const;
 | 
						|
    };
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |