libdap++  Updated for version 3.12.0
D4Maps.h
Go to the documentation of this file.
1 /*
2  * D4Maps.h
3  *
4  * Created on: Sep 26, 2012
5  * Author: jimg
6  */
7 
8 #ifndef D4MAPS_H_
9 #define D4MAPS_H_
10 
11 #include <string>
12 #include <vector>
13 
14 using namespace std;
15 
16 namespace libdap {
17 
25 class D4Maps {
26 private:
27  vector<string> d_names;
28 
29 public:
30  D4Maps();
31  virtual ~D4Maps();
32 
33  typedef vector<string>::iterator D4MapsIter;
34 
35  void add_map(const string &map) { d_names.push_back(map); }
36  string get_map(int i) { return d_names.at(i); }
37 
38  D4MapsIter maps_begin() { return d_names.begin(); }
39  D4MapsIter maps_end() { return d_names.end(); }
40 };
41 
42 } /* namespace libdap */
43 #endif /* D4MAPS_H_ */
vector< string >::iterator D4MapsIter
Definition: D4Maps.h:33
D4MapsIter maps_end()
Definition: D4Maps.h:39
string get_map(int i)
Definition: D4Maps.h:36
void add_map(const string &map)
Definition: D4Maps.h:35
D4MapsIter maps_begin()
Definition: D4Maps.h:38