Isis 3 Programmer Reference
|
Serial Number composer. More...
#include <ObservationNumber.h>
Public Member Functions | |
ObservationNumber () | |
Create an empty SerialNumber object. | |
virtual | ~ObservationNumber () |
Destroy a SerialNumber object. | |
std::vector< QString > | PossibleSerial (const QString &on, SerialNumberList &list) |
Creates a vector of plasible SerialNumbers from a string representing the ObservationNumber and a SerialList. | |
Static Public Member Functions | |
static QString | Compose (Pvl &label, bool def2filename=false) |
Compose a ObservationNumber from a PVL. | |
static QString | Compose (Cube &cube, bool def2filename=false) |
Compose a SerialNumber fPvlGroup snGrouprom a Cube. | |
static QString | Compose (const QString &filename, bool def2filename=false) |
Compose a SerialNumber from a file. | |
static QString | ComposeObservation (const QString &sn, SerialNumberList &list, bool def2filename=false) |
Creates the ObservationNumber from a string representing the SerialNumber and a SerialList. | |
Static Protected Member Functions | |
static QString | CreateSerialNumber (PvlGroup &snGroup, int key) |
Create the SerialNumber string by concatenating the keywords in the label with '/' in between serialNumber groups and the number of observationKeys. | |
Static Private Member Functions | |
static PvlGroup | FindObservationTranslation (Pvl &label) |
Get Groups by translating from correct Translation table. | |
static PvlGroup | FindSerialTranslation (Pvl &label) |
Get Groups by translating from correct Translation table. | |
Serial Number composer.
A Serial Number is a unique identification for some object such as an Isis cube. A Serial Number for a specific object must be repeatable. This class is intended to be used to create all Serial Numbers for Isis.
2008-05-09 Steven Lambright - Optimized the FindObservationTranslation method
2020-03-03 Kristin Berry - Updated to use translation files migrated into source. See #3727
Definition at line 46 of file ObservationNumber.h.
Isis::ObservationNumber::ObservationNumber | ( | ) |
Create an empty SerialNumber object.
Definition at line 19 of file ObservationNumber.cpp.
|
virtual |
Destroy a SerialNumber object.
Definition at line 24 of file ObservationNumber.cpp.
|
static |
Compose a SerialNumber from a file.
filename | a filename to open |
Definition at line 71 of file ObservationNumber.cpp.
References Compose().
|
static |
Compose a SerialNumber fPvlGroup snGrouprom a Cube.
cube | An opened Isis cube |
Definition at line 62 of file ObservationNumber.cpp.
References Compose(), and Isis::Cube::label().
|
static |
Compose a ObservationNumber from a PVL.
label | A pvl formatted label to be used to generate the serial number |
Definition at line 31 of file ObservationNumber.cpp.
References Isis::SerialNumber::CreateSerialNumber(), Isis::PvlContainer::fileName(), FindObservationTranslation(), and Isis::FileName::name().
Referenced by Isis::SerialNumberList::add(), Compose(), Compose(), Isis::SerialNumber::ComposeObservation(), and Isis::Image::observationNumber().
|
staticinherited |
Creates the ObservationNumber from a string representing the SerialNumber and a SerialList.
sn | the string representing the SerialNumber |
list | the SerialNumberList |
def2filename | If a serial number could not be found, try to return the filename |
Definition at line 185 of file SerialNumber.cpp.
References Compose(), and Isis::SerialNumberList::fileName().
|
staticprotectedinherited |
Create the SerialNumber string by concatenating the keywords in the label with '/' in between serialNumber groups and the number of observationKeys.
snGroup | A PvlGroup containing the keywords to concatenate |
keys | the number of strings to contatenate |
Definition at line 164 of file SerialNumber.cpp.
Referenced by Compose(), and Isis::SerialNumber::Compose().
Get Groups by translating from correct Translation table.
label | A pvl formatted label to be used to generate the serial number |
Definition at line 81 of file ObservationNumber.cpp.
References Isis::toString().
Referenced by Compose().
Get Groups by translating from correct Translation table.
label | A pvl formatted label to be used to generate the serial number |
Definition at line 97 of file SerialNumber.cpp.
References Isis::PvlObject::findObject(), and Isis::toString().
Referenced by Isis::SerialNumber::Compose().
std::vector< QString > Isis::ObservationNumber::PossibleSerial | ( | const QString & | on, |
SerialNumberList & | list ) |
Creates a vector of plasible SerialNumbers from a string representing the ObservationNumber and a SerialList.
on | the string representing the ObservationNumber |
list | the SerialNumberList |
Definition at line 150 of file ObservationNumber.cpp.
References Isis::SerialNumberList::serialNumber(), and Isis::SerialNumberList::size().