Скачиваний:
37
Добавлен:
01.05.2014
Размер:
834 б
Скачать
//” ©«: SrvList.h
//Љ« бб "‘ЇЁб®Є Є«ЁҐ­в®ў ­  бҐаўҐаҐ". Џа®в®вЁЇ.
//Ђўв®а: ‘ҐаЈҐҐў Њ.‚. Ја.3352
//„ в : 21.05.06, ђҐ¤ ЄжЁп: 1.0


#include "SrvElem.cpp"
#include "Client.h"

#ifndef __SrvList_H
#define __SrvList_H

class CSrvList
{
private:
	CSrvItem* first; //First element of the list
	CSrvItem* cur;   //current for iterator

 public:
    CSrvList();			//construcor
   ~CSrvList();			//destructor
    int isEmpty(void)const;		//Check if the list is empty(1-empty, 0-not empty)
    void insertItem(CClient*);		//insert new item into the list
	void clear();			//clear this list
    void show()const;
    CClient* getClientByID(int);
    CSrvItem* getFirstPtr();		//get pointer to the first element
    int hasNextClient();		//iterator
    CClient* getCurClient();
    void resetNextClient();
 };
#endif
Соседние файлы в папке LAB_4