USGS

Isis 3.0 Object Programmers' Reference

Home

PvlToken.h
Go to the documentation of this file.
1 #ifndef PvlToken_h
2 #define PvlToken_h
3 
25 #include <vector>
26 #include <cctype>
27 
28 #include <QString>
29 
30 namespace Isis {
54  class PvlToken {
55  private:
56  QString m_key;
57  std::vector<QString> m_value;
61  public:
62  PvlToken(const QString &k);
63  PvlToken();
64  ~PvlToken();
65 
66  void setKey(const QString &k);
67  QString key() const;
68  QString keyUpper() const;
69 
70  void addValue(const QString &v);
71  QString value(const int index = 0) const;
72  QString valueUpper(const int index = 0) const;
73  int valueSize() const;
74  void valueClear();
75 
76  inline const std::vector<QString> &valueVector() const {
77  return m_value;
78  };
79  };
80 };
81 
82 #endif