![]() |
OpenMS
|
Options for loading files containing features. More...
#include <OpenMS/FORMAT/OPTIONS/FeatureFileOptions.h>
Public Member Functions | |
| FeatureFileOptions () | |
| Default constructor; see class brief for the default option values. | |
| ~FeatureFileOptions () | |
| Destructor. | |
Convex-hull option | |
Set whether to load each feature's convex hull (default | |
| void | setLoadConvexHull (bool convex) |
| bool | getLoadConvexHull () const |
| Whether to load each feature's convex hull. | |
Subordinate option | |
Set whether to load a feature's subordinates (default | |
| void | setLoadSubordinates (bool sub) |
| bool | getLoadSubordinates () const |
| Whether to load a feature's subordinates. | |
Metadata-only option | |
Set whether to skip the per-feature payload and load only metadata (default | |
| void | setMetadataOnly (bool only) |
| bool | getMetadataOnly () const |
| Whether only metadata is loaded. | |
Size-only option | |
Set whether to read just the feature count and skip the actual features (default | |
| void | setSizeOnly (bool only) |
| bool | getSizeOnly () const |
| Whether to read just the feature count. | |
RT-range option | |
Restrict loaded features to the given RT range. Also marks the range as set (hasRTRange returns | |
| void | setRTRange (const DRange< 1 > &range) |
| bool | hasRTRange () const |
true if setRTRange has been called. | |
| const DRange< 1 > & | getRTRange () const |
The configured RT range; only meaningful when hasRTRange is true. | |
m/z range option | |
Restrict loaded features to the given m/z range. Also marks the range as set (hasMZRange returns | |
| void | setMZRange (const DRange< 1 > &range) |
| bool | hasMZRange () const |
true if setMZRange has been called. | |
| const DRange< 1 > & | getMZRange () const |
The configured m/z range; only meaningful when hasMZRange is true. | |
Intensity-range option | |
Restrict loaded features to the given intensity range. Also marks the range as set (hasIntensityRange returns | |
| void | setIntensityRange (const DRange< 1 > &range) |
| bool | hasIntensityRange () const |
true if setIntensityRange has been called. | |
| const DRange< 1 > & | getIntensityRange () const |
The configured intensity range; only meaningful when hasIntensityRange is true. | |
Private Attributes | |
| bool | loadConvexhull_ |
| bool | loadSubordinates_ |
| bool | metadata_only_ |
| bool | has_rt_range_ |
| bool | has_mz_range_ |
| bool | has_intensity_range_ |
| bool | size_only_ |
| DRange< 1 > | rt_range_ |
| DRange< 1 > | mz_range_ |
| DRange< 1 > | intensity_range_ |
Options for loading files containing features.
A passive value object: each setter stores its value, each getter returns the stored value. The defaults loaded by the constructor are loadConvexHull == true, loadSubordinates == true, metadataOnly == false, sizeOnly == false, and no RT / m/z / intensity range set (i.e. the has*Range queries return false).
Reader implementations interpret these options. The has*Range flags indicate whether a range was ever supplied – getRTRange / getMZRange / getIntensityRange only return a meaningful range when the corresponding has*Range is true.
Default constructor; see class brief for the default option values.
| ~FeatureFileOptions | ( | ) |
Destructor.
| const DRange< 1 > & getIntensityRange | ( | ) | const |
The configured intensity range; only meaningful when hasIntensityRange is true.
| bool getLoadConvexHull | ( | ) | const |
Whether to load each feature's convex hull.
| bool getLoadSubordinates | ( | ) | const |
Whether to load a feature's subordinates.
| bool getMetadataOnly | ( | ) | const |
Whether only metadata is loaded.
| const DRange< 1 > & getMZRange | ( | ) | const |
The configured m/z range; only meaningful when hasMZRange is true.
| const DRange< 1 > & getRTRange | ( | ) | const |
The configured RT range; only meaningful when hasRTRange is true.
| bool getSizeOnly | ( | ) | const |
Whether to read just the feature count.
| bool hasIntensityRange | ( | ) | const |
true if setIntensityRange has been called.
| bool hasMZRange | ( | ) | const |
true if setMZRange has been called.
| bool hasRTRange | ( | ) | const |
true if setRTRange has been called.
| void setIntensityRange | ( | const DRange< 1 > & | range | ) |
| void setLoadConvexHull | ( | bool | convex | ) |
| void setLoadSubordinates | ( | bool | sub | ) |
| void setMetadataOnly | ( | bool | only | ) |
| void setMZRange | ( | const DRange< 1 > & | range | ) |
| void setRTRange | ( | const DRange< 1 > & | range | ) |
| void setSizeOnly | ( | bool | only | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |