Isis 3 Programmer Reference
PvlGroup.h
1 #ifndef PvlGroup_h
2 #define PvlGroup_h
3 
8 /* SPDX-License-Identifier: CC0-1.0 */
9 #include "PvlContainer.h"
10 
11 namespace Isis {
41  class PvlGroup : public Isis::PvlContainer {
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
Isis::PvlGroup::operator=
const PvlGroup & operator=(const PvlGroup &other)
This is an assignment operator.
Definition: PvlGroup.cpp:190
Isis::PvlGroup::operator==
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
Isis::PvlGroup
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
Isis::PvlGroup::operator<<
friend std::ostream & operator<<(std::ostream &os, PvlGroup &group)
Outputs the PvlGroup data to a specified output stream.
Definition: PvlGroup.cpp:145
Isis::PvlGroup::validateGroup
void validateGroup(PvlGroup &pPvlGrp)
Validate a Group comparing with the Template Group.
Definition: PvlGroup.cpp:207
Isis::PvlContainer::name
QString name() const
Returns the container name.
Definition: PvlContainer.h:63
Isis::PvlGroup::PvlGroup
PvlGroup()
Creates a blank PvlGroup object.
Definition: PvlGroup.cpp:16
Isis::PvlGroup::operator>>
friend std::istream & operator>>(std::istream &is, PvlGroup &result)
Read in a group.
Definition: PvlGroup.cpp:38
Isis::PvlContainer
Contains more than one keyword-value pair.
Definition: PvlContainer.h:49
Isis::PvlKeyword::stringEqual
static bool stringEqual(const QString &string1, const QString &string2)
Checks to see if two QStrings are equal.
Definition: PvlKeyword.cpp:535
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16