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

Defines class OutputDataIOFactory. More...

Go to the source code of this file.

Namespaces

 DataFormatUtils
 Utility functions for data input and output.
 

Functions

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