Logger.cpp
Go to the documentation of this file.
1 
2 #include <Logger.h>
3 
4 namespace UnitTest
5 {
6 namespace Servant
7 {
8  int Logger::push(std::string& str)
9  {
10  m_q.push(str);
11  return m_q.size();
12  }
13 
14  int Logger::push(const char * aStr)
15  {
16  std::string str(aStr);
17  return push(str);
18  }
19 
20  std::string Logger::pop()
21  {
22  std::string str("");
23  if (m_q.empty()) return str;
24 
25  str = m_q.front();
26  m_q.pop();
27  return str;
28  }
29 }; // namespace Servant
30 }; // namespace UnitTest
31 
int push(std::string &str)
Definition: Logger.cpp:8
std::string pop()
Definition: Logger.cpp:20


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Jun 10 2019 14:07:52