OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
File.hpp
Go to the documentation of this file.
1 
2 #ifndef FOCS_LOG_FILE
3 #define FOCS_LOG_FILE
4 
5 #include "focs/Log.hpp"
6 
7 #include <fstream>
8 #include <string>
9 #include <vector>
10 
11 namespace focs {
17 class FileLogger : public LogFacility {
18  public:
25  FileLogger(const std::string& filename, std::ios_base::openmode mode = std::ios_base::out) : path_{filename}, handle_{filename, mode} {}
27  ~FileLogger() override;
28 
29  void log(int severity, const std::string& s) override;
30  private:
31  std::string path_;
32  std::ofstream handle_;
33 };
34 }
35 
36 #endif // FOCS_LOG_FILE
~FileLogger() override
Clean-up destructor to flush and close file handle.
void log(int severity, const std::string &s) override
Print a message to this log facility, with a given severity.
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 as required for compatibility with version of the SDP toolkit Corrected test output file names to end in out
Definition: HISTORY.txt:422
README for MOD_PR02AQUA(AQUA) Version to set to For disabling creating and output data sets when in night mode
Definition: README.txt:96
@ string
char filename[FILENAME_MAX]
Definition: atrem_corl1.h:122
Base class to create new loggers.
Definition: Base.hpp:68
data_t s[NROOTS]
Definition: decode_rs.h:75
FileLogger(const std::string &filename, std::ios_base::openmode mode=std::ios_base::out)
Open a file at the given path, optionally with a specific file mode.
Definition: File.hpp:25
Log facility for printing to a file.
Definition: File.hpp:17