ocssw
V2022
|
KvStore.hpp
Go to the documentation of this file.
37 using group_filtered_iterator = focs::FilterIterator<std::unordered_map<std::string, std::string>::const_iterator, std::function<bool(const std::pair<std::string, std::string>&)>>;
group_iterator group_begin() const
std::vector iterator to recurse group names
group_iterator group_end() const
std::vector end iterator to recurse group names
std::string & at(const std::string &k)
Returns a reference to the mapped value of the element identified with key k.
KvStore()=default
Default constructor, use load(std::string file) to read files.
friend std::ostream & operator<<(std::ostream &os, const KvStore &kv)
Output KvStore to stream operator.
void callback(read_callback callback)
Set a function to be called for each key-value read.
Definition: KvStore.hpp:257
bool load(const std::string &file)
Read key-value file, appending values to current map.
no change in intended resolving MODur00064 Corrected handling of bad ephemeris attitude resolving resolving GSFcd00179 Corrected handling of fill values for[Sensor|Solar][Zenith|Azimuth] resolving MODxl01751 Changed to validate LUT version against a value retrieved from the resolving MODxl02056 Changed to calculate Solar Diffuser angles without adjustment for estimated post launch changes in the MODIS orientation relative to incidentally resolving defects MODxl01766 Also resolves MODxl01947 Changed to ignore fill values in SCI_ABNORM and SCI_STATE rather than treating them as resolving MODxl01780 Changed to use spacecraft ancillary data to recognise when the mirror encoder data is being set by side A or side B and to change calculations accordingly This removes the need for seperate LUTs for Side A and Side B data it makes the new LUTs incompatible with older versions of the and vice versa Also resolves MODxl01685 A more robust GRing algorithm is being which will create a non default GRing anytime there s even a single geolocated pixel in a granule Removed obsolete messages from seed file
Definition: HISTORY.txt:413
bool load_line(const std::string &line)
Process key-value line, appending value to current map.
bool command(std::string &&cmd, std::string &&args)
Process a key-value store command by name.
Iterator for filtering the results of other iterators.
Definition: FilterIterator.hpp:27
subroutine os(tamoy, trmoy, pizmoy, tamoyp, trmoyp, palt, phirad, nt, mu, np, rm, gb, rp, xl)
Definition: 6sm1.f:5484
void switch_group(const std::string &group)
Switch default group for retrieving values.
void group_separator(const std::string &s)
Set the character(s) to use between group and key when inserting into map.
Definition: KvStore.hpp:244
bool command_include(std::string &&file)
Include another key-value store, relative to current file, into the global group.
bool command_include_local(std::string &&file)
Include another key-value store, relative to current file, into the current group.
std::string & operator[](const std::string &k)
If k matches the key of an element in the KvStore, the function returns a reference to its mapped val...
Definition: DataProvider.hpp:16