|
Isis Developer Reference
|
Go to the documentation of this file.
122 Pvl(
const QString &file);
133 void read(
const QString &file);
135 void write(
const QString &file);
136 void append(
const QString &file);
167 bool m_internalTemplate;
168 QString m_terminator;
friend std::ostream & operator<<(std::ostream &os, Isis::Pvl &pvl)
This stream will not handle the end of line sequence.
Definition: Pvl.cpp:249
PvlContainer * m_formatTemplate
Definition: PvlContainer.h:305
QString name() const
Returns the keyword name.
Definition: PvlKeyword.h:98
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
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
void setFormatTemplate(Isis::Pvl &temp)
Definition: Pvl.cpp:227
A single keyword-value pair.
Definition: PvlKeyword.h:82
void append(const QString &file)
Appends PVL information to a file and handles the end of line sequence.
Definition: Pvl.cpp:184
QString m_filename
This contains the filename used to initialize the pvl object.
Definition: PvlContainer.h:283
void fromString(const std::string &str)
Load PVL information from a string.
Definition: Pvl.cpp:60
friend std::istream & operator>>(std::istream &is, Pvl &pvl)
Reads keywords from the instream and appends them to the Pvl object.
Definition: Pvl.cpp:403
QString comment(const int index) const
Definition: PvlContainer.h:265
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
QString FileOpen(const QString &filename)
This error should be used when a file could not be opened.
Definition: FileOpen.cpp:11
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
void addObject(const PvlObject &object)
Add a PvlObject.
Definition: PvlObject.h:307
void write(const QString &file)
Opens and writes PVL information to a file and handles the end of line sequence.
Definition: Pvl.cpp:130
void validatePvl(const Pvl &pPvl, Pvl &pPvlResults)
Validate a Pvl with the Template Pvl.
Definition: Pvl.cpp:529
PvlObject & object(const int index)
Return the object at the specified index.
Definition: PvlObject.cpp:489
void validateAllKeywords(PvlContainer &pPvlCont)
Validate All the Keywords in a Container comparing with the Template.
Definition: PvlContainer.cpp:394
void setFormat(PvlFormat *format)
Definition: PvlContainer.h:251
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
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
void read(const QString &file)
Loads PVL information from a stream.
Definition: Pvl.cpp:90
const Pvl & operator=(const Pvl &other)
This is an assignment operator.
Definition: Pvl.cpp:510
QString terminator() const
Returns the terminator used to signify the end of the PVL informationDefaults to "END".
Definition: Pvl.h:153
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
const PvlObject & operator=(const PvlObject &other)
This is an assignment operator.
Definition: PvlObject.cpp:821
long long int BigInt
Big int.
Definition: Constants.h:49
bool hasFormatTemplate()
Definition: PvlContainer.h:240
int indent()
Definition: PvlContainer.h:255
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
QString name() const
Returns the container name.
Definition: PvlContainer.h:63
Isis exception class.
Definition: IException.h:91
void validateObject(PvlObject &pPvlObj)
Validate Object.
Definition: PvlObject.cpp:841
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
~Pvl()
Definition: Pvl.h:129
PvlFormat * format()
Definition: PvlContainer.h:248
Pvl()
Constructs an empty Pvl object.
Definition: Pvl.cpp:24
int comments() const
Definition: PvlContainer.h:262
void addGroup(const Isis::PvlGroup &group)
Add a group to the object.
Definition: PvlObject.h:186
QString FileCreate(const QString &filename)
This error should be used when a file could not be created.
Definition: FileCreate.cpp:12
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
Namespace for the standard library.
PvlContainer * formatTemplate()
Definition: PvlContainer.h:244
void deleteObject(const QString &name)
Remove an object from the current PvlObject.
Definition: PvlObject.cpp:366
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
Adds specific functionality to C++ strings.
Definition: IString.h:165
PvlKeyword & findKeyword(const QString &name)
Find a keyword with a specified name.
Definition: PvlContainer.cpp:62
void setIndent(int indent)
Definition: PvlContainer.h:258
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
std::istream & operator>>(std::istream &is, CSVReader &csv)
Input read operator for input stream sources.
Definition: CSVReader.cpp:447
void setFormatTemplate(PvlContainer &ref)
Definition: PvlContainer.h:236
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
void setTerminator(const QString &term)
Sets the terminator used to signify the end of the PVL informationDefaults to "END".
Definition: Pvl.h:144
@ User
A type of error that could only have occurred due to a mistake on the user's part (e....
Definition: IException.h:126