Subversion Repositories spk

Rev

Rev 8 | Rev 10 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8 Rev 9
Line 36... Line 36...
36
{
36
{
37
}
37
}
38
 
38
 
39
void CLog::_log(const Utils::String &sLogText)
39
void CLog::_log(const Utils::String &sLogText)
40
{
40
{
41
	SLog *log = new SLog;
-
 
42
	log->sText = sLogText;
-
 
43
	m_lLogs.push_back(log);
41
	m_lLogs.pushBack(sLogText, "");
44
 
42
 
45
	this->displayLog(sLogText);
43
	this->displayLog(sLogText);
46
}
44
}
47
 
45
 
48
void CLog::logf(const char *sLogText, ...)
46
void CLog::logf(const char *sLogText, ...)
Line 66... Line 64...
66
	this->_log(buffer);
64
	this->_log(buffer);
67
}
65
}
68
 
66
 
69
void CLog::clear()
67
void CLog::clear()
70
{
68
{
71
	for ( LogListItr itr = m_lLogs.begin(); itr != m_lLogs.end(); ++itr ) {
-
 
72
		delete *itr;
-
 
73
	}
-
 
74
	m_lLogs.clear();
69
	m_lLogs.clear();
75
}
70
}
76
	
71
	
77
SLog *CLog::firstLog()
72
const Utils::String &CLog::firstLog() const
78
{
73
{
79
	LogList::iterator itr = m_lLogs.begin();
74
	return m_lLogs.firstStr();
-
 
75
}
-
 
76
 
80
	if ( itr != m_lLogs.end() ) return *itr;
77
int CLog::count() const
-
 
78
{
81
	return NULL;
79
	return m_lLogs.size();
82
}
80
}