10 #define _FILE_HANDLER_
16 class HistogramBackend;
FileHandler(const QString &filename=QString())
constructor
result_t::shared_pointer loadDataFromCBF()
read the data from a cbf file
std::tr1::shared_ptr< self_type > shared_pointer
a shared pointer of this class
contains the base class data sources
static void saveData(const QString &filename, result_t::shared_pointer data)
save data to a given file
read and write data to files
result_t::shared_pointer loadDataFromHist()
read the data from a hist file
QImage loadImage(const QString &filename)
read the data from an image file
result_t::shared_pointer result(const QString &key, quint64 id=0)
retrieve an result from the file
void saveDataToCBF(const QString &filename, result_t::shared_pointer data)
save the data to a cbf file
void saveDataToH5(const QString &filename, result_t::shared_pointer data, const QString &mode="w")
write the data to a hdf5 file
base class for data sources
static bool isContainerFile(const QString &filename)
return whether the file is a container file
QStringList resultNames()
retrieve the list of names that an be displayed from the file
void saveDataToCSV(const QString &filename, result_t::shared_pointer data)
save the data from a CSV file
result_t::shared_pointer loadDataFromH5(const QString &key="")
read the data from a hdf5 file
void saveDataToHist(const QString &filename, result_t::shared_pointer data)
save the data from a hist file
auxiliary data[Processor]
void setFilename(const QString &filename)
set the filename
QString type() const
retrieve the type of source
QString _filename
the filename of the file to work on
result_t::shared_pointer loadDataFromCSV()
read the data from a CSV file
void saveImage(const QString &filename, const QImage &image)
save image data
static void createContainer(const QString &filename)
create the container file
static QString getBaseName(const QString &filename)
return the basename of the filename