|
Isis Developer Reference
|
Go to the documentation of this file.
16 #include <nlohmann/json.hpp>
19 template<
typename T>
class QList;
76 return m_groups.size();
92 return m_groups.begin();
101 return m_groups.begin();
110 return m_groups.end();
119 return m_groups.end();
133 return std::find(beg,
end, temp);
147 return std::find(beg,
end, temp);
187 m_groups.push_back(
group);
191 using PvlContainer::operator+=;
220 return m_objects.size();
236 return m_objects.begin();
245 return m_objects.begin();
254 return m_objects.end();
263 return m_objects.end();
278 return std::find(beg,
end, temp);
293 return std::find(beg,
end, temp);
308 m_objects.push_back(
object);
309 m_objects[m_objects.size()-1].setFileName(
fileName());
void clear()
Remove everything from the current PvlObject.
Definition: PvlObject.h:341
PvlGroupIterator endGroup()
Returns the ending group index.
Definition: PvlObject.h:109
FindOptions
A collection of options to use when finding.
Definition: PvlObject.h:154
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
Definition: PvlObject.h:129
PvlGroup & group(const int index)
Return the group at the specified index.
Definition: PvlObject.cpp:452
@ Io
A type of error that occurred when performing an actual I/O operation.
Definition: IException.h:155
void clear()
Clears PvlKeywords.
Definition: PvlContainer.h:91
QList< Isis::PvlGroup >::iterator PvlGroupIterator
The counter for groups.
Definition: PvlObject.h:83
QDebug operator<<(QDebug debug, const Hillshade &hillshade)
Print this class out to a QDebug object.
Definition: Hillshade.cpp:314
Contains Pvl Groups and Pvl Objects.
Definition: PvlObject.h:61
const PvlContainer & operator=(const PvlContainer &other)
This is an assignment operator.
Definition: PvlContainer.cpp:375
A single keyword-value pair.
Definition: PvlKeyword.h:82
ConstPvlObjectIterator endObject() const
Returns the const index of the ending object.
Definition: PvlObject.h:262
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
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
PvlObjectIterator beginObject()
Returns the index of the beginning object.
Definition: PvlObject.h:235
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
@ Unknown
A type of error that cannot be classified as any of the other error types.
Definition: IException.h:118
int groups() const
Returns the number of groups contained.
Definition: PvlObject.h:75
bool fileExists() const
Returns true if the file exists; false otherwise.
Definition: FileName.cpp:449
PvlObjectIterator endObject()
Returns the index of the ending object.
Definition: PvlObject.h:253
void clear()
Clears all values and units for this PvlKeyword object.
Definition: PvlKeyword.cpp:291
bool hasGroup(const QString &name) const
Returns a boolean value based on whether the object has the specified group or not.
Definition: PvlObject.h:210
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
int objects() const
Returns the number of objects.
Definition: PvlObject.h:219
bool hasKeyword(const QString &name) const
Check to see if a keyword exists.
Definition: PvlContainer.cpp:159
void addObject(const PvlObject &object)
Add a PvlObject.
Definition: PvlObject.h:307
PvlObject & object(const int index)
Return the object at the specified index.
Definition: PvlObject.cpp:489
bool operator==(const PvlObject &object) const
Compares two PvlObjects.
Definition: PvlObject.h:335
void validateAllKeywords(PvlContainer &pPvlCont)
Validate All the Keywords in a Container comparing with the Template.
Definition: PvlContainer.cpp:394
friend std::ostream & operator<<(std::ostream &os, Isis::PvlObject &object)
Outputs the PvlObject data to a specified output stream.
Definition: PvlObject.cpp:523
@ Traverse
Search child objects.
Definition: PvlObject.h:158
void operator+=(const PvlKeyword &keyword)
When you use the += operator with a PvlKeyword, it will call the addKeyword() method.
Definition: PvlContainer.h:110
QList< PvlObject >::iterator PvlObjectIterator
The counter for objects.
Definition: PvlObject.h:227
void setName(QString name)
Sets the keyword name.
Definition: PvlKeyword.cpp:120
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Definition: FileName.cpp:196
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
PvlKeyword & findKeyword(const QString &name)
Find a keyword with a specified name.
Definition: PvlContainer.cpp:62
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
QList< PvlObject >::const_iterator ConstPvlObjectIterator
Definition: PvlObject.h:228
ConstPvlGroupIterator findGroup(const QString &name, ConstPvlGroupIterator beg, ConstPvlGroupIterator end) const
Find a group with the specified name, within these indexes.
Definition: PvlObject.h:143
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:236
nlohmann::json json
Definition: PvlObject.cpp:22
const PvlObject & operator=(const PvlObject &other)
This is an assignment operator.
Definition: PvlObject.cpp:821
void validateGroup(PvlGroup &pPvlGrp)
Validate a Group comparing with the Template Group.
Definition: PvlGroup.cpp:207
PvlObjectIterator findObject(const QString &name, PvlObjectIterator beg, PvlObjectIterator end)
Find the index of object with a specified name, between two indexes.
Definition: PvlObject.h:274
ConstPvlGroupIterator endGroup() const
Returns the const ending group index.
Definition: PvlObject.h:118
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
PvlObject()
Creates a blank PvlObject.
Definition: PvlObject.cpp:26
Isis exception class.
Definition: IException.h:91
void setValue(QString value, QString unit="")
Sets new values.
Definition: PvlKeyword.cpp:155
void validateObject(PvlObject &pPvlObj)
Validate Object.
Definition: PvlObject.cpp:841
void addComment(const QString &comment)
Definition: PvlContainer.h:269
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:323
int comments() const
Definition: PvlContainer.h:262
@ None
Search only the current level.
Definition: PvlObject.h:156
void addGroup(const Isis::PvlGroup &group)
Add a group to the object.
Definition: PvlObject.h:186
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
Namespace for the standard library.
void deleteObject(const QString &name)
Remove an object from the current PvlObject.
Definition: PvlObject.cpp:366
PvlGroupIterator beginGroup()
Returns the beginning group index.
Definition: PvlObject.h:91
ConstPvlObjectIterator beginObject() const
Returns the const index of the beginning object.
Definition: PvlObject.h:244
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:289
QList< Isis::PvlGroup >::const_iterator ConstPvlGroupIterator
Definition: PvlObject.h:84
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 &kname, FindOptions opts)
Finds a keyword in the current PvlObject, or deeper inside other PvlObjects and Pvlgroups within this...
Definition: PvlObject.cpp:177
Q_DECLARE_METATYPE(Isis::PvlObject)
PvlKeyword & findKeyword(const QString &name)
Find a keyword with a specified name.
Definition: PvlContainer.cpp:62
PvlKeywordIterator end()
Return the ending iterator.
Definition: PvlContainer.h:194
friend std::istream & operator>>(std::istream &is, PvlObject &result)
This method reads a PvlObject from the input stream.
Definition: PvlObject.cpp:705
Contains more than one keyword-value pair.
Definition: PvlContainer.h:49
void deleteGroup(const QString &name)
Remove a group from the current PvlObject.
Definition: PvlObject.cpp:408
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
std::istream & operator>>(std::istream &is, CSVReader &csv)
Input read operator for input stream sources.
Definition: CSVReader.cpp:447
static bool stringEqual(const QString &string1, const QString &string2)
Checks to see if two QStrings are equal.
Definition: PvlKeyword.cpp:535
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
@ User
A type of error that could only have occurred due to a mistake on the user's part (e....
Definition: IException.h:126
QString type() const
Returns the container type.
Definition: PvlContainer.h:79
ConstPvlGroupIterator beginGroup() const
Returns the beginning group index.
Definition: PvlObject.h:100