37 #include <drain/RegExp.h>
39 #include <drain/prog/CommandBank.h>
40 #include <drain/prog/CommandInstaller.h>
42 #include <drain/util/FileInfo.h>
47 #include "resources.h"
87 "filename",
"",
"<filename>.[h5|hdf5|png|pgm|txt|dat|mat|dot]|-") {
92 void writeProfile(
const Hi5Tree & src,
const std::string & filename)
const;
94 void writeSamples(
const Hi5Tree & src,
const std::string & filename)
const;
110 "filename",
"",
"<filename>|-") {
Container and execution tools for commands derived from Command.
Definition: CommandBank.h:54
Combines command installation and sectioning.
Definition: CommandInstaller.h:159
A single-parameter command.
Definition: Command.h:501
void writeProfile(const Hi5Tree &src, const std::string &filename) const
Definition: file-prof.cpp:78
void exec() const
Run the command with current parameter values.
Definition: fileio.cpp:325
void writeSamples(const Hi5Tree &src, const std::string &filename) const
Definition: file-sample.cpp:80
void exec() const
Definition: fileio.cpp:822
static const group_t IS_INDEXED
Group index mask for groups that have an index.
Definition: ODIMPath.h:156
static const group_t ROOT
Definition: ODIMPath.h:99
drain::Flagger::ivalue_t group_t
In H5, "groups" correspond to "directories" or "folders" in Unix and Windows.
Definition: ODIMPath.h:91
CommandBank & getCommandBank()
Global program command registry. Optional utility.
Definition: CommandBank.cpp:51
Definition: DataSelector.cpp:44
const drain::RegExp arrayFileExtension(".*\\.(mat)$", REG_EXTENDED|REG_ICASE)
Syntax for recognising numeric array files (in plain text format anyway).
Definition: fileio.h:75
const drain::RegExp textFileExtension(".*\\.(txt)$", REG_EXTENDED|REG_ICASE)
Syntax for recognising hdf5 files.
Definition: fileio.h:71
const drain::RegExp h5FileExtension
Syntax for recognising hdf5 files.
const drain::RegExp sampleFileExtension(".*\\.(dat)$", REG_EXTENDED|REG_ICASE)
Syntax for sparsely resampled data.
Definition: fileio.h:79