Subversion Repositories spk

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
8 cycrow 1
 
2
#include "StringList.h"
3
 
4
namespace Utils {
5
	void CStringList::pushBack(const String &str, const String &data)
6
	{
7
		SStringList *strNode = new SStringList;
8
		strNode->str = str;
9
		strNode->data = data;
10
		this->push_back(strNode);
11
	}
9 cycrow 12
 
13
	void CStringList::clear()
14
	{
15
		this->destroy(true);
16
	}
17
	const String &CStringList::firstStr() const
18
	{
19
		CListNode<SStringList> *head = ((CLinkList<SStringList> *)this)->Front();
20
		if ( head ) {
21
			return head->Data()->str;
22
		}
23
		return String();
24
	}
8 cycrow 25
}
26
/*
27
StringList::StringList(void)
28
{
29
}
30
 
31
StringList::~StringList(void)
32
{
33
}
34
*/