BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
OutputDataReadWriteINT.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Device/InputOutput/OutputDataReadWriteINT.h
6 //! @brief Defines OutputDataReadWriteINT
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifdef SWIG
16 #error no need to expose this header to Swig
17 #endif
18 
19 #ifndef USER_API
20 #ifndef BORNAGAIN_DEVICE_INPUTOUTPUT_OUTPUTDATAREADWRITEINT_H
21 #define BORNAGAIN_DEVICE_INPUTOUTPUT_OUTPUTDATAREADWRITEINT_H
22 
23 #include <istream>
24 
25 template <class T> class OutputData;
26 
27 //! Class for reading and writing BornAgain native IntensityData from ASCII file.
28 //! @ingroup input_output_internal
29 
31 public:
32  OutputData<double>* readOutputData(std::istream& input_stream);
33  void writeOutputData(const OutputData<double>& data, std::ostream& output_stream);
34 
35 private:
36  static void writeOutputDataDoubles(const OutputData<double>& data, std::ostream& output_stream,
37  size_t n_columns);
38  static double ignoreDenormalized(double value);
39 };
40 
41 #endif // BORNAGAIN_DEVICE_INPUTOUTPUT_OUTPUTDATAREADWRITEINT_H
42 #endif // USER_API
Class for reading and writing BornAgain native IntensityData from ASCII file.
static void writeOutputDataDoubles(const OutputData< double > &data, std::ostream &output_stream, size_t n_columns)
OutputData< double > * readOutputData(std::istream &input_stream)
void writeOutputData(const OutputData< double > &data, std::ostream &output_stream)
static double ignoreDenormalized(double value)
Templated class to store data of type double or CumulativeValue in multi-dimensional space.
Definition: OutputData.h:32