Isis 3 Programmer Reference
PvlGroup.h
Go to the documentation of this file.
1 #ifndef PvlGroup_h
2 #define PvlGroup_h
3 
25 #include "PvlContainer.h"
26 
27 namespace Isis {
57  class PvlGroup : public Isis::PvlContainer {
58  public:
59  PvlGroup();
60  PvlGroup(const QString &name);
61  PvlGroup(const PvlGroup &other);
62 
64  void validateGroup(PvlGroup & pPvlGrp);
65 
66  friend std::istream &operator>>(std::istream &is, PvlGroup &result);
67  friend std::ostream &operator<<(std::ostream &os, PvlGroup &group);
75  bool operator==(const PvlGroup &group) const {
76  return PvlKeyword::stringEqual(group.name(), this->name());
77  };
78 
79  const PvlGroup &operator=(const PvlGroup &other);
80  };
81 }
82 #endif
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
Contains more than one keyword-value pair.
Definition: PvlContainer.h:63
const PvlGroup & operator=(const PvlGroup &other)
This is an assignment operator.
Definition: PvlGroup.cpp:203
friend std::ostream & operator<<(std::ostream &os, PvlGroup &group)
Outputs the PvlGroup data to a specified output stream.
Definition: PvlGroup.cpp:158
friend std::istream & operator>>(std::istream &is, PvlGroup &result)
Read in a group.
Definition: PvlGroup.cpp:51
static bool stringEqual(const QString &string1, const QString &string2)
Checks to see if two QStrings are equal.
Definition: PvlKeyword.cpp:551
void validateGroup(PvlGroup &pPvlGrp)
Validate a Group comparing with the Template Group.
Definition: PvlGroup.cpp:220
QString name() const
Returns the container name.
Definition: PvlContainer.h:77
PvlGroup()
Creates a blank PvlGroup object.
Definition: PvlGroup.cpp:29
bool operator==(const PvlGroup &group) const
Whenever the &#39;==&#39; operator is used on a PvlGroup object, it will call the stringEqual() method...
Definition: PvlGroup.h:75
Contains multiple PvlContainers.
Definition: PvlGroup.h:57
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31