32 template<
typename T>
class QList;
145 return std::find(beg,
end, temp);
156 ConstPvlGroupIterator beg,
157 ConstPvlGroupIterator
end)
const {
159 return std::find(beg,
end, temp);
203 using PvlContainer::operator+=;
290 return std::find(beg,
end, temp);
302 ConstPvlObjectIterator beg,
303 ConstPvlObjectIterator
end)
const {
305 return std::find(beg,
end, temp);
PvlObject & object(const int index)
Return the object at the specified index.
FindOptions
A collection of options to use when finding.
PvlKeywordIterator end()
Return the ending iterator.
bool hasKeyword(const QString &name) const
Check to see if a keyword exists.
const PvlObject & operator=(const PvlObject &other)
This is an assignment operator.
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.
PvlObjectIterator endObject()
Returns the index of the ending object.
Contains more than one keyword-value pair.
void clear()
Remove everything from the current PvlObject.
ConstPvlObjectIterator beginObject() const
Returns the const index of the beginning object.
int objects() const
Returns the number of objects.
PvlGroupIterator endGroup()
Returns the ending group index.
PvlObjectIterator findObject(const QString &name, PvlObjectIterator beg, PvlObjectIterator end)
Find the index of object with a specified name, between two indexes.
void addGroup(const Isis::PvlGroup &group)
Add a group to the object.
Q_DECLARE_METATYPE(Isis::Cube *)
This allows Cube *'s to be stored in a QVariant.
bool hasGroup(const QString &name) const
Returns a boolean value based on whether the object has the specified group or not.
static bool stringEqual(const QString &string1, const QString &string2)
Checks to see if two QStrings are equal.
void validateObject(PvlObject &pPvlObj)
Validate Object.
QList< PvlGroup > m_groups
A vector of PvlGroups contained in the current PvlObject.
void deleteGroup(const QString &name)
Remove a group from the current PvlObject.
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 ...
bool hasObject(const QString &name) const
Returns a boolean value based on whether the object exists in the current PvlObject or not...
void addObject(const PvlObject &object)
Add a PvlObject.
ConstPvlObjectIterator findObject(const QString &name, ConstPvlObjectIterator beg, ConstPvlObjectIterator end) const
Find the index of object with a specified name, between two indexes.
QString name() const
Returns the container name.
QList< PvlObject > m_objects
A vector of PvlObjects contained in the current PvlObject.
QList< PvlObject >::iterator PvlObjectIterator
The counter for objects.
PvlKeyword & findKeyword(const QString &kname, FindOptions opts)
Finds a keyword in the current PvlObject, or deeper inside other PvlObjects and Pvlgroups within this...
Contains multiple PvlContainers.
Search only the current level.
ConstPvlObjectIterator endObject() const
Returns the const index of the ending object.
A single keyword-value pair.
ConstPvlGroupIterator endGroup() const
Returns the const ending group index.
friend std::istream & operator>>(std::istream &is, PvlObject &result)
This method reads a PvlObject from the input stream.
void deleteObject(const QString &name)
Remove an object from the current PvlObject.
PvlKeyword & findKeyword(const QString &name)
Find a keyword with a specified name.
PvlGroup & group(const int index)
Return the group at the specified index.
QList< Isis::PvlGroup >::iterator PvlGroupIterator
The counter for groups.
QString fileName() const
Returns the filename used to initialise the Pvl object.
Namespace for ISIS/Bullet specific routines.
int groups() const
Returns the number of groups contained.
ConstPvlGroupIterator findGroup(const QString &name, ConstPvlGroupIterator beg, ConstPvlGroupIterator end) const
Find a group with the specified name, within these indexes.
bool operator==(const PvlObject &object) const
Compares two PvlObjects.
Contains Pvl Groups and Pvl Objects.
PvlObjectIterator beginObject()
Returns the index of the beginning object.
friend std::ostream & operator<<(std::ostream &os, Isis::PvlObject &object)
Outputs the PvlObject data to a specified output stream.
void clear()
Clears PvlKeywords.
PvlObject()
Creates a blank PvlObject.
ConstPvlGroupIterator beginGroup() const
Returns the beginning group index.
PvlGroupIterator beginGroup()
Returns the beginning group index.