text: #include "NL_ConsoleQueue.h"
  
  namespace NLE
  {
  	namespace CONSOLE
  	{
  		ConsoleQueue::ConsoleQueue()
  		{
  		}
  
  		ConsoleQueue::~ConsoleQueue()
  		{
  		}
  
  		void ConsoleQueue::push(OUTPUT_TYPE outType, const std::string& data)
  		{
  			_data.push({ outType, data });
  		}
  
  		void ConsoleQueue::push(OUTPUT_TYPE outType, const char* data)
  		{
  			_data.push({ outType, data });
  		}
  
  		bool ConsoleQueue::pop(std::pair<OUTPUT_TYPE, std::string>& data)
  		{
  			if (_data.empty())
  				return false;
  
  			return _data.try_pop(data);
  		}
  
  		void ConsoleQueue::clear()
  		{
  			_data.clear();
  		}
  	}
  
  }
  