Static Public Member Functions | List of all members
ODIMPathTools Class Reference

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

#include <ODIMPathTools.h>

Static Public Member Functions

static bool getLastChild (const Hi5Tree &tree, ODIMPathElem &child, bool create=false)
 Searches the children of child.getType(), or g if given, and stores the one with largest index.
 
static bool getNewChild (const Hi5Tree &tree, ODIMPathElem &child, ODIMPathElem::index_t iMax=ODIMPathElem::INDEX_MAX)
 Searches children of given type, returns a non-existing child with index greater than child.index. More...
 
static bool getNextChild (const Hi5Tree &tree, ODIMPathElem &child)
 Derive a child with index one greater than the largest index encountered. More...
 
static bool getChildren (const Hi5Tree &tree, std::map< std::string, ODIMPathElem > &children, ODIMPathElem::group_t groups)
 Searches children of given type, returns a non-existing child with index greater than child.index. More...
 

Detailed Description

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

See also
rack::CmdSelect

Member Function Documentation

◆ getChildren()

bool getChildren ( const Hi5Tree &  tree,
std::map< std::string, ODIMPathElem > &  children,
ODIMPathElem::group_t  groups 
)
static

Searches children of given type, returns a non-existing child with index greater than child.index.

Unused indices may be returned.

◆ getNewChild()

bool getNewChild ( const Hi5Tree &  tree,
ODIMPathElem child,
ODIMPathElem::index_t  iMax = ODIMPathElem::INDEX_MAX 
)
static

Searches children of given type, returns a non-existing child with index greater than child.index.

Unused indices may be returned.

◆ getNextChild()

bool getNextChild ( const Hi5Tree &  tree,
ODIMPathElem child 
)
static

Derive a child with index one greater than the largest index encountered.

Parameters
tree- parent structure
child- child to be set index = last+1, hence 1 if none found.
Returns
- true if child's index was incremented (ie.)

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