Last change
on this file since 4236 was 1536, checked in by sjboddie, 24 years ago |
Changes to get compiling on VC++ and gcc
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
645 bytes
|
Line | |
---|
1 | #ifndef _STRINGARRAYMAP_H_
|
---|
2 | #define _STRINGARRAYMAP_H_
|
---|
3 | #include <string>
|
---|
4 | #include <map>
|
---|
5 | using namespace std;
|
---|
6 |
|
---|
7 | #include "stringArray.h"
|
---|
8 | typedef map<string, stringArray, less<string> > strArrayMap;
|
---|
9 |
|
---|
10 | class stringArrayMap
|
---|
11 | { private:
|
---|
12 | protected:
|
---|
13 | public:
|
---|
14 | map<string, stringArray, less<string> > _map;
|
---|
15 | stringArrayMap();
|
---|
16 | void add(string key, stringArray array);
|
---|
17 | void addToArray(string key, string item);
|
---|
18 | void readArray(string key, stringArray &array);
|
---|
19 | const string &key(unsigned int pos);
|
---|
20 | stringArray &array(unsigned int pos);
|
---|
21 | void clear();
|
---|
22 | unsigned int size();
|
---|
23 | stringArray &operator[] (const string &name);
|
---|
24 | };
|
---|
25 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.