|
Isis Developer Reference
|
Go to the documentation of this file.
11 template<
typename T>
class QList;
63 inline QString
name()
const {
72 bool isNamed(
const QString &match)
const {
79 inline QString
type()
const {
PvlKeyword m_name
This is the name keyword.
Definition: PvlContainer.h:289
PvlContainer * m_formatTemplate
Definition: PvlContainer.h:305
QString name() const
Returns the keyword name.
Definition: PvlKeyword.h:98
PvlKeyword operator[](const char *name) const
When you use the [] operator with a (char) name, it will call the findKeyword() method.
Definition: PvlContainer.h:151
PvlKeyword & operator[](const char *name)
When you use the [] operator with a (char) name, it will call the findKeyword() method.
Definition: PvlContainer.h:130
void clear()
Clears PvlKeywords.
Definition: PvlContainer.h:91
QDebug operator<<(QDebug debug, const Hillshade &hillshade)
Print this class out to a QDebug object.
Definition: Hillshade.cpp:314
const PvlContainer & operator=(const PvlContainer &other)
This is an assignment operator.
Definition: PvlContainer.cpp:375
A single keyword-value pair.
Definition: PvlKeyword.h:82
QList< PvlKeyword >::const_iterator ConstPvlKeywordIterator
The const keyword iterator.
Definition: PvlContainer.h:160
QString m_filename
This contains the filename used to initialize the pvl object.
Definition: PvlContainer.h:283
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
void validateKeyword(PvlKeyword &pvlKwrd, QString psValueType="", PvlKeyword *pvlKwrdRange=NULL)
Validate Keyword for type and required values.
Definition: PvlKeyword.cpp:1873
QString comment(const int index) const
Definition: PvlContainer.h:265
void setName(const QString &name)
Set the name of the container.
Definition: PvlContainer.h:56
void addKeyword(const PvlKeyword &keyword, const InsertMode mode=Append)
Add a keyword to the container.
Definition: PvlContainer.cpp:202
File name manipulation and expansion.
Definition: FileName.h:100
int indent() const
Returns the current indent level.
Definition: PvlKeyword.h:213
void operator+=(const PvlKeyword &keyword)
When you use the += operator with a PvlKeyword, it will call the addKeyword() method.
Definition: PvlContainer.h:110
bool fileExists() const
Returns true if the file exists; false otherwise.
Definition: FileName.cpp:449
void setFormat(PvlFormat *formatter)
Set the PvlFormatter used to format the keyword name and value(s)
Definition: PvlKeyword.cpp:885
PvlContainer(const QString &type)
Constructs a PvlContainer object with a type.
Definition: PvlContainer.cpp:26
bool cleanDuplicateKeywords()
Removes keywords from the container that have BOTH the same name and value.
Definition: PvlContainer.cpp:136
bool hasKeyword(const QString &name) const
Check to see if a keyword exists.
Definition: PvlContainer.cpp:159
Container for cube-like labels.
Definition: Pvl.h:119
PvlKeyword & nameKeyword()
Definition: PvlContainer.h:273
QList< PvlKeyword > m_keywords
This is the vector of PvlKeywords the container is holding.
Definition: PvlContainer.h:290
PvlFormat * format()
Get the current PvlFormat or create one.
Definition: PvlKeyword.cpp:896
void setIndent(int indent)
Sets the indent level when outputted(for formatting)
Definition: PvlKeyword.h:203
ostream & operator<<(std::ostream &os, PvlContainer &container)
Output the PvlContainer information.
Definition: PvlContainer.cpp:244
void validateAllKeywords(PvlContainer &pPvlCont)
Validate All the Keywords in a Container comparing with the Template.
Definition: PvlContainer.cpp:394
void setFormat(PvlFormat *format)
Definition: PvlContainer.h:251
void validateRepeatOption(PvlKeyword &pPvlTmplKwrd, PvlContainer &pPvlCont)
Validate the Repeat Option for a Keyword.
Definition: PvlContainer.cpp:470
int comments() const
Returns the number of lines of comments associated with this keyword.
Definition: PvlKeyword.h:160
PvlKeyword & operator[](const QString &name)
When you use the [] operator with a (string) name, it will call the findKeyword() method.
Definition: PvlContainer.h:120
ConstPvlKeywordIterator begin() const
Return the const beginning iterator.
Definition: PvlContainer.h:186
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Definition: FileName.cpp:196
@ Append
Definition: PvlContainer.h:95
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
bool isNamed(const QString &match) const
Returns whether the given string is equal to the container name or not.
Definition: PvlContainer.h:72
void addComment(QString comment)
Add a comment to the PvlKeyword.
Definition: PvlKeyword.cpp:376
bool hasFormatTemplate()
Definition: PvlContainer.h:240
int indent()
Definition: PvlContainer.h:255
const PvlKeyword & nameKeyword() const
Definition: PvlContainer.h:276
InsertMode
Contains both modes: Append or Replace.
Definition: PvlContainer.h:95
QString fileName() const
Returns the filename used to initialise the Pvl object.
Definition: PvlContainer.h:232
QString name() const
Returns the container name.
Definition: PvlContainer.h:63
Isis exception class.
Definition: IException.h:91
void setValue(QString value, QString unit="")
Sets new values.
Definition: PvlKeyword.cpp:155
void addComment(const QString &comment)
Definition: PvlContainer.h:269
PvlFormat * format()
Definition: PvlContainer.h:248
int comments() const
Definition: PvlContainer.h:262
void deleteKeyword(const QString &name)
Remove a specified keyword.
Definition: PvlContainer.cpp:97
ConstPvlKeywordIterator end() const
Return the const ending iterator.
Definition: PvlContainer.h:202
Namespace for the standard library.
PvlContainer * formatTemplate()
Definition: PvlContainer.h:244
@ Replace
Definition: PvlContainer.h:95
void operator-=(const QString &name)
When you use the -= operator with a (string) name, it will call the deleteKeyword() method.
Definition: PvlContainer.h:216
QList< PvlKeyword >::iterator PvlKeywordIterator
The keyword iterator.
Definition: PvlContainer.h:157
int keywords() const
Returns the number of keywords contained in the PvlContainer.
Definition: PvlContainer.h:86
PvlKeyword & findKeyword(const QString &name)
Find a keyword with a specified name.
Definition: PvlContainer.cpp:62
void setIndent(int indent)
Definition: PvlContainer.h:258
PvlKeywordIterator end()
Return the ending iterator.
Definition: PvlContainer.h:194
void init()
Sets the filename to blank.
Definition: PvlContainer.cpp:51
QString comment(const int index) const
Return a comment at the specified index.
Definition: PvlKeyword.cpp:441
Contains more than one keyword-value pair.
Definition: PvlContainer.h:49
QString ArraySubscriptNotInRange(int index)
This error should be used when an Isis object or application is checking array bounds and the legal r...
Definition: ArraySubscriptNotInRange.cpp:31
void setFormatTemplate(PvlContainer &ref)
Definition: PvlContainer.h:236
static bool stringEqual(const QString &string1, const QString &string2)
Checks to see if two QStrings are equal.
Definition: PvlKeyword.cpp:535
void setFileName(const QString &filename)
Sets the filename to the specified string.
Definition: PvlContainer.h:301
PvlKeywordIterator begin()
Return the beginning iterator.
Definition: PvlContainer.h:178
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
const PvlKeyword & operator[](const QString &name) const
When you use the [] operator with a (string) name, it will call the findKeyword() method.
Definition: PvlContainer.h:141
QString type() const
Returns the container type.
Definition: PvlContainer.h:79