Isis 3 Programmer Reference
SerialNumber.h
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 
14 namespace Isis {
15  class Pvl;
16  class PvlGroup;
17  class Cube;
18 
71  class SerialNumber {
72  public:
73  SerialNumber();
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
Isis::SerialNumber
Serial Number composer.
Definition: SerialNumber.h:71
Isis::SerialNumber::~SerialNumber
virtual ~SerialNumber()
Destroy a SerialNumber object.
Definition: SerialNumber.cpp:28
Isis::SerialNumber::Compose
static QString Compose(Pvl &label, bool def2filename=false)
Compose a SerialNumber from a PVL.
Definition: SerialNumber.cpp:38
Isis::Pvl
Container for cube-like labels.
Definition: Pvl.h:119
Isis::SerialNumberList
Serial Number list generator.
Definition: SerialNumberList.h:64
Isis::PvlGroup
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
Isis::SerialNumber::SerialNumber
SerialNumber()
Create an empty SerialNumber object.
Definition: SerialNumber.cpp:23
Isis::SerialNumber::ComposeObservation
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
Isis::Cube
IO Handler for Isis Cubes.
Definition: Cube.h:167
Isis::SerialNumber::CreateSerialNumber
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
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::SerialNumber::FindSerialTranslation
static PvlGroup FindSerialTranslation(Pvl &label)
Get Groups by translating from correct Translation table.
Definition: SerialNumber.cpp:97