]>
Commit | Line | Data |
---|---|---|
1 | #ifndef POUCH_H | |
2 | #define POUCH_H | |
3 | ||
4 | #include <list> | |
5 | #include <string> | |
6 | ||
7 | class item; // forward declaration | |
8 | class itemContainer; // forward declaration | |
9 | ||
10 | using namespace std; | |
11 | ||
12 | class pouch | |
13 | { | |
14 | public: | |
15 | pouch(); | |
16 | pouch(pouch *); | |
17 | ~pouch(); | |
18 | ||
19 | void sort(); | |
20 | void clear(); | |
21 | bool isEmpty(); | |
22 | ||
23 | itemContainer *Find(char *); | |
24 | itemContainer *Find(string &); | |
25 | ||
26 | itemContainer *addItem(item *); | |
27 | void deleteItem(item *); | |
28 | list <itemContainer> *getItems() { return &items; }; | |
29 | ||
30 | // operators | |
31 | const pouch &operator = ( const pouch &); | |
32 | ||
33 | private: | |
34 | list <itemContainer> items; | |
35 | }; | |
36 | ||
37 | #endif |