Gaia

The AddField analyzer allows you to add new fields in a layout of an already existing DataSet. More...

#include <addfield.h>

Inheritance diagram for gaia2::AddField:
gaia2::Analyzer

Public Member Functions

 AddField (const ParameterMap &params)
 
Transformation analyze (const DataSet *data) const
 
- Public Member Functions inherited from gaia2::Analyzer
 Analyzer (const ParameterMap &params)
 
virtual Transformation analyze (const DataSet *dataset, const Region &region) const
 
void checkDataSet (const DataSet *dataset) const
 Checks that the given dataset is valid. More...
 
void checkMinPoints (const DataSet *dataset, int n) const
 Checks that the given dataset as at least the specified number of points. More...
 
const RegioncheckFixedLength (const Region &region, const PointLayout &layout) const
 Checks that the given Region only contains fixed-length descriptors and throws an exception if not. More...
 

Protected Attributes

QStringList _real
 
QStringList _string
 
ParameterMap _default
 
ParameterMap _size
 
- Protected Attributes inherited from gaia2::Analyzer
ParameterMap _params
 
QStringList _descriptorNames
 
QStringList _exclude
 

Additional Inherited Members

- Public Attributes inherited from gaia2::Analyzer
QString name
 Name for the algorithm, usually the key that was used to instantiate it from the factory.
 
QStringList validParams
 List of valid parameters this analyzer accepts. More...
 

Detailed Description

The AddField analyzer allows you to add new fields in a layout of an already existing DataSet.

By default, the real fields will have a value of 0 and the string fields will have a value of "".

Parameters
realthe names of the fields of type real to be added.
stringthe names of the fields of type string to be added.
defaulta map containing the (optional) default values for the new fields to be added.
sizea map containing the (optional) default size for the new fields to be added. If a field is specified here, it will be added as a fixed-length field in the layout, otherwise it will be a variable-length field.

The documentation for this class was generated from the following files: