|
Isis 3 Programmer Reference
|
1 #ifndef SerialNumberList_h
2 #define SerialNumberList_h
70 void add(
const QString &filename,
bool def2filename =
false);
75 void remove(
const QString &sn);
99 QString observationNumber;
100 QString spacecraftName;
101 QString instrumentId;
QString observationNumber(int index)
Return a observation number given an index.
QString m_target
Target name that the files must have if m_checkTarget is true
int size() const
How many serial number / filename combos are in the list.
int serialNumberIndex(const QString &sn)
Return a list index given a serial number.
std::vector< QString > possibleSerialNumbers(const QString &on)
Return possible serial numbers given an observation number.
Serial Number list generator.
QString serialNumber(const QString &filename)
Return a serial number given a filename.
void remove(const QString &sn)
Remove the specified serial number from the list.
std::map< QString, int > m_fileMap
Maps filenames to their positions in the list.
int fileNameIndex(const QString &filename)
Return a list index given a filename.
void add(const QString &filename, bool def2filename=false)
Adds a new filename / serial number pair to the SerialNumberList.
Program progress reporter.
std::vector< Pair > m_pairs
List of serial number Pair entities.
std::map< QString, int > m_serialMap
Maps serial numbers to their positions in the list.
bool m_checkTarget
Specifies whether or not to check to make sure the target names match between files added to the seri...
QString fileName(const QString &sn)
Return a filename given a serial number.
A serial number list entity that contains the filename serial number pair.
virtual ~SerialNumberList()
Destructor.
bool hasSerialNumber(QString sn)
Determines whether or not the requested serial number exists in the list.
QString spacecraftInstrumentId(int index)
Return the spacecraftname/instrumentid at the given index.
This is free and unencumbered software released into the public domain.
SerialNumberList(bool checkTarget=true)
Creates an empty SerialNumberList.