Isis Developer Reference
ObservationNumber.h
Go to the documentation of this file.
1 
2 #ifndef ObservationNumber_h
3 #define ObservationNumber_h
4 
10 /* SPDX-License-Identifier: CC0-1.0 */
11 #include <string>
12 
13 #include "SerialNumber.h"
14 #include "SerialNumberList.h"
15 
16 namespace Isis {
17  class Pvl;
18  class PvlGroup;
19  class Cube;
20 
47  public:
49 
50  virtual ~ObservationNumber();
51 
52  static QString Compose(Pvl &label, bool def2filename = false);
53 
54  static QString Compose(Cube &cube, bool def2filename = false);
55 
56  static QString Compose(const QString &filename, bool def2filename = false);
57 
58  std::vector<QString> PossibleSerial(const QString &on, SerialNumberList &list);
59 
60  private:
61 
62  static PvlGroup FindObservationTranslation(Pvl &label);
63 
64  }; // End of Class
65 }; // End of namespace
66 
67 #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::PvlKeyword
A single keyword-value pair.
Definition: PvlKeyword.h:82
Isis::SerialNumberList::size
int size() const
How many serial number / filename combos are in the list.
Definition: SerialNumberList.cpp:384
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::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::SerialNumberList::serialNumber
QString serialNumber(const QString &filename)
Return a serial number given a filename.
Definition: SerialNumberList.cpp:426
Isis::ObservationNumber::~ObservationNumber
virtual ~ObservationNumber()
Destroy a SerialNumber object.
Definition: ObservationNumber.cpp:24
Isis::PvlToPvlTranslationManager
Allows applications to translate simple text files.
Definition: PvlToPvlTranslationManager.h:65
ObservationNumber.h
Isis::ObservationNumber::PossibleSerial
std::vector< QString > PossibleSerial(const QString &on, SerialNumberList &list)
Creates a vector of plasible SerialNumbers from a string representing the ObservationNumber and a Ser...
Definition: ObservationNumber.cpp:150
Isis::PvlGroup
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
Pvl.h
SerialNumberList.h
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::ObservationNumber
Serial Number composer.
Definition: ObservationNumber.h:46
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
Isis::ObservationNumber::ObservationNumber
ObservationNumber()
Create an empty SerialNumber object.
Definition: ObservationNumber.cpp:19
PvlToPvlTranslationManager.h
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16