8 #include "IException.h"
19 PvlToken::PvlToken(
const QString &k) {
25 PvlToken::PvlToken() {
30 PvlToken::~PvlToken() {
40 void PvlToken::setKey(
const QString &k) {
49 QString PvlToken::key()
const {
58 QString PvlToken::keyUpper()
const {
59 return m_key.toUpper();
63 void PvlToken::valueClear() {
72 int PvlToken::valueSize()
const {
73 return m_value.size();
82 void PvlToken::addValue(
const QString &v) {
95 QString PvlToken::value(
const int index)
const {
96 if((index < 0) || (index >= (
int) m_value.size())) {
98 throw IException(IException::Programmer, message, _FILEINFO_);
100 return m_value[index];
112 QString PvlToken::valueUpper(
int index)
const {
113 if((index < 0) || (index >= (
int) m_value.size())) {
115 throw IException(IException::Programmer, message, _FILEINFO_);
118 return m_value[index].toUpper();