BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
DataFormatUtils.h File Reference

Description

Defines class DatafieldIOFactory.

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.

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

 DataUtils
 
 DataUtils::Format
 Utility functions for data input and output.
 

Macros

#define BORNAGAIN_DEVICE_IO_DATAFORMATUTILS_H
 

Functions

IAxisDataUtils::Format::createAxis (std::istream &input_stream)
 Creates axis of certain type from input stream. More...
 
void DataUtils::Format::fillDatafield (Datafield *data, std::istream &input_stream)
 Fills output data raw buffer from input stream. More...
 
bool DataUtils::Format::isBZipped (const std::string &name)
 Returns true if name contains *.bz2 extension. More...
 
bool DataUtils::Format::isCompressed (const std::string &name)
 Returns true if name contains *.gz extension. More...
 
bool DataUtils::Format::isGZipped (const std::string &name)
 Returns true if name contains *.gz extension. More...
 
bool DataUtils::Format::isIntFile (const std::string &file_name)
 Returns true if file name corresponds to BornAgain native format (compressed or not) More...
 
bool DataUtils::Format::isNicosFile (const std::string &file_name)
 Returns true if file name corresponds to Nicos format (compressed or not) More...
 
bool DataUtils::Format::isTiffFile (const std::string &file_name)
 Returns true if file name corresponds to tiff file (can be also compressed) More...
 
std::vector< double > DataUtils::Format::parse_doubles (const std::string &str)
 Parse double values from string to vector of double. More...
 
void DataUtils::Format::readLineOfDoubles (std::vector< double > &buffer, std::istringstream &iss)
 

Macro Definition Documentation

◆ BORNAGAIN_DEVICE_IO_DATAFORMATUTILS_H

#define BORNAGAIN_DEVICE_IO_DATAFORMATUTILS_H

Definition at line 21 of file DataFormatUtils.h.