Isis Developer Reference
SerialNumber.h
Go to the documentation of this file.
1#ifndef SerialNumber_h
2#define SerialNumber_h
3
9/* SPDX-License-Identifier: CC0-1.0 */
10#include <string>
11
12#include "SerialNumberList.h"
13
14namespace Isis {
15 class Pvl;
16 class PvlGroup;
17 class Cube;
18
72 public:
74
75 virtual ~SerialNumber();
76
77 static QString Compose(Pvl &label, bool def2filename = false);
78
79 static QString Compose(Cube &cube, bool def2filename = false);
80
81 static QString Compose(const QString &filename, bool def2filename = false);
82
83 static QString ComposeObservation(const QString &sn, SerialNumberList &list, bool def2filename = false);
84
85 protected:
86
87 static QString CreateSerialNumber(PvlGroup &snGroup, int key);
88
89 private:
90
91 static PvlGroup FindSerialTranslation(Pvl &label);
92
93 }; // End of Class
94}; // End of namespace
95
96#endif
IO Handler for Isis Cubes.
Definition Cube.h:168
Contains multiple PvlContainers.
Definition PvlGroup.h:41
Container for cube-like labels.
Definition Pvl.h:119
Serial Number composer.
Definition SerialNumber.h:71
SerialNumber()
Create an empty SerialNumber object.
Definition SerialNumber.cpp:23
static QString Compose(Pvl &label, bool def2filename=false)
Compose a SerialNumber from a PVL.
Definition SerialNumber.cpp:38
static QString CreateSerialNumber(PvlGroup &snGroup, int key)
Create the SerialNumber string by concatenating the keywords in the label with '/' in between serialN...
Definition SerialNumber.cpp:164
static QString ComposeObservation(const QString &sn, SerialNumberList &list, bool def2filename=false)
Creates the ObservationNumber from a string representing the SerialNumber and a SerialList.
Definition SerialNumber.cpp:185
virtual ~SerialNumber()
Destroy a SerialNumber object.
Definition SerialNumber.cpp:28
Serial Number list generator.
Definition SerialNumberList.h:64
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16