BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
DataFormatUtils.h File Reference

Defines class OutputDataIOFactory. More...

Include dependency graph for DataFormatUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 DataFormatUtils
 Utility functions for data input and output.
 

Macros

#define BORNAGAIN_DEVICE_INPUTOUTPUT_DATAFORMATUTILS_H
 

Functions

std::unique_ptr< IAxisDataFormatUtils::createAxis (std::istream &input_stream)
 Creates axis of certain type from input stream. More...
 
void DataFormatUtils::fillOutputData (OutputData< double > *data, std::istream &input_stream)
 Fills output data raw buffer from input stream. More...
 
std::string DataFormatUtils::GetFileMainExtension (const std::string &name)
 Returns file extension after stripping '.gz' if any. More...
 
bool DataFormatUtils::isBZipped (const std::string &name)
 Returns true if name contains *.bz2 extension. More...
 
bool DataFormatUtils::isCompressed (const std::string &name)
 Returns true if name contains *.gz extension. More...
 
bool DataFormatUtils::isGZipped (const std::string &name)
 Returns true if name contains *.gz extension. More...
 
bool DataFormatUtils::isIntFile (const std::string &file_name)
 returns true if file name corresponds to BornAgain native format (compressed or not) More...
 
bool DataFormatUtils::isTiffFile (const std::string &file_name)
 returns true if file name corresponds to tiff file (can be also compressed) More...
 
std::vector< double > DataFormatUtils::parse_doubles (const std::string &str)
 Parse double values from string to vector of double. More...
 
void DataFormatUtils::readLineOfDoubles (std::vector< double > &buffer, std::istringstream &iss)
 

Detailed Description

Defines class OutputDataIOFactory.

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file DataFormatUtils.h.

Macro Definition Documentation

◆ BORNAGAIN_DEVICE_INPUTOUTPUT_DATAFORMATUTILS_H

#define BORNAGAIN_DEVICE_INPUTOUTPUT_DATAFORMATUTILS_H

Definition at line 21 of file DataFormatUtils.h.