Alexandria 2.31.0
SDC-CH common library for the Euclid project
|
#include <FileParser.h>
Public Member Functions | |
virtual std::string | getName (const std::string &file)=0 |
Get the dataset name or identifier from a file. | |
virtual std::string | getParameter (const std::string &file, const std::string &key_word)=0 |
Get the parameter identified by a given key_word value from a file. | |
virtual std::unique_ptr< XYDataset > | getDataset (const std::string &file)=0 |
Get the dataset from a file. | |
virtual bool | isDatasetFile (const std::string &file)=0 |
Check that we are in presence of a dataset file. | |
virtual | ~FileParser ()=default |
Default destructor. | |
Interface class @ brief Interface class which permits to get a dataset name (identifier) and the data itself stored into a XYDataset object.
Definition at line 42 of file FileParser.h.
|
virtualdefault |
Default destructor.
|
pure virtual |
Get the dataset from a file.
file | Filename including absolute path |
Implemented in Euclid::XYDataset::AsciiParser, and Euclid::XYDataset::FitsParser.
|
pure virtual |
Get the dataset name or identifier from a file.
file | Filename including absolute path |
Implemented in Euclid::XYDataset::AsciiParser, and Euclid::XYDataset::FitsParser.
|
pure virtual |
Get the parameter identified by a given key_word value from a file.
file | Filename including absolute path |
key_word | key word identifying the parameter |
Implemented in Euclid::XYDataset::AsciiParser, and Euclid::XYDataset::FitsParser.
|
pure virtual |
Check that we are in presence of a dataset file.
file | Filename including the absolute path |
Implemented in Euclid::XYDataset::AsciiParser, and Euclid::XYDataset::FitsParser.