32 template<
typename T>
class QList;
88 return m_groups.size();
104 return m_groups.begin();
113 return m_groups.begin();
122 return m_groups.end();
131 return m_groups.end();
145 return std::find(beg,
end, temp);
159 return std::find(beg,
end, temp);
199 m_groups.push_back(
group);
203 using PvlContainer::operator+=;
232 return m_objects.size();
248 return m_objects.begin();
257 return m_objects.begin();
266 return m_objects.end();
275 return m_objects.end();
290 return std::find(beg,
end, temp);
305 return std::find(beg,
end, temp);
320 m_objects.push_back(
object);
321 m_objects[m_objects.size()-1].setFileName(
fileName());
PvlObject & object(const int index)
Return the object at the specified index.
Definition: PvlObject.cpp:460
QList< PvlObject >::const_iterator ConstPvlObjectIterator
Definition: PvlObject.h:240
FindOptions
A collection of options to use when finding.
Definition: PvlObject.h:166
PvlKeywordIterator end()
Return the ending iterator.
Definition: PvlContainer.h:208
bool hasKeyword(const QString &name) const
Check to see if a keyword exists.
Definition: PvlContainer.cpp:175
const PvlObject & operator=(const PvlObject &other)
This is an assignment operator.
Definition: PvlObject.cpp:792
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
Definition: PvlObject.h:141
PvlObjectIterator endObject()
Returns the index of the ending object.
Definition: PvlObject.h:265
Contains more than one keyword-value pair.
Definition: PvlContainer.h:63
void clear()
Remove everything from the current PvlObject.
Definition: PvlObject.h:353
QList< Isis::PvlGroup >::const_iterator ConstPvlGroupIterator
Definition: PvlObject.h:96
ConstPvlObjectIterator beginObject() const
Returns the const index of the beginning object.
Definition: PvlObject.h:256
int objects() const
Returns the number of objects.
Definition: PvlObject.h:231
PvlGroupIterator endGroup()
Returns the ending group index.
Definition: PvlObject.h:121
PvlObjectIterator findObject(const QString &name, PvlObjectIterator beg, PvlObjectIterator end)
Find the index of object with a specified name, between two indexes.
Definition: PvlObject.h:286
void addGroup(const Isis::PvlGroup &group)
Add a group to the object.
Definition: PvlObject.h:198
void operator+=(const Isis::PvlGroup &group)
Definition: PvlObject.h:204
Search child objects.
Definition: PvlObject.h:170
bool hasGroup(const QString &name) const
Returns a boolean value based on whether the object has the specified group or not.
Definition: PvlObject.h:222
static bool stringEqual(const QString &string1, const QString &string2)
Checks to see if two QStrings are equal.
Definition: PvlKeyword.cpp:551
void validateObject(PvlObject &pPvlObj)
Validate Object.
Definition: PvlObject.cpp:812
void deleteGroup(const QString &name)
Remove a group from the current PvlObject.
Definition: PvlObject.cpp:379
bool hasKeyword(const QString &kname, FindOptions opts) const
See if a keyword is in the current PvlObject, or deeper inside other PvlObjects and Pvlgroups within ...
Definition: PvlObject.cpp:207
bool hasObject(const QString &name) const
Returns a boolean value based on whether the object exists in the current PvlObject or not...
Definition: PvlObject.h:335
void addObject(const PvlObject &object)
Add a PvlObject.
Definition: PvlObject.h:319
ConstPvlObjectIterator findObject(const QString &name, ConstPvlObjectIterator beg, ConstPvlObjectIterator end) const
Find the index of object with a specified name, between two indexes.
Definition: PvlObject.h:301
QString name() const
Returns the container name.
Definition: PvlContainer.h:77
QList< PvlObject >::iterator PvlObjectIterator
The counter for objects.
Definition: PvlObject.h:239
PvlKeyword & findKeyword(const QString &kname, FindOptions opts)
Finds a keyword in the current PvlObject, or deeper inside other PvlObjects and Pvlgroups within this...
Definition: PvlObject.cpp:148
Contains multiple PvlContainers.
Definition: PvlGroup.h:57
Search only the current level.
Definition: PvlObject.h:168
ConstPvlObjectIterator endObject() const
Returns the const index of the ending object.
Definition: PvlObject.h:274
A single keyword-value pair.
Definition: PvlKeyword.h:98
ConstPvlGroupIterator endGroup() const
Returns the const ending group index.
Definition: PvlObject.h:130
friend std::istream & operator>>(std::istream &is, PvlObject &result)
This method reads a PvlObject from the input stream.
Definition: PvlObject.cpp:676
void deleteObject(const QString &name)
Remove an object from the current PvlObject.
Definition: PvlObject.cpp:337
PvlKeyword & findKeyword(const QString &name)
Find a keyword with a specified name.
Definition: PvlContainer.cpp:78
PvlGroup & group(const int index)
Return the group at the specified index.
Definition: PvlObject.cpp:423
QList< Isis::PvlGroup >::iterator PvlGroupIterator
The counter for groups.
Definition: PvlObject.h:95
QString fileName() const
Returns the filename used to initialise the Pvl object.
Definition: PvlContainer.h:246
Definition: BoxcarCachingAlgorithm.h:29
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
int groups() const
Returns the number of groups contained.
Definition: PvlObject.h:87
ConstPvlGroupIterator findGroup(const QString &name, ConstPvlGroupIterator beg, ConstPvlGroupIterator end) const
Find a group with the specified name, within these indexes.
Definition: PvlObject.h:155
bool operator==(const PvlObject &object) const
Compares two PvlObjects.
Definition: PvlObject.h:347
Contains Pvl Groups and Pvl Objects.
Definition: PvlObject.h:74
PvlObjectIterator beginObject()
Returns the index of the beginning object.
Definition: PvlObject.h:247
Q_DECLARE_METATYPE(Isis::PvlObject)
friend std::ostream & operator<<(std::ostream &os, Isis::PvlObject &object)
Outputs the PvlObject data to a specified output stream.
Definition: PvlObject.cpp:494
void clear()
Clears PvlKeywords.
Definition: PvlContainer.h:105
PvlObject()
Creates a blank PvlObject.
Definition: PvlObject.cpp:40
ConstPvlGroupIterator beginGroup() const
Returns the beginning group index.
Definition: PvlObject.h:112
PvlGroupIterator beginGroup()
Returns the beginning group index.
Definition: PvlObject.h:103