Logger.cpp
Go to the documentation of this file.
00001 
00002 #include <Logger.h>
00003 
00004 namespace UnitTest
00005 {
00006 namespace Servant
00007 {
00008   int Logger::push(std::string& str)
00009   {
00010     m_q.push(str);
00011     return m_q.size();
00012   }
00013 
00014   int Logger::push(const char * aStr)
00015   {
00016     std::string str(aStr);
00017     return push(str);
00018   }
00019 
00020   std::string Logger::pop()
00021   {
00022     std::string str("");
00023     if (m_q.empty()) return str;
00024 
00025     str = m_q.front();
00026     m_q.pop();
00027     return str;
00028   }
00029 }; // namespace Servant
00030 }; // namespace UnitTest
00031 


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Aug 27 2015 14:16:37