|
Isis Developer Reference
|
Go to the documentation of this file.
12 #include <QStringList>
182 void readKeyListFile(
const FileName &fname);
236 bool exists(
const QString &key)
const;
237 int count(
const QString &key)
const;
238 bool isNull(
const QString &key,
239 const int index = 0)
const;
241 void add(
const QString &key,
242 const QString &value);
246 void append(
const QString &key,
247 const QString &value);
249 bool erase(
const QString &key);
251 QString
get(
const QString &key,
252 const int &index = 0)
const;
253 QString
get(
const QString &key,
254 const QString &defValue,
255 const int &index = 0)
const;
258 QString
operator()(
const QString &name)
const;
272 int loadGroup(
const PvlGroup &group,
int count(const QString &key) const
Returns the number of values associated with a given keyword.
Definition: PvlFlatMap.cpp:450
bool isIncluded(const QString &name) const
Determines if a PvlObject or PvlGroup is included.
Definition: PvlFlatMap.cpp:234
void add(const QString &key, const QString &value)
Adds PvlKeyword with the given name and value to the PvlFlatMap.
Definition: PvlFlatMap.cpp:488
QString name() const
Returns the keyword name.
Definition: PvlKeyword.h:98
bool isKeyInList(const QString &name) const
Determines if a PvlKeyword is included.
Definition: PvlFlatMap.cpp:248
Contains Pvl Groups and Pvl Objects.
Definition: PvlObject.h:61
void addKeyToList(const QString &name)
Adds a PvlKeyword inclusion constraint.
Definition: PvlFlatMap.cpp:163
A single keyword-value pair.
Definition: PvlKeyword.h:82
QList< PvlKeyword >::const_iterator ConstPvlKeywordIterator
The const keyword iterator.
Definition: PvlContainer.h:160
QString operator()(const QString &name) const
Gets the first value of a keyword in the PvlFlatMap.
Definition: PvlFlatMap.cpp:627
bool isNull(const QString &key, const int index=0) const
Determines if the value of a keyword is Null.
Definition: PvlFlatMap.cpp:470
Provides a flat map of PvlKeywords.
Definition: PvlFlatMap.h:218
File name manipulation and expansion.
Definition: FileName.h:100
PvlKeyword keyword(const QString &key) const
Finds a keyword in the PvlFlatMap.
Definition: PvlFlatMap.cpp:660
QMap< QString, PvlKeyword >::const_iterator ConstPvlFlatMapIterator
A const iterator for the underling QMap that PvlFlatMap is built on.
Definition: PvlFlatMap.h:222
int keyListSize() const
Returns the number of PvlKeywords to include.
Definition: PvlFlatMap.cpp:117
bool exists(const QString &key) const
Determines whether a given keyword exists in the PvlFlatMap.
Definition: PvlFlatMap.cpp:436
Provides access to sequential ASCII stream I/O.
Definition: TextFile.h:38
void addExclude(const QString &name)
Adds a PvlObject/PvlGroup exclusion constraint.
Definition: PvlFlatMap.cpp:134
int excludeSize() const
Returns the number of PvlObjects and PvlGroups to exclude.
Definition: PvlFlatMap.cpp:91
const QStringList & keyList() const
Returns the PvlKeyword inclusion constraints.
Definition: PvlFlatMap.cpp:291
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
void append(const PvlKeyword &key)
Appends the given PvlKeyword's values to the PvlFlatMap.
Definition: PvlFlatMap.cpp:529
PvlConstraints()
Default constructor for an empty PvlConstraints object.
Definition: PvlFlatMap.cpp:29
QStringList allValues(const QString &key) const
Gets all the values associated with a keyword in the PvlFlatMap.
Definition: PvlFlatMap.cpp:641
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Definition: FileName.cpp:196
static PvlConstraints withExcludes(const QStringList &excludes)
Static method to construct a PvlConstraints object from a list of names for the PvlObjects and PvlGro...
Definition: PvlFlatMap.cpp:54
int merge(const PvlFlatMap &other)
Adds the keywords from another PvlFlatMap.
Definition: PvlFlatMap.cpp:680
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
int includeSize() const
Returns the number of PvlObjects and PvlGroups to include.
Definition: PvlFlatMap.cpp:103
const QStringList & includes() const
Returns the PvlObject/PvlGroup inclusion constraints.
Definition: PvlFlatMap.cpp:277
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
QList< PvlObject >::const_iterator ConstPvlObjectIterator
Definition: PvlObject.h:228
QString get(const QString &key, const int &index=0) const
Gets the value of a keyword in the PvlFlatMap.
Definition: PvlFlatMap.cpp:576
void addInclude(const QString &name)
Adds a PvlObject/PvlGroup inclusion constraint.
Definition: PvlFlatMap.cpp:150
virtual ~PvlFlatMap()
Destructor.
Definition: PvlFlatMap.cpp:425
const QStringList & excludes() const
Returns the PvlObject/PvlGroup exclusion constraints.
Definition: PvlFlatMap.cpp:262
QMap< QString, PvlKeyword >::iterator PvlFlatMapIterator
An iterator for the underlying QMap that PvlFlatMap is built on.
Definition: PvlFlatMap.h:224
Isis exception class.
Definition: IException.h:91
bool isExcluded(const QString &name) const
Determines if a PvlObject or PvlGroup is excluded.
Definition: PvlFlatMap.cpp:219
bool erase(const QString &key)
Erases a keyword from the PvlFlatMap.
Definition: PvlFlatMap.cpp:557
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
Namespace for the standard library.
static PvlConstraints withIncludes(const QStringList &includes)
Static method to construct a PvlConstraints object from a list of names for the PvlObjects and PvlGro...
Definition: PvlFlatMap.cpp:70
static QStringList keywordValues(const PvlKeyword &keyword)
Gets all of a PvlKeyword's values.
Definition: PvlFlatMap.cpp:702
virtual ~PvlConstraints()
Destructor.
Definition: PvlFlatMap.cpp:80
int size() const
Returns the number of values stored in this keyword.
Definition: PvlKeyword.h:125
QList< Isis::PvlGroup >::const_iterator ConstPvlGroupIterator
Definition: PvlObject.h:84
This is free and unencumbered software released into the public domain.
Definition: CubeIoHandler.h:22
Contains more than one keyword-value pair.
Definition: PvlContainer.h:49
PvlFlatMap()
Default constructor.
Definition: PvlFlatMap.cpp:343
This class can be used to define import/export behavior of Pvl structures when used in the PvlFlatMap...
Definition: PvlFlatMap.h:150
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16