Isis Developer Reference
PvlSequence.h
Go to the documentation of this file.
1#ifndef PvlSequence_h
2#define PvlSequence_h
8/* SPDX-License-Identifier: CC0-1.0 */
9#include <vector>
10
11#include <QString>
12
13#include "PvlKeyword.h"
14
15namespace Isis {
47 public:
50
53
55
56 PvlSequence &operator+=(const QString &array);
57
58 PvlSequence &operator+=(std::vector<QString> &array);
59
60 PvlSequence &operator+=(std::vector<int> &array);
61
62 PvlSequence &operator+=(std::vector<double> &array);
63
65 std::vector<QString> &operator[](int i) {
66 return p_sequence[i];
67 };
68
70 inline int Size() const {
71 return p_sequence.size();
72 };
73
75 inline void Clear() {
76 p_sequence.clear();
77 };
78
79 private:
80 std::vector<std::vector<QString> > p_sequence;
84 };
85};
86
87#endif
A single keyword-value pair.
Definition PvlKeyword.h:87
Parse and return elements of a Pvl sequence.
Definition PvlSequence.h:46
std::vector< QString > & operator[](int i)
Return the ith Array of the sequence.
Definition PvlSequence.h:65
PvlSequence()
Construct an empty sequence.
Definition PvlSequence.h:49
void Clear()
Clear the sequence.
Definition PvlSequence.h:75
PvlSequence & operator=(PvlKeyword &key)
Load a sequence using a Pvl keyword.
Definition PvlSequence.cpp:25
PvlSequence & operator+=(const QString &array)
Add a string array to the sequence.
Definition PvlSequence.cpp:39
int Size() const
Number of arrays in the sequence.
Definition PvlSequence.h:70
~PvlSequence()
Destruct sequence.
Definition PvlSequence.h:52
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16