File failed to load: https://isis.astrogeology.usgs.gov/6.0.0/Object/assets/jax/output/NativeMML/config.js
Isis Developer Reference
ObservationNumberList.h
Go to the documentation of this file.
1 #ifndef ObservationNumberList_h
2 #define ObservationNumberList_h
3 
8 /* SPDX-License-Identifier: CC0-1.0 */
9 
10 #include <map>
11 #include <vector>
12 
13 #include <QString>
14 
15 #include "SerialNumberList.h"
16 
17 namespace Isis {
18 
44  public:
45  ObservationNumberList(const QString &list, bool checkTarget = true);
48 
49  void add(int isn, const int observationIndex, QString observationNumber) ;
50  int observationSize() const;
51 
53 
54  void remove(SerialNumberList *snlist);
55  void remove(const QString &listfile);
56 
57  bool hasObservationNumber(const QString &on);
58 
59  QString observationNumber(const QString &filename);
60  QString observationNumber(int index);
61  std::vector<QString> possibleFileNames(const QString &on);
62 
63  private:
68  struct ObservationSet {
70  int observationNumberIndex;
71  QString observationNumber;
72  };
73 
74  void init(SerialNumberList *snlist);
75 
76  std::multimap<int, int> m_indexMap;
77  int m_numberObservations;
78  std::vector<ObservationSet> m_sets;
79  };
80 };
81 
82 #endif
83 
Isis::ObservationNumberList::observationSize
int observationSize() const
How many unique observations are in the list?
Definition: ObservationNumberList.cpp:172
Isis::ObservationNumberList::possibleFileNames
std::vector< QString > possibleFileNames(const QString &on)
Return possible filenames given an observation number.
Definition: ObservationNumberList.cpp:267
FileName.h
Isis::SerialNumberList::observationNumber
QString observationNumber(int index)
Return a observation number given an index.
Definition: SerialNumberList.cpp:468
Isis::SerialNumberList::size
int size() const
How many serial number / filename combos are in the list.
Definition: SerialNumberList.cpp:384
Isis::SerialNumberList::serialNumberIndex
int serialNumberIndex(const QString &sn)
Return a list index given a serial number.
Definition: SerialNumberList.cpp:490
Isis::FileName
File name manipulation and expansion.
Definition: FileName.h:100
Isis::ObservationNumberList::observationNumber
QString observationNumber(const QString &filename)
Return an observation number given a filename.
Definition: ObservationNumberList.cpp:226
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::ObservationNumberList::remove
void remove(SerialNumberList *snlist)
Removes all of the listed serial numbers from the observation.
Definition: ObservationNumberList.cpp:95
Isis::SerialNumberList::m_fileMap
std::map< QString, int > m_fileMap
Maps filenames to their positions in the list.
Definition: SerialNumberList.h:106
Isis::FileName::expanded
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Definition: FileName.cpp:196
Isis::ObservationNumberList::observationNumberMapIndex
int observationNumberMapIndex(const int serialNumberIndex)
Return a observation index given a serial number index.
Definition: ObservationNumberList.cpp:204
Pvl.h
_FILEINFO_
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
Isis::SerialNumberList::fileNameIndex
int fileNameIndex(const QString &filename)
Return a list index given a filename.
Definition: SerialNumberList.cpp:517
SerialNumberList.h
Isis::ObservationNumberList::~ObservationNumberList
~ObservationNumberList()
Destructor.
Definition: ObservationNumberList.cpp:84
Isis::ObservationNumberList::hasObservationNumber
bool hasObservationNumber(const QString &on)
Determines whether or not the requested observation number exists in the list.
Definition: ObservationNumberList.cpp:185
ObservationNumberList.h
Isis::ObservationNumberList
Create a list of observation numbers from a file or serial number list.
Definition: ObservationNumberList.h:43
Isis::IException
Isis exception class.
Definition: IException.h:91
Isis::SerialNumberList::m_pairs
std::vector< Pair > m_pairs
List of serial number Pair entities.
Definition: SerialNumberList.h:104
Isis::ObservationNumberList::add
void add(int isn, const int observationIndex, QString observationNumber)
Adds a new serial number index / observation number index / observation number to the SerialNumberLis...
Definition: ObservationNumberList.cpp:154
IException.h
Isis::IException::Programmer
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
std
Namespace for the standard library.
Isis::SerialNumberList::hasSerialNumber
bool hasSerialNumber(QString sn)
Determines whether or not the requested serial number exists in the list.
Definition: SerialNumberList.cpp:373
Isis::ObservationNumberList::ObservationNumberList
ObservationNumberList(const QString &list, bool checkTarget=true)
Creates an ObservationNumberList from a filename.
Definition: ObservationNumberList.cpp:26
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::IException::User
@ User
A type of error that could only have occurred due to a mistake on the user's part (e....
Definition: IException.h:126

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the USGS Astrogeology Discussion Board
To report a bug, or suggest a feature go to: ISIS Github
File Modified: 03/21/2022 06:51:09