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 
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
FileName.h
Isis::PvlObject::findGroup
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
Definition: PvlObject.h:129
Cube.h
Isis::FileName::name
QString name() const
Returns the name of the file excluding the path and the attributes in the file name.
Definition: FileName.cpp:162
Isis::FileName
File name manipulation and expansion.
Definition: FileName.h:100
Process.h
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::toString
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
Isis::SerialNumberList
Serial Number list generator.
Definition: SerialNumberList.h:64
Isis::PvlToPvlTranslationManager
Allows applications to translate simple text files.
Definition: PvlToPvlTranslationManager.h:65
ObservationNumber.h
Isis::PvlGroup
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
Pvl.h
Isis::SerialNumber::SerialNumber
SerialNumber()
Create an empty SerialNumber object.
Definition: SerialNumber.cpp:23
SerialNumberList.h
Isis::PvlObject::findObject
PvlObjectIterator findObject(const QString &name, PvlObjectIterator beg, PvlObjectIterator end)
Find the index of object with a specified name, between two indexes.
Definition: PvlObject.h:274
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::PvlContainer::fileName
QString fileName() const
Returns the filename used to initialise the Pvl object.
Definition: PvlContainer.h:232
Isis::ObservationNumber::Compose
static QString Compose(Pvl &label, bool def2filename=false)
Compose a ObservationNumber from a PVL.
Definition: ObservationNumber.cpp:31
Isis::Cube
IO Handler for Isis Cubes.
Definition: Cube.h:167
Isis::IException
Isis exception class.
Definition: IException.h:91
IException.h
Isis::Cube::label
Pvl * label() const
Returns a pointer to the IsisLabel object associated with the cube.
Definition: Cube.cpp:1701
Isis::SerialNumberList::fileName
QString fileName(const QString &sn)
Return a filename given a serial number.
Definition: SerialNumberList.cpp:399
SerialNumber.h
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
PvlToPvlTranslationManager.h
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16