Isis 3 Programmer Reference
PvlFormatPds.h
Go to the documentation of this file.
1 #ifndef PvlFormatPds_h
2 #define PvlFormatPds_h
3 
25 #include <map>
26 #include <string>
27 
28 #include "PvlFormat.h"
29 
30 namespace Isis {
61  class PvlFormatPds : public PvlFormat {
62 
63  public:
64 
65  PvlFormatPds();
66  PvlFormatPds(const QString &file);
67  PvlFormatPds(Pvl &keymap);
68  virtual ~PvlFormatPds() {};
69 
70  virtual QString formatValue(const PvlKeyword &keyword,
71  int valueIndex = 0);
72  virtual QString formatName(const PvlKeyword &keyword);
73  virtual QString formatEnd(const QString name,
74  const PvlKeyword &keyword);
75  virtual QString formatEOL() {
76  return "\015\012";
77  }
78 
79  protected:
80  virtual QString addQuotes(const QString value);
81 
82  QString formatString(const PvlKeyword &keyword, int num);
83  QString formatInteger(const PvlKeyword &keyword, int num, int bytes);
84  QString formatReal(const PvlKeyword &keyword, int num, int precision);
85  QString formatEnum(const PvlKeyword &keyword, int num);
86  QString formatBinary(const PvlKeyword &keyword, int num, int bytes);
87  QString formatHex(const PvlKeyword &keyword, int num, int bytes);
88  QString formatBool(const PvlKeyword &keyword, int num);
89  QString formatUnknown(const PvlKeyword &keyword, int num);
90 
91  private:
92  void init();
93  };
94 };
95 
96 #endif
97 
Formats a Pvl name value pair to Isis standards.
Definition: PvlFormat.h:124
Formats the value of a PvlKeyword into a PDS complient string.
Definition: PvlFormatPds.h:61
void init()
Clears all PvlFormatPds specific data.
A single keyword-value pair.
Definition: PvlKeyword.h:98
Container for cube-like labels.
Definition: Pvl.h:135
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31