USGS

Isis 3.0 Object Programmers' Reference

Home

PvlSequence.h
Go to the documentation of this file.
1 
24 #ifndef PvlSequence_h
25 #define PvlSequence_h
26 
27 #include <vector>
28 
29 #include <QString>
30 
31 #include "PvlKeyword.h"
32 
33 namespace Isis {
64  class PvlSequence {
65  public:
68 
71 
73 
74  PvlSequence &operator+=(const QString &array);
75 
76  PvlSequence &operator+=(std::vector<QString> &array);
77 
78  PvlSequence &operator+=(std::vector<int> &array);
79 
80  PvlSequence &operator+=(std::vector<double> &array);
81 
83  std::vector<QString> &operator[](int i) {
84  return p_sequence[i];
85  };
86 
88  inline int Size() const {
89  return p_sequence.size();
90  };
91 
93  inline void Clear() {
94  p_sequence.clear();
95  };
96 
97  private:
98  std::vector<std::vector<QString> > p_sequence;
102  };
103 };
104 
105 #endif