NAPISD
PAHdb website C++ backend
Loading...
Searching...
No Matches
FileOutput.h
1#ifndef FILEOUTPUT_H_
2#define FILEOUTPUT_H_
3
4#include "Exception.h"
5
6#include <fstream>
7#include <iomanip>
8#include <string>
9#include <string_view>
10#include <vector>
11
13
14public:
15 FileOutput(const std::string_view filename);
16
18
19 void setFilename(const std::string_view filename);
20
21 std::string_view getFilename() const;
22
23 void writeTableHeaderToDisk(const std::vector<std::string> &header);
24 void writeTableToDisk(const std::vector<std::vector<double>> &table);
25
26private:
27 std::string _filename;
28
29 std::ofstream _ofstr;
30};
31
32inline void FileOutput::setFilename(std::string_view filename) {
33 _filename = filename;
34}
35
36inline std::string_view FileOutput::getFilename() const { return (_filename); }
37
38#endif /* FILEOUTPUT_H_ */

Since FY2019 the NASA Ames PAH IR Spectroscopic Database is being supported through a directed Work Package at NASA Ames titled: "Laboratory Astrophysics - The NASA Ames PAH IR Spectroscopic Database".
Since FY2023 the NASA Ames PAH IR Spectroscopic Database is being supported through the Laboratory Astrophysics Rd 2 directed Work Package at NASA Ames.
© Copyright 2021-2025, Christiaan Boersma