1 #ifndef SerialNumberList_h 2 #define SerialNumberList_h 86 void add(
const QString &filename,
bool def2filename =
false);
91 void remove(
const QString &sn);
int serialNumberIndex(const QString &sn)
Return a list index given a serial number.
Definition: SerialNumberList.cpp:451
QString observationNumber
Definition: SerialNumberList.h:115
bool hasSerialNumber(QString sn)
Determines whether or not the requested serial number exists in the list.
Definition: SerialNumberList.cpp:334
virtual ~SerialNumberList()
Destructor.
Definition: SerialNumberList.cpp:71
void add(const QString &filename, bool def2filename=false)
Adds a new filename / serial number pair to the SerialNumberList.
Definition: SerialNumberList.cpp:115
QString serialNumber(const QString &filename)
Return a serial number given a filename.
Definition: SerialNumberList.cpp:387
QString instrumentId
Definition: SerialNumberList.h:117
QString spacecraftInstrumentId(int index)
Return the spacecraftname/instrumentid at the given index.
Definition: SerialNumberList.cpp:520
std::vector< QString > possibleSerialNumbers(const QString &on)
Return possible serial numbers given an observation number.
Definition: SerialNumberList.cpp:574
std::map< QString, int > m_fileMap
Maps filenames to their positions in the list.
Definition: SerialNumberList.h:122
int fileNameIndex(const QString &filename)
Return a list index given a filename.
Definition: SerialNumberList.cpp:478
bool m_checkTarget
Specifies whether or not to check to make sure the target names match between files added to the seri...
Definition: SerialNumberList.h:128
std::map< QString, int > m_serialMap
Maps serial numbers to their positions in the list.
Definition: SerialNumberList.h:121
QString fileName(const QString &sn)
Return a filename given a serial number.
Definition: SerialNumberList.cpp:360
A serial number list entity that contains the filename serial number pair.
Definition: SerialNumberList.h:112
std::vector< Pair > m_pairs
List of serial number Pair entities.
Definition: SerialNumberList.h:120
Program progress reporter.
Definition: Progress.h:58
QString spacecraftName
Definition: SerialNumberList.h:116
QString m_target
Target name that the files must have if m_checkTarget is true.
Definition: SerialNumberList.h:129
QString serialNumber
Definition: SerialNumberList.h:114
int size() const
How many serial number / filename combos are in the list.
Definition: SerialNumberList.cpp:345
QString filename
Definition: SerialNumberList.h:113
QString observationNumber(int index)
Return a observation number given an index.
Definition: SerialNumberList.cpp:429
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
SerialNumberList(bool checkTarget=true)
Creates an empty SerialNumberList.
Definition: SerialNumberList.cpp:20
Serial Number list generator.
Definition: SerialNumberList.h:80