]>
Commit | Line | Data |
---|---|---|
3662210f | 1 | #ifndef POUCH_H |
2 | #define POUCH_H | |
3 | ||
37ed80a9 | 4 | #include <list> |
23f22a79 | 5 | #include <string> |
37ed80a9 | 6 | |
7 | class item; // forward declaration | |
e696687e | 8 | class itemContainer; // forward declaration |
37ed80a9 | 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 | ||
e696687e | 23 | itemContainer *Find(char *); |
24 | itemContainer *Find(string &); | |
8a5cec4f | 25 | itemContainer *Find(int ); |
37ed80a9 | 26 | |
e0056fa6 | 27 | itemContainer *addItem(item *); |
1ee4a31b | 28 | itemContainer *addItemNoChecks(item *); |
37ed80a9 | 29 | void deleteItem(item *); |
e696687e | 30 | list <itemContainer> *getItems() { return &items; }; |
37ed80a9 | 31 | |
32 | // operators | |
33 | const pouch &operator = ( const pouch &); | |
34 | ||
35 | private: | |
e696687e | 36 | list <itemContainer> items; |
1ee4a31b | 37 | long count; |
3662210f | 38 | }; |
39 | ||
40 | #endif |