Isis 3 Programmer Reference
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
Parse and return elements of a Pvl sequence.
Definition: PvlSequence.h:64
int Size() const
Number of arrays in the sequence.
Definition: PvlSequence.h:88
PvlSequence & operator=(PvlKeyword &key)
Load a sequence using a Pvl keyword.
Definition: PvlSequence.cpp:41
std::vector< QString > & operator[](int i)
Return the ith Array of the sequence.
Definition: PvlSequence.h:83
~PvlSequence()
Destruct sequence.
Definition: PvlSequence.h:70
void Clear()
Clear the sequence.
Definition: PvlSequence.h:93
A single keyword-value pair.
Definition: PvlKeyword.h:98
PvlSequence()
Construct an empty sequence.
Definition: PvlSequence.h:67
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
std::vector< std::vector< QString > > p_sequence
A vector of Strings that contains the values for the keyword.
Definition: PvlSequence.h:95
PvlSequence & operator+=(const QString &array)
Add a string array to the sequence.
Definition: PvlSequence.cpp:55