Isis 3 Programmer Reference
PvlFormatPds.h
1
#ifndef PvlFormatPds_h
2
#define PvlFormatPds_h
3
8
/* SPDX-License-Identifier: CC0-1.0 */
9
#include <map>
10
#include <string>
11
12
#include "PvlFormat.h"
13
14
namespace
Isis
{
45
class
PvlFormatPds
:
public
PvlFormat
{
46
47
public
:
48
49
PvlFormatPds
();
50
PvlFormatPds
(
const
QString &file);
51
PvlFormatPds
(
Pvl
&keymap);
52
virtual
~
PvlFormatPds
() {};
53
54
virtual
QString formatValue(
const
PvlKeyword
&keyword,
55
int
valueIndex = 0);
56
virtual
QString formatName(
const
PvlKeyword
&keyword);
57
virtual
QString formatEnd(
const
QString name,
58
const
PvlKeyword
&keyword);
59
virtual
QString formatEOL() {
60
return
"\015\012"
;
61
}
62
63
protected
:
64
virtual
QString addQuotes(
const
QString value);
65
66
QString formatString(
const
PvlKeyword
&keyword,
int
num);
67
QString formatInteger(
const
PvlKeyword
&keyword,
int
num,
int
bytes);
68
QString formatReal(
const
PvlKeyword
&keyword,
int
num,
int
precision);
69
QString formatEnum(
const
PvlKeyword
&keyword,
int
num);
70
QString formatBinary(
const
PvlKeyword
&keyword,
int
num,
int
bytes);
71
QString formatHex(
const
PvlKeyword
&keyword,
int
num,
int
bytes);
72
QString formatBool(
const
PvlKeyword
&keyword,
int
num);
73
QString formatUnknown(
const
PvlKeyword
&keyword,
int
num);
74
75
private
:
76
void
init
();
77
};
78
};
79
80
#endif
81
Isis::PvlKeyword
A single keyword-value pair.
Definition:
PvlKeyword.h:82
Isis::PvlFormatPds
Formats the value of a PvlKeyword into a PDS complient string.
Definition:
PvlFormatPds.h:45
Isis::PvlFormat
Formats a Pvl name value pair to Isis standards.
Definition:
PvlFormat.h:108
Isis::Pvl
Container for cube-like labels.
Definition:
Pvl.h:119
Isis::PvlFormatPds::init
void init()
Clears all PvlFormatPds specific data.
Definition:
PvlFormatPds.cpp:58
Isis
This is free and unencumbered software released into the public domain.
Definition:
Apollo.h:16
src
base
objs
PvlFormatPds
PvlFormatPds.h