20 #ifndef GAIA_TRANSFORMATION_H 21 #define GAIA_TRANSFORMATION_H 25 #include "parameter.h" 26 #include "pointlayout.h" 61 name(
""), analyzerName(
""), applierName(
""),
62 _analyzer(0), _applier(0) {}
65 name(
""), analyzerName(
""), applierName(
""), layout(l),
66 _analyzer(0), _applier(0) {}
91 void load(
const QString& filename);
92 void save(
const QString& filename);
101 friend QDataStream& operator<<(QDataStream& out,
const Transformation& transfo);
102 friend QDataStream& operator>>(QDataStream& in,
Transformation& transfo);
110 DataSet* mapDataSet(
const DataSet* dataset,
bool takeOwnership =
false)
const;
118 DataSet* partialMapDataSet(
const DataSet* dataset,
int start,
int end = 0)
const;
126 void load(
const QString& filename);
127 void save(
const QString& filename)
const;
129 bool contains(
const QString& analyzerName)
const;
134 friend QDataStream& operator<<(QDataStream& out,
const TransfoChain& transfo);
135 friend QDataStream& operator>>(QDataStream& in,
TransfoChain& transfo);
141 DataSet* applyTransfoChain(
DataSet* ds,
const QString& yamlTransfoChain);
143 inline DataSet* applyTransfoChain(
DataSet* ds,
const std::string& yamlTransfoChain) {
144 return applyTransfoChain(ds, QString::fromStdString(yamlTransfoChain));
149 #endif // GAIA_TRANSFORMATION_H
Point * mapPoint(const Point *p, const PointLayout &newLayout, const IndexMap &realMap, const IndexMap &stringMap, const IndexMap &enumMap)
Creates a new Point that is a mapping of the given one, copying only those descriptors that are in ne...
Definition: utils.cpp:310
This class represents a dataset and all related information.
Definition: dataset.h:91
This class describes the layout of a point.
Definition: pointlayout.h:60
Main Gaia namespace, which contains all the library functions.
Definition: addfield.cpp:22
The Applier abstract base class.
Definition: applier.h:44
the Analyzer abstract base class.
Definition: analyzer.h:43
Definition: parameter.h:34
Definition: transformation.h:106