15 #ifndef BORNAGAIN_CORE_INPUTOUTPUT_INTENSITYDATAIOFACTORY_H
16 #define BORNAGAIN_CORE_INPUTOUTPUT_INTENSITYDATAIOFACTORY_H
Base class for 1D and 2D histograms holding values of double type.
Provides users with possibility to read and write IntensityData from/to files in different format.
static OutputData< double > * readOutputData(const std::string &file_name)
Reads file and returns newly created OutputData object.
static void writeOutputData(const OutputData< double > &data, const std::string &file_name)
Writes OutputData in file.
static IHistogram * readIntensityData(const std::string &file_name)
Reads file and returns newly created Histogram object.
static void writeIntensityData(const IHistogram &histogram, const std::string &file_name)
Writes histogram in file.
static void writeSimulationResult(const SimulationResult &result, const std::string &file_name)
Writes OutputData contained in the given SimulationResult object.
Template class to store data of any type in multi-dimensional space.
Wrapper around OutputData<double> that also provides unit conversions.