Isis Developer Reference
PvlGroup.h
Go to the documentation of this file.
1#ifndef PvlGroup_h
2#define PvlGroup_h
8/* SPDX-License-Identifier: CC0-1.0 */
9#include "PvlContainer.h"
10
11namespace Isis {
42 public:
43 PvlGroup();
44 PvlGroup(const QString &name);
45 PvlGroup(const PvlGroup &other);
46
48 void validateGroup(PvlGroup & pPvlGrp);
49
50 friend std::istream &operator>>(std::istream &is, PvlGroup &result);
51 friend std::ostream &operator<<(std::ostream &os, PvlGroup &group);
59 bool operator==(const PvlGroup &group) const {
60 return PvlKeyword::stringEqual(group.name(), this->name());
61 };
62
63 const PvlGroup &operator=(const PvlGroup &other);
64 };
65}
66#endif
Contains more than one keyword-value pair.
Definition PvlContainer.h:49
QString name() const
Returns the container name.
Definition PvlContainer.h:63
Contains multiple PvlContainers.
Definition PvlGroup.h:41
friend std::ostream & operator<<(std::ostream &os, PvlGroup &group)
Outputs the PvlGroup data to a specified output stream.
Definition PvlGroup.cpp:145
friend std::istream & operator>>(std::istream &is, PvlGroup &result)
Read in a group.
Definition PvlGroup.cpp:38
PvlGroup()
Creates a blank PvlGroup object.
Definition PvlGroup.cpp:16
bool operator==(const PvlGroup &group) const
Whenever the '==' operator is used on a PvlGroup object, it will call the stringEqual() method.
Definition PvlGroup.h:59
const PvlGroup & operator=(const PvlGroup &other)
This is an assignment operator.
Definition PvlGroup.cpp:190
void validateGroup(PvlGroup &pPvlGrp)
Validate a Group comparing with the Template Group.
Definition PvlGroup.cpp:207
static bool stringEqual(const QString &string1, const QString &string2)
Checks to see if two QStrings are equal.
Definition PvlKeyword.cpp:592
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16