Loading...
Searching...
No Matches
Static Public Member Functions | Static Protected Member Functions | List of all members
DataModifier Class Reference

Tool for selecting datasets based on paths, quantities and min/max elevations. More...

#include <DataModifier.h>

Static Public Member Functions

static void remove (Hi5Tree &dst, const DataSelector &dataSelector)
 Remove selected parts of the structure.
 
static int removeEmptyGroups (Hi5Tree &dst, const ODIMPath &path=ODIMPath())
 Quick removal of empty groups.
 
static void keep (Hi5Tree &dst, const DataSelector &selector)
 Complement of remove(): keep the selected, remove else.
 
static void markExcluded (Hi5Tree &src, ODIMPathElem::group_t filter=ODIMPathElem::ALL_GROUPS)
 Mark everything excluded.
 
static void markIncluded (Hi5Tree &src, ODIMPathElem::group_t filter=ODIMPathElem::ALL_GROUPS)
 Mark everything included.
 
static void markIncluded (Hi5Tree &dst, const DataSelector &dataSelector)
 Mark everything but selected "excluded".
 
static void markPathIncluded (Hi5Tree &dst, const ODIMPath &path)
 Mark everything along the path included.
 

Static Protected Member Functions

static void markTree (Hi5Tree &src, bool exclude, ODIMPathElem::group_t filter=ODIMPathElem::ALL_GROUPS)
 Mark exclusion/inclusion in the whole tree.
 
static void markPath (Hi5Tree &src, const Hi5Tree::path_t &path, bool exclude)
 Mark exclusion/inclusion along a path.
 

Detailed Description

Tool for selecting datasets based on paths, quantities and min/max elevations.

Applies drain::RegExp in matching.

Member Function Documentation

◆ markTree()

void markTree ( Hi5Tree &  src,
bool  exclude,
ODIMPathElem::group_t  filter = ODIMPathElem::ALL_GROUPS 
)
staticprotected

Mark exclusion/inclusion in the whole tree.

This function traverses all the children and their children, recursively. Needed here, ATTRIBUTE_GROUPS not in Hi5Base.

Typical usage: the tree is deleted with Hi5Base::deleteExcluded()

◆ removeEmptyGroups()

int removeEmptyGroups ( Hi5Tree &  dst,
const ODIMPath &  path = ODIMPath() 
)
static

Quick removal of empty groups.

In this context, a group is considered empty if ...


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