Dependencies:   EthernetNetIf NTPClient_NetServices mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ItemSet.h Source File

ItemSet.h

00001 #ifndef _INC_ITEMSET
00002 #define _INC_ITEMSET
00003 
00004 #include "Object.h"
00005 #include "mbed.h"
00006 class Item{
00007 public:
00008     Item* nextItem;
00009     Object* object;
00010 };
00011 
00012 class ItemSet{
00013 private:
00014     Item* firstItem;
00015     Item* currentItem;
00016     int numOfItems;
00017 public:
00018     ItemSet();
00019     Object* First();
00020     Object* Next();
00021     void AddItem(Object* inObj);
00022     int GetNumOfItems();
00023     Object* GetCurrentObject();
00024     Object* SerchId(unsigned int inId);
00025 };
00026 #endif