|
Isis 3 Programmer Reference
|
11 #include "PvlContainer.h"
16 #include <nlohmann/json.hpp>
19 template<
typename T>
class QList;
66 PvlObject(
const QString &
name,
const nlohmann::json &jsonobj);
133 return std::find(beg,
end, temp);
144 ConstPvlGroupIterator beg,
145 ConstPvlGroupIterator
end)
const {
147 return std::find(beg,
end, temp);
191 using PvlContainer::operator+=;
278 return std::find(beg,
end, temp);
290 ConstPvlObjectIterator beg,
291 ConstPvlObjectIterator
end)
const {
293 return std::find(beg,
end, temp);
void clear()
Remove everything from the current PvlObject.
PvlGroupIterator endGroup()
Returns the ending group index.
FindOptions
A collection of options to use when finding.
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
PvlGroup & group(const int index)
Return the group at the specified index.
void clear()
Clears PvlKeywords.
QList< Isis::PvlGroup >::iterator PvlGroupIterator
The counter for groups.
Contains Pvl Groups and Pvl Objects.
A single keyword-value pair.
ConstPvlObjectIterator endObject() const
Returns the const index of the ending object.
This is free and unencumbered software released into the public domain.
PvlObjectIterator beginObject()
Returns the index of the beginning object.
int groups() const
Returns the number of groups contained.
PvlObjectIterator endObject()
Returns the index of the ending object.
bool hasGroup(const QString &name) const
Returns a boolean value based on whether the object has the specified group or not.
bool hasKeyword(const QString &name) const
Check to see if a keyword exists.
int objects() const
Returns the number of objects.
bool hasKeyword(const QString &name) const
Check to see if a keyword exists.
void addObject(const PvlObject &object)
Add a PvlObject.
PvlObject & object(const int index)
Return the object at the specified index.
bool operator==(const PvlObject &object) const
Compares two PvlObjects.
friend std::ostream & operator<<(std::ostream &os, Isis::PvlObject &object)
Outputs the PvlObject data to a specified output stream.
@ Traverse
Search child objects.
void operator+=(const PvlKeyword &keyword)
When you use the += operator with a PvlKeyword, it will call the addKeyword() method.
QList< PvlObject >::iterator PvlObjectIterator
The counter for objects.
Contains multiple PvlContainers.
PvlKeyword & findKeyword(const QString &name)
Find a keyword with a specified name.
ConstPvlGroupIterator findGroup(const QString &name, ConstPvlGroupIterator beg, ConstPvlGroupIterator end) const
Find a group with the specified name, within these indexes.
const PvlObject & operator=(const PvlObject &other)
This is an assignment operator.
PvlObjectIterator findObject(const QString &name, PvlObjectIterator beg, PvlObjectIterator end)
Find the index of object with a specified name, between two indexes.
ConstPvlGroupIterator endGroup() const
Returns the const ending group index.
QString fileName() const
Returns the filename used to initialise the Pvl object.
QString name() const
Returns the container name.
PvlObject()
Creates a blank PvlObject.
QList< PvlGroup > m_groups
A vector of PvlGroups contained in the current PvlObject.
void validateObject(PvlObject &pPvlObj)
Validate Object.
bool hasObject(const QString &name) const
Returns a boolean value based on whether the object exists in the current PvlObject or not.
@ None
Search only the current level.
void addGroup(const Isis::PvlGroup &group)
Add a group to the object.
void deleteObject(const QString &name)
Remove an object from the current PvlObject.
PvlGroupIterator beginGroup()
Returns the beginning group index.
ConstPvlObjectIterator beginObject() const
Returns the const index of the beginning object.
ConstPvlObjectIterator findObject(const QString &name, ConstPvlObjectIterator beg, ConstPvlObjectIterator end) const
Find the index of object with a specified name, between two indexes.
PvlKeyword & findKeyword(const QString &name)
Find a keyword with a specified name.
PvlKeywordIterator end()
Return the ending iterator.
friend std::istream & operator>>(std::istream &is, PvlObject &result)
This method reads a PvlObject from the input stream.
Contains more than one keyword-value pair.
void deleteGroup(const QString &name)
Remove a group from the current PvlObject.
static bool stringEqual(const QString &string1, const QString &string2)
Checks to see if two QStrings are equal.
QList< PvlObject > m_objects
A vector of PvlObjects contained in the current PvlObject.
This is free and unencumbered software released into the public domain.
Q_DECLARE_METATYPE(Isis::PlotWindow *)
We have plot windows as QVariant data types, so here it's enabled.
ConstPvlGroupIterator beginGroup() const
Returns the beginning group index.