USGS

Isis 3.0 Object Programmers' Reference

Home

PvlSequence.h

Go to the documentation of this file.
00001 
00024 #ifndef PvlSequence_h
00025 #define PvlSequence_h
00026 
00027 #include <vector>
00028 
00029 #include <QString>
00030 
00031 #include "PvlKeyword.h"
00032 
00033 namespace Isis {
00064   class PvlSequence {
00065     public:
00067       PvlSequence() {};
00068 
00070       ~PvlSequence() {};
00071 
00072       PvlSequence &operator=(PvlKeyword &key);
00073 
00074       PvlSequence &operator+=(const QString &array);
00075 
00076       PvlSequence &operator+=(std::vector<QString> &array);
00077 
00078       PvlSequence &operator+=(std::vector<int> &array);
00079 
00080       PvlSequence &operator+=(std::vector<double> &array);
00081 
00083       std::vector<QString> &operator[](int i) {
00084         return p_sequence[i];
00085       };
00086 
00088       inline int Size() const {
00089         return p_sequence.size();
00090       };
00091 
00093       inline void Clear() {
00094         p_sequence.clear();
00095       };
00096 
00097     private:
00098       std::vector<std::vector<QString> > p_sequence; 
00102   };
00103 };
00104 
00105 #endif