Isis 3.0 Developer's Reference (API) |
Home |
00001 #ifndef PvlToken_h 00002 #define PvlToken_h 00003 00025 #include <string> 00026 #include <vector> 00027 #include <cctype> 00028 00029 namespace Isis { 00051 class PvlToken { 00052 private: 00053 std::string key; 00054 std::vector<std::string> value; 00058 public: 00059 PvlToken(const std::string &k); 00060 PvlToken(); 00061 ~PvlToken(); 00062 00063 void SetKey(const std::string &k); 00064 std::string GetKey() const; 00065 std::string GetKeyUpper() const; 00066 00067 void AddValue(const std::string &v); 00068 std::string GetValue(const int index = 0) const; 00069 std::string GetValueUpper(const int index = 0) const; 00070 int ValueSize() const; 00071 void ValueClear(); 00072 00073 inline const std::vector<std::string> &ValueVector() const { 00074 return value; 00075 }; 00076 }; 00077 }; 00078 00079 #endif